From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Flaschen Newsgroups: gmane.emacs.help Subject: Re: Binding same command to two separte keys?? Date: Fri, 13 Apr 2007 17:04:40 -0400 Message-ID: <461FF068.6000203@gatech.edu> References: <1176490954.3065.75.camel@CASE> <1176491561.32280.9.camel@oaktree.karlheg.lan> <461FD736.2080709@gatech.edu> <1176495452.3065.121.camel@CASE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176498308 31291 80.91.229.12 (13 Apr 2007 21:05:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2007 21:05:08 +0000 (UTC) To: emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 13 23:05:01 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 1HcSx2-0001GZ-Qw for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Apr 2007 23:05:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcT1L-0004mH-QY for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Apr 2007 17:09:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HcT18-0004kd-Ma for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 17:09:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HcT18-0004kC-8F for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 17:09:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcT17-0004k8-VX for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 17:09:14 -0400 Original-Received: from deliverator7.gatech.edu ([130.207.165.169]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HcSwo-0004DI-6Q for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 17:04:46 -0400 Original-Received: from deliverator7.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 3B8DD181A for ; Fri, 13 Apr 2007 17:04:45 -0400 (EDT) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from mailprx5.gatech.edu (mailprx5.prism.gatech.edu [130.207.171.19]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.mail.gatech.edu", Issuer "RSA Data Security, Inc." (verified OK)) by deliverator7.gatech.edu (Postfix) with ESMTP id A20511980 for ; Fri, 13 Apr 2007 17:04:41 -0400 (EDT) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from [128.61.73.81] (r73h81.res.gatech.edu [128.61.73.81]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (sasl: method=PLAIN, username=mflaschen3@mailprx5.gatech.edu, sender=n/a) by mailprx5.gatech.edu (Postfix) with ESMTP id 74CFE22A4 for ; Fri, 13 Apr 2007 17:04:41 -0400 (EDT) (envelope-from matthew.flaschen@gatech.edu) User-Agent: Thunderbird 1.5.0.10 (X11/20070306) In-Reply-To: <1176495452.3065.121.camel@CASE> X-Enigmail-Version: 0.94.3.0 X-detected-kernel: Solaris 9 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:42656 Archived-At: William Case wrote: > Over the last 2 years I have written about 10 keybinding functions, that > are in my .emacs, and that I use all the time. They have always been in > the form of (global-set-key [(M-s)] 'shell-command). I don't know what to tell you. There are many different ways to write keyboard shortcuts, but I've never heard of that one, and it doesn't work for me. > Now 'kbd' shows > up, and '?\' to replace it. ?\ was here first, as far as I can tell. kbd is supposed to be an easy method to unify all the others, but I think it's slightly (perhaps negligibly) slower. > So ... in (global-set-key (kbd "M-s") #'shell-command) No, just (global-set-key (kbd "M-s") 'shell-command) > > Does ?\ = kbd ? No > Does [ ] replace ( ) ? Not really. As I said, there are many incompatible methods. They seem to have little connection to each other > Are the " " necessary or not necessary ? It's necessary if you use kdb. It's not allowed if you use the method I recommended. > What syntax would work for both standard emacs functions and my own user > functions? I don't think this should make a difference. > Emacs 22 is going to show up when I upgrade to Fedora 7. Is keybinding > going to be different again? I don't think so. Matthew Flaschen