From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chap Harrison Newsgroups: gmane.emacs.help Subject: Re: Looking for the "best" notation for key-binding Date: Fri, 21 Sep 2012 09:27:37 -0600 Message-ID: <505C8769.7030805@me.com> References: <505BA2B4.7090906@me.com> Reply-To: clh@pobox.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1348241283 17787 80.91.229.3 (21 Sep 2012 15:28:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2012 15:28:03 +0000 (UTC) To: Peter Dyballa , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 21 17:28:08 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TF59D-00030N-Io for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Sep 2012 17:28:07 +0200 Original-Received: from localhost ([::1]:41008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF599-0004dY-2Y for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Sep 2012 11:28:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF58z-0004Q5-0X for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 11:27:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TF58p-00055V-HX for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 11:27:52 -0400 Original-Received: from st11p00mm-asmtpout004.mac.com ([17.172.81.3]:59464 helo=st11p00mm-asmtp004.mac.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF58p-00055M-Dl for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 11:27:43 -0400 Original-Received: from [10.2.16.91] (wiland-mail.wilanddirect.com [64.58.24.34]) by st11p00mm-asmtp004.mac.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0MAP00MS6HM4M230@st11p00mm-asmtp004.mac.com> for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 15:27:41 +0000 (GMT) In-reply-to: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.431,0.0.0000 definitions=2012-09-21_01:2012-09-20, 2012-09-21, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1209210156 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (1203?) X-Received-From: 17.172.81.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86876 Archived-At: On 09/21/2012 03:24 AM, Peter Dyballa wrote: > Am 21.09.2012 um 01:11 schrieb Chap Harrison: > >> Isn't there a single, simple, consistent way to create key binding= s that will always work? > I think the vector notation is a good choice: > > =09(global-set-key [C-=E2=88=AB]=09=09'backward-sexp)=09; A-C-b > =09(global-set-key [M-S-return]=09'other-window) > =09(global-set-key [f1 f5]=09=09'apropos-variable) > =09(global-set-key [f3]=09 =09'compare-windows) > =09(global-set-key [A-f1]=09 =09'replace-string) That looks and sounds straightforward enough. I don't know elisp. Is there an exhaustive list of how to express al= l=20 of the key chords using vector notation? For instance, I wouldn't ha= ve=20 guessed that the 'return' key was denoted by 'return' - I usually see= it=20 written RET. As to my problem with C-; I strongly suspect my binding is getting= =20 stomped by C++ mode. So I'd also appreciate some guidelines on what= =20 keys to use or avoid. Chap