From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: inconsistent bindings of backspace and delete between X and xterm Date: 11 Feb 2004 08:57:26 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <7137-Sat07Feb2004174147+0200-eliz@elta.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1076482695 26057 80.91.224.253 (11 Feb 2004 06:58:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2004 06:58:15 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 11 07:58:06 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 1AqoJy-0001BY-00 for ; Wed, 11 Feb 2004 07:58:06 +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 1AqoIN-0002zx-Sk for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Feb 2004 01:56:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AqoIM-0002zr-4s for bug-gnu-emacs@gnu.org; Wed, 11 Feb 2004 01:56:26 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AqoHq-0002qa-7F for bug-gnu-emacs@gnu.org; Wed, 11 Feb 2004 01:56:25 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.24) id 1AqoHm-0002gO-W4; Wed, 11 Feb 2004 01:55:51 -0500 Original-To: Dale Hagglund In-reply-to: (message from Dale Hagglund on Tue, 10 Feb 2004 17:13:53 -0700) 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:6928 > From: Dale Hagglund > Date: Tue, 10 Feb 2004 17:13:53 -0700 > > >> This is wrong: the key should not be mapped to DEL. It > >> should be mapped to C-d, and thus run `delete-char', like it does > >> in xterm. > > [In the original email I provided some more details about my setup > here.] > > Do you have any thoughts on why I might be getting incorrect default > behaviour? Where might I look to try to track down what's going on? The value of normal-erase-is-backspace is the place to start: if your system has both a Backspace key and a Delete key, Emacs should have set normal-erase-is-backspace to t. This setting happens in startup.el: Emacs invokes the function x-backup-delete-keys-p, and if it returns non-nil, assumes both Backspace and Delete keys exist and are bound to their usual meanings. The function x-backup-delete-keys-p (defined on xfns.c) needs the XKB extension of the X libraries to do its work; if your system doesn't support XKB, that could be the reason why the above automagic doesn't work. I hope the information above gives you enough to start tracing what happens on your system during startup and see why Emacs doesn't DTRT.