From: Matthew Flaschen <matthew.flaschen@gatech.edu>
To: emacs <help-gnu-emacs@gnu.org>
Subject: Re: Binding same command to two separte keys??
Date: Fri, 13 Apr 2007 18:23:29 -0400 [thread overview]
Message-ID: <462002E1.6040102@gatech.edu> (raw)
In-Reply-To: <87hcrkos73.fsf@localhorst.mine.nu>
David Hansen wrote:
> On Fri, 13 Apr 2007 17:04:40 -0400 Matthew Flaschen wrote:
>
>> kbd is supposed to be an easy method to unify all the others, but
>> I think it's slightly (perhaps negligibly) slower.
>
> In byte-compiled code it's not slower. IMHO it's the most readable
> and therefore preferable way to write key bindings.
Maybe so, but he's not going to byte-compile .emacs .
>
>>> So ... in (global-set-key (kbd "M-s") #'shell-command)
>> No, just
>> (global-set-key (kbd "M-s") 'shell-command)
>
> #'symbol is the same as (function symbol). It never harms to use it
> when passing functions as an argument and in some cases the compiler
> can use this hint for optimization.
Okay, thanks.
Matthew Flaschen
next prev parent reply other threads:[~2007-04-13 22:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-13 19:02 Binding same command to two separte keys?? William Case
2007-04-13 19:12 ` Karl Hegbloom
2007-04-13 19:17 ` Matthew Flaschen
2007-04-13 20:17 ` William Case
2007-04-13 21:04 ` Matthew Flaschen
2007-04-13 21:55 ` David Hansen
2007-04-13 22:23 ` Matthew Flaschen [this message]
2007-04-14 0:44 ` David Hansen
[not found] ` <mailman.2052.1176495874.7795.help-gnu-emacs@gnu.org>
2007-04-13 21:41 ` Rjjd
2007-04-14 3:52 ` Matthew Flaschen
[not found] ` <mailman.2061.1176522998.7795.help-gnu-emacs@gnu.org>
2007-04-15 3:32 ` Tim X
2007-04-13 21:55 ` Joost Kremers
2007-04-14 9:26 ` Reiner Steib
2007-04-16 10:17 ` Kai Grossjohann
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=462002E1.6040102@gatech.edu \
--to=matthew.flaschen@gatech.edu \
--cc=help-gnu-emacs@gnu.org \
/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.