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

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

Re: Quoted function in `define-key'


From: Narendra Joshi
Subject: Re: Quoted function in `define-key'
Date: Sat, 04 Feb 2017 20:33:51 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Michael Heerdegen <michael_heerdegen@web.de> writes:


> Sure, but this is then not evaluated again, and you want the DEF
> argument of `define-key' to be function-name, not (quote function-name).
Okay. Let me re-state this whole thing so that I can assure myself that
I have understood.

   (quote my-function) is exactly the same as 'my-function, i.e.
   (eq (quote my-function) 'my-function) evaluates to t.

   But here we are talking about the result of evaluating

   (quote my-function) which isn't a cons but a symbol. But if we have
   `(quote my-function) that isn't the same as 'my-function. 

   Side note: If anybody knows how to type inline code in gnus message,
   it would be greatly appreciated.

--
Narendra Joshi



reply via email to

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