all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@lsi.nec.co.jp>
Cc: Andreas Schwab <schwab@suse.de>, emacs-devel@gnu.org
Subject: Re: M-<function-key> vs. ESC <function-key>
Date: Fri, 07 Jan 2005 15:36:35 +0900	[thread overview]
Message-ID: <buoekgx7nkc.fsf@mctpc71.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <E1CmkCC-0006bL-Uh@fencepost.gnu.org> (Richard Stallman's message of "Thu, 06 Jan 2005 21:49:48 -0500")

Richard Stallman <rms@gnu.org> writes:
>     >     More specifically, when I type Meta-left at Emacs running in
>     >     xterm it receives the key sequence [?\e ?\e ?O ?D], which
>     >     gets translated to [?\e left] through function-key-map.
>
>     In which way?  What is the expected behaviour?
>
> That Meta-left turns into ESC left is strange.

What other character-sequence should xterm send?  I guess it can set the
high bit for meta-fied single-character keys, but it's a bit unclear
what it should do for keys that send escape sequences, so prepending an
ESC seems as good as anything...

Maybe emacs ought to directly handle such "ESC ESC ..." sequences as
independent function key bindings, since it really seems like that's
what they are; e.g., add the translation ("ESC ESC O D" -> [\M-left]) to
function-key-map.

-Miles
-- 
We are all lying in the gutter, but some of us are looking at the stars.
-Oscar Wilde

  reply	other threads:[~2005-01-07  6:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-03 15:16 M-<function-key> vs. ESC <function-key> Andreas Schwab
2005-01-04  3:36 ` Richard Stallman
2005-01-04 12:01   ` Lennart Borgman
2005-01-05  3:31     ` Richard Stallman
2005-01-04 13:02   ` Andreas Schwab
2005-01-05  3:31     ` Richard Stallman
2005-01-05 19:43       ` Andreas Schwab
2005-01-06  4:54         ` Richard Stallman
2005-01-06 12:16           ` Andreas Schwab
2005-01-07  2:49             ` Richard Stallman
2005-01-07  6:36               ` Miles Bader [this message]
2005-01-07 13:14               ` Andreas Schwab
2005-01-06 16:14           ` David Kastrup
2005-01-06 17:36             ` Stefan Monnier
2005-01-06 18:03               ` David Kastrup
2005-01-06 18:30                 ` Stefan Monnier
2005-01-06 19:20                   ` David Kastrup

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=buoekgx7nkc.fsf@mctpc71.ucom.lsi.nec.co.jp \
    --to=miles@lsi.nec.co.jp \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=schwab@suse.de \
    /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.