From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dale Hagglund Newsgroups: gmane.emacs.bugs Subject: inconsistent bindings of backspace and delete between X and xterm Date: Fri, 06 Feb 2004 20:35:13 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076125101 12772 80.91.224.253 (7 Feb 2004 03:38:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2004 03:38:21 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 07 04:38:13 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 1ApJIK-0005ym-00 for ; Sat, 07 Feb 2004 04:38:12 +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 1ApJGY-0005HJ-90 for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Feb 2004 22:36:22 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ApJGW-0005HA-6i for bug-gnu-emacs@gnu.org; Fri, 06 Feb 2004 22:36:20 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ApJG0-0005Dx-IT for bug-gnu-emacs@gnu.org; Fri, 06 Feb 2004 22:36:19 -0500 Original-Received: from [198.161.246.10] (helo=isengard.yottayotta.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ApJG0-0005Dd-8S for bug-gnu-emacs@gnu.org; Fri, 06 Feb 2004 22:35:48 -0500 Original-Received: from fw-edm-dmz.yottayotta.com ([192.168.1.2] helo=edm-app01.yottayotta.com) by isengard.yottayotta.com with esmtp (Exim 3.33 #1) id 1ApJGL-0001Ox-00 for bug-gnu-emacs@gnu.org; Fri, 06 Feb 2004 20:36:09 -0700 Original-Received: from tethys.edmonton.yottayotta.com ([10.0.1.8]) by edm-app01.yottayotta.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id DY4S7BJ9; Fri, 6 Feb 2004 20:35:14 -0700 Original-Received: from dernhelm.edmonton.yottayotta.com ([10.0.1.76]) by tethys.edmonton.yottayotta.com with esmtp (Exim 3.22 #2) id 1ApJFR-000Ggg-00; Fri, 06 Feb 2004 20:35:13 -0700 Original-Received: from dernhelm.edmonton.yottayotta.com (desktopinstall [127.0.0.1]) by dernhelm.edmonton.yottayotta.com (8.12.8/8.12.8) with ESMTP id i173ZDk3004824; Fri, 6 Feb 2004 20:35:13 -0700 Original-Received: (from rdh@localhost) by dernhelm.edmonton.yottayotta.com (8.12.8/8.12.8/Submit) id i173ZDkW004822; Fri, 6 Feb 2004 20:35:13 -0700 X-Authentication-Warning: dernhelm.edmonton.yottayotta.com: rdh set sender to rdh@yottayotta.com using -f Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6895 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6895 [I read bug-gnu-emacs via the gatewayed newsgroup. Please cc me on any followups, if possible. --rdh] I was experimenting with emacs 21.3 running under X and then inside xterm, and I observe the following behaviour. In all cases, I started emacs with the -q flag. 1. Under X, the backspace and delete keys generate the respective window-system events, each of which is mapped to DEL via the function-key-map, which is then bound to `delete-previous-character'. 2. Under xterm version 4.2.99.903(174), backspace sends DEL and delete sends `ESC [ 3 ~'. Emacs treats DEL, of course, as `delete-previous-character', but `ESC [ 3 ~' is mapped to the event , which is bound to `delete-char'. This behaviour is inconsistent. In each case, emacs can distinguish between the Delete and Backspace keys, but in one environment they behave, and in the other, differently. Also, is there any reason why `ESC [ 3 ~' shouldn't be mapped to instead of . Is this intentional? I don't really care which way the inconsistency is resolved, but I think it should be. Dale Hagglund.