all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Narendra Joshi <narendraj9@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Narendra Joshi <narendraj9@gmail.com>, help-gnu-emacs@gnu.org
Subject: Re: Quoted function in `define-key'
Date: Sat, 04 Feb 2017 20:33:51 +0530	[thread overview]
Message-ID: <87efzedmlk.fsf@vicarie.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <874m0ap3ex.fsf@drachen> (Michael Heerdegen's message of "Sat, 04 Feb 2017 13:05:10 +0100")

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	other threads:[~2017-02-04 15:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-04 10:20 Quoted function in `define-key' Narendra Joshi
2017-02-04 11:11 ` Narendra Joshi
2017-02-04 12:05 ` Michael Heerdegen
2017-02-04 15:03   ` Narendra Joshi [this message]
2017-02-04 17:25     ` Michael Heerdegen
2017-02-05 10:10       ` Narendra Joshi
2017-02-05 13:50         ` Michael Heerdegen
2017-02-05 19:09           ` Narendra Joshi
2017-02-05 19:45             ` Michael Heerdegen
2017-02-04 18:10 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efzedmlk.fsf@vicarie.i-did-not-set--mail-host-address--so-tickle-me \
    --to=narendraj9@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.