From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: usenet@heslin.eclipse.co.uk (Peter Heslin) Newsgroups: gmane.emacs.help Subject: Re: can't global-set-key in emacs -nw Date: 1 Feb 2004 14:57:02 -0800 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1075676563 713 80.91.224.253 (1 Feb 2004 23:02:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2004 23:02:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 02 00:02:36 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AnQbr-0001Wr-00 for ; Mon, 02 Feb 2004 00:02:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AnQaP-00068z-1a for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Feb 2004 18:01:05 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 213.152.32.235 Original-X-Trace: posting.google.com 1075676222 31101 127.0.0.1 (1 Feb 2004 22:57:02 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 1 Feb 2004 22:57:02 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:120617 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16564 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16564 Stefan Monnier wrote in message news:... > 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