From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: can't global-set-key in emacs -nw Date: Mon, 02 Feb 2004 00:44:07 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1075682839 10697 80.91.224.253 (2 Feb 2004 00:47:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2004 00:47:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 02 01:47:10 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 1AnSF4-000605-00 for ; Mon, 02 Feb 2004 01:47:10 +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 1AnSEK-0007MT-7h for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Feb 2004 19:46:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1075682647 132.204.24.84 (Sun, 01 Feb 2004 19:44:07 EST) Original-NNTP-Posting-Date: Sun, 01 Feb 2004 19:44:07 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:120619 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:16566 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16566 >> 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? Well, yes, it seems. > 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. Xterm on Redhat did not send the same sequences as xterm from XFree86, last time I checked (which was a whilie back admittedly). > 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? Since adding sequences to lisp/term/xterm.el is mostly harmless even if the sequences are not used (as long as there's no conflict), the CVS version of the file has more entries because I've added the sequences I've come across. You may want to check that version of the file (from savannah.gnu.org/projects/emacs, for example) and tell me if you know of other sequences so I can add them. > 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? I wouldn't know. I never use rxvt. Stefan