From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: Binding same command to two separte keys?? Date: Fri, 13 Apr 2007 23:55:12 +0200 Organization: disorganized Message-ID: <87hcrkos73.fsf@localhorst.mine.nu> References: <1176490954.3065.75.camel@CASE> <1176491561.32280.9.camel@oaktree.karlheg.lan> <461FD736.2080709@gatech.edu> <1176495452.3065.121.camel@CASE> <461FF068.6000203@gatech.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176502158 16504 80.91.229.12 (13 Apr 2007 22:09:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2007 22:09:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 00:09:15 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HcTxB-0002i3-BN for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 00:09:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcU1U-0007vW-Mf for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Apr 2007 18:13:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HcU1H-0007vR-Hh for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 18:13:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HcU1G-0007vF-2d for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 18:13:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcU1F-0007vC-TE for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 18:13:25 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HcTwv-00050M-L3 for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 18:08:57 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HcTwk-0002I3-Cv for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 00:08:46 +0200 Original-Received: from e178020057.adsl.alicedsl.de ([85.178.20.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Apr 2007 00:08:46 +0200 Original-Received: from david.hansen by e178020057.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Apr 2007 00:08:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 18 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178020057.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux) Cancel-Lock: sha1:0ibVaf+IYQQl2xUPeUUFuZYaLWI= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42657 Archived-At: 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. >> 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. David