From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Hill Newsgroups: gmane.emacs.help Subject: Re: Emacs reads both DEL and Backspace as DEL Date: Thu, 23 Jan 2003 12:24:49 -0800 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3E301870.9040904@jurakm.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Trace: main.gmane.org 1043353712 26669 80.91.224.249 (23 Jan 2003 20:28:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2003 20:28:32 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18bnxf-0006vu-00 for ; Thu, 23 Jan 2003 21:28:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18bnwN-0007zr-01 for gnu-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2003 15:27:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18bnvz-0007qa-00 for help-gnu-emacs@gnu.org; Thu, 23 Jan 2003 15:26:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18bnur-0007Au-00 for help-gnu-emacs@gnu.org; Thu, 23 Jan 2003 15:25:38 -0500 Original-Received: from renfield.synergymicro.com ([153.105.4.30] helo=synergymicro.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18bnuC-0006Qo-00 for help-gnu-emacs@gnu.org; Thu, 23 Jan 2003 15:24:56 -0500 Original-Received: from synergy.synergy.encinitas.ca.us ([153.105.4.29]) by synergymicro.com (8.9.3/8.9.3) with ESMTP id MAA23598 for ; Thu, 23 Jan 2003 12:25:40 -0800 Original-Received: from [198.17.100.22] (G-Hill-Mac [198.17.100.22])MAA22850 for ; Thu, 23 Jan 2003 12:30:45 -0800 In-Reply-To: <3E301870.9040904@jurakm.com> Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5914 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5914 At 4:29 PM +0000 1/23/03, Ivan A. Uemlianin wrote: >Dear All > >I'm running GNU emacs 20.7 on Debian GNU/Linux 3.0 > >I'm just in the process of writin ga little ~/.emacs file. I >haven't been able to find the system default init file (not in >/usr/share/emacs or /etc/default), but I wanted to have some >different settings. > >One change I wanted was to have the 'delete-backward-char and 'Delete' (DEL) as delete-char. However, my >emacs reads both of these keys as DEL (detectable with M-x >describe-key). > >Virtual consoles and other apps treat the keys differently, so I >know the issue is with emacs (and not eg the keyboard). > >Does anyone have any clues as to what's happening, and what I can do >to change it? On my platform, (Unix, on a Sun, using eXodus on a MAC (OS-9) as my terminal), I have to put the following into my shell login script: xmodmap -e "keycode 188 = BackSpace" I used a program called xev to find out what the keycode was (188) for the key that I wanted to use as BackSpace. If I didn't use xmodmap to change it, it was assigned the same keysym, "Delete", as the key I use for delete-char, whose keycode is 48. I also have the following in my .emacs: (global-set-key [delete] 'delete-char) after which describe-key starts identifying that key (keycode = 48) as "delete" instead of "DEL", although it continues to identify the other 'delete' key (keycode=188) as "DEL". I also tried globally binding [backspace] to 'delete-backward-char, after which describe-key started indentifying the 188-key as "backspace" instead of as "DEL". But that had the undesirable side-effect of interfering with the automatic re-binding of that key for certain major modes; so I just don't rebind [backspace] and everything works the way I like. Due to differences in our platforms, the details may be a bit different for you. But perhaps this will help you figure out what you need to do. Good luck. --Greg