unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: usenet@heslin.eclipse.co.uk (Peter Heslin)
Subject: Re: can't global-set-key in emacs -nw
Date: 1 Feb 2004 14:57:02 -0800	[thread overview]
Message-ID: <f1ff9348.0402011457.deaf4ea@posting.google.com> (raw)
In-Reply-To: jwvad427nhg.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca

Stefan Monnier <monnier@iro.umontreal.ca> wrote in message news:<jwvad427nhg.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca>...
> Once your terminal emulator is properly configured you need to tell Emacs
> what that seuqnce is by appropriate (define-key function-key-map ...) calls.
> See lisp/term/xterm.el for some default settings used if your terminal
> is xterm.  The same terminal emulator may send different sequences
> depending on the configuration, so there's no standard sadly.

Assuming the user has not changed any escape sequences via resources
settings, is this still really the case?

On my (Debian x86) system, xterm and gnome-terminal (which gives $TERM
as "xterm") seem to agree on a quasi-standard set of escape sequences
for function-keys modified by shift, control, alt, shift-control and
shift-alt, all of which are distinct.  But in term/xterm.el, only the
unmodified function-key escapes are translated.  Is there a good
reason for this absence?  Are the escape sequences for modified
function-keys in fact different in xterm from system to system?  Is it
really true that life is messier than it seems on my system?

I am aware that the escape sequences for rxvt and rxvt-derived
terminal emulators are completely different, but again term/rxvt.el
translates some of these -- including control-modified function keys
-- but not all, such as shift-control modified function-keys.  Again,
is there a good reason for this omission?

Peter

  reply	other threads:[~2004-02-01 22:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-01  0:27 can't global-set-key in emacs -nw Joel Smith
2004-02-01  6:33 ` Eli Zaretskii
2004-02-01 16:56 ` Stefan Monnier
2004-02-01 22:57   ` Peter Heslin [this message]
2004-02-02  0:44     ` Stefan Monnier
2004-02-02 21:04       ` Peter Heslin

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f1ff9348.0402011457.deaf4ea@posting.google.com \
    --to=usenet@heslin.eclipse.co.uk \
    /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.
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).