From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Looking for the "best" notation for key-binding Date: Fri, 21 Sep 2012 12:29:06 -0400 Message-ID: References: <505BA2B4.7090906@me.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1348244960 19085 80.91.229.3 (21 Sep 2012 16:29:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2012 16:29:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 21 18:29:23 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 1TF66U-00040G-Sd for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Sep 2012 18:29:23 +0200 Original-Received: from localhost ([::1]:57988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF66Q-0005MG-C2 for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Sep 2012 12:29:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF66L-0005Lb-Jk for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 12:29:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TF66F-0002Us-Qj for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 12:29:13 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:34685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF66F-0002Um-Mj for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 12:29:07 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q8LGT69S025920; Fri, 21 Sep 2012 12:29:06 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 92291B4071; Fri, 21 Sep 2012 12:29:06 -0400 (EDT) In-Reply-To: (Peter Dyballa's message of "Fri, 21 Sep 2012 16:59:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 132.204.246.22 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:86877 Archived-At: >>> 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. When did it work? > So =E2=88=AB is a symbol just as =C2=A9 or =CE=A9? AFAIK they're all characters (my use of `symbol' was in the Lisp sense of symbol as opposed to integer, string, cons, float, ...). > What makes the distinction? 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. > Unicode character classes? Unicode has nothing to do with it, no. Stefan