From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Looking for the "best" notation for key-binding
Date: Fri, 21 Sep 2012 22:37:40 +0200 [thread overview]
Message-ID: <E73C7B47-E723-4C57-ACC9-551A2D75511C@Web.DE> (raw)
In-Reply-To: <jwv1uhvcphr.fsf-monnier+INBOX@gnu.org>
Am 21.09.2012 um 18:29 schrieb Stefan Monnier:
>>>> I think the vector notation is a good choice:
>>>> (global-set-key [C-∫] 'backward-sexp) ; A-C-b
>>> This likely won't work. You need
>>> (global-set-key [?\C-∫] '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?
I think it was in GNU Emacs 22 based "Carbon Emacs".
>
>> So ∫ is a symbol just as © or Ω?
>
> 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.
∫ is a self-insert command:
∫ runs the command self-insert-command, which is an interactive
built-in function in `C source code'.
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."
next prev parent reply other threads:[~2012-09-21 20:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-20 23:11 Looking for the "best" notation for key-binding Chap Harrison
2012-09-21 0:30 ` John Wiegley
[not found] ` <mailman.9409.1348187445.855.help-gnu-emacs@gnu.org>
2012-09-21 0:45 ` B. T. Raven
2012-09-21 9:24 ` Peter Dyballa
2012-09-21 15:27 ` Chap Harrison
2012-10-19 3:39 ` Kevin Rodgers
[not found] ` <mailman.9433.1348219496.855.help-gnu-emacs@gnu.org>
2012-09-21 13:29 ` Stefan Monnier
2012-09-21 14:59 ` Peter Dyballa
2012-09-21 16:29 ` Stefan Monnier
2012-09-21 20:37 ` Peter Dyballa [this message]
2012-10-01 14:31 ` Jambunathan K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E73C7B47-E723-4C57-ACC9-551A2D75511C@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.