help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: introduction to lisp


From: Narendra Joshi
Subject: Re: introduction to lisp
Date: Sun, 25 Jun 2017 13:04:35 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

<tomas@tuxteam.de> writes:

> On Tue, Jun 20, 2017 at 06:59:14AM +0200, Emanuel Berg wrote:
>> Kaushal Modi wrote:
>> 
>> > Example: - How do I bind F1? - Do C-h k F1..
>> > Realize that emacs shows that as <f1> -
>> > Simply wrap that with (kbd "...") and you
>> > have (kbd "<f1>") - Put that in the
>> > global-set-key or define-key form.
>> 
>> But that evaluates to [f1], so then why not
>> 
>>     (global-set-key [f1]
>>       (lambda () (interactive) (message "Formula 1")) )
>
> But that evaluates to
>
>   (global-set-key [f1] #[nil "ÀÁ!‡" [message "Formula 1"] 2 nil nil])
>
> (I just asked byte-compile to tell me that). So why not write that
> right away?
>
> Of course, that was a bit tongue-in-cheek ;-P
>
> What I mean: sometimes it makes sense to let people go the
> extra ten meters to meet the computer (mainly because there's
> an interesting spot to meet [1]), sometimes it makes sense
What do you use for footnotes? [An unrelated question]

> to let the computer do the walk, perhaps because the spot to
> meet is pretty boring (personally, I find conventions to name
> keys pretty boring, to be honest).
>
> Which is which depends, of course, on Things :)
>
> [1] as is the case with lambda calculus and The Lisps.
>    Giving up on traditional infix arithmetic may feel
>    awkward at first, but tends to bring some kind of
>    Enlightenment upon (some of) us. Then we get high
>    and all worked up and try to convince others and
>    they look at us with those strange looks ;-D
>
> Cheers
> -- tomás
>

-- 
Narendra Joshi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]