unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Difference between GUI/terminal when using "kbd" macro
@ 2013-02-18 16:49 Felix Crux
  2013-02-18 19:12 ` Jambunathan K
  2013-02-19 13:32 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Felix Crux @ 2013-02-18 16:49 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I recently ran across a perplexing problem that I can't find the answer
to in the documentation.

The following snippet in my init file works just as one would expect in
both graphical (GTK+) and terminal instances of Emacs:

  (global-set-key [?\C-x ?\e] 'save-buffers-kill-emacs)

However, this version, which I thought to be identical (but more readable),
only works in graphical sessions:

  (global-set-key (kbd "C-x <escape>") 'save-buffers-kill-emacs)

When attempting to use it in a terminal, the status line simply displays
"C-x ESC-", as though waiting for more input.

Invoking emacs-version gives me "GNU Emacs 23.4.1 (x86_64-pc-linux-gnu,
GTK+ Version 2.24.10) of 2012-09-08 on trouble, modified by Debian".

I'd be most grateful if someone would point me in the right direction to
understand this. Thank you,

Felix C.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-02-19 15:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-02-19 13:32 ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).