all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Difference between GUI/terminal when using "kbd" macro
Date: Tue, 19 Feb 2013 08:58:49 -0700	[thread overview]
Message-ID: <kg07em$sia$1@ger.gmane.org> (raw)
In-Reply-To: <CAB-hsnCmOAYBvTkd+ndOPG0S6XtRQQrMjm2qJnF-AhFQqEfk2g@mail.gmail.com>

On 2/18/13 12:33 PM, Felix Crux wrote:
> Thanks for the suggestion; it actually led to an interesting discovery:
>
> With the keybinding set to (kbd "C-x<escape>"), running "C-x<escape>  C-h"
> (in a terminal session, since in a GUI one it quits Emacs) shows the following:
>
>    Global Bindings Starting With C-x ESC:
>    key             binding
>    ---             -------
>    C-x ESC ESC     repeat-complex-command
>
> This got me thinking about the fact that the help system is calling it "ESC",
> not "<escape>", and wondering about whether that is significant.
>
> I then tried changing the binding to (kbd "C-x ESC"), which actually works in
> both graphical and terminal sessions!
>
> In conclusion, it looks as though there is a difference between "ESC" and
> "<escape>", at least as far as the "kbd" macro is concerned. I don't know
> enough about the topic to be sure, but I would speculate that "<escape>" is
> some sort of special meta-character being sent by the X window system, while
> "ESC" is the lower-level key value.
>
> Very interesting stuff; and it now lets me use the more readable form, too!
> I'm still quite curious about the discrepancy, but at least the original
> problem is solved. Thank you!

See the "Named ASCII Control Characters" node of the Emacs manual, and the
"Function Keys" node of the Emacs Lisp manual.

-- 
Kevin Rodgers
Denver, Colorado, USA




  reply	other threads:[~2013-02-19 15:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-18 16:49 Difference between GUI/terminal when using "kbd" macro Felix Crux
2013-02-18 19:12 ` Jambunathan K
2013-02-18 19:33   ` Felix Crux
2013-02-19 15:58     ` Kevin Rodgers [this message]
2013-02-19 13:32 ` Stefan Monnier

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='kg07em$sia$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.