From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Looking for the "best" notation for key-binding Date: Fri, 21 Sep 2012 22:37:40 +0200 Message-ID: References: <505BA2B4.7090906@me.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1348259871 18708 80.91.229.3 (21 Sep 2012 20:37:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2012 20:37:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 21 22:37:56 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 1TF9z1-0003o4-Q9 for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Sep 2012 22:37:55 +0200 Original-Received: from localhost ([::1]:44576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF9yx-0002T7-A3 for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Sep 2012 16:37:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF9yr-0002Sa-LN for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 16:37:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TF9yq-0007nr-Iv for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 16:37:45 -0400 Original-Received: from mout.web.de ([212.227.15.3]:58109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF9yq-0007ja-92 for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 16:37:44 -0400 Original-Received: from sumac.fritz.box ([95.222.201.211]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0MUEoU-1T6sXW3NL8-00RSnG; Fri, 21 Sep 2012 22:37:41 +0200 In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Provags-ID: V02:K0:OtnMrAl6wwZ255SC26ykVYFnMX6ynw4NNERJgx0atlt TO6IFia2nllm/3UToQGF4Ynod1tngV1WWnhfCTeb+l02UnQ+jx JkxQNp1xWfyMisaxV+FF5kf1DQrEW6bp3e8pTva1GHTWbLaP29 krEzUrInuAFc6ekpXWGocz8TY8o3HKDw5bWx21RHdJvphjqL9v uHK3wzFTO84oS57h2FQSA== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.15.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:86880 Archived-At: Am 21.09.2012 um 18:29 schrieb Stefan Monnier: >>>> I think the vector notation is a good choice: >>>> (global-set-key [C-=E2=88=AB] 'backward-sexp) ; A-C-b >>> This likely won't work. You need >>> (global-set-key [?\C-=E2=88=AB] 'backward-sexp) ; A-C-b >>> instead. Yes, it's an annoyance. You have to understand the >>> distinction between keys that emit characters and other keys (that = emit >>> symbols). >> Yes, it stopped working. >=20 > When did it work? I think it was in GNU Emacs 22 based "Carbon Emacs". >=20 >> So =E2=88=AB is a symbol just as =C2=A9 or =CE=A9? >=20 > AFAIK they're all characters (my use of `symbol' was in the Lisp sense > of symbol as opposed to integer, string, cons, float, ...). >=20 >> What makes the distinction? >=20 > The code that turns GUI events into Lisp events, mostly. The general > rule is that keys which should self-insert get turned into > character-events, while other (special) keys get turned into = symbol-events. =E2=88=AB is a self-insert command: =E2=88=AB runs the command self-insert-command, which is an = interactive built-in function in `C source code'. =09 It is bound to many ordinary text characters. -- Greetings Pete The wise man said: "Never argue with an idiot. They bring you down to = their level and beat you with experience."