From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rabbe Fogelholm Newsgroups: gmane.emacs.bugs Subject: Re: Problem with interpretation of <-Backspace key in version 21.2.1 Date: Sat, 06 Apr 2002 23:47:40 +0200 Organization: Telenordia/Algonet Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3CAF6CFC.7D5D88A7@era-t.ericsson.se> References: <3CAF1A82.95DB4430@era-t.ericsson.se> <8011-Sat06Apr2002202442+0300-eliz@is.elta.co.il> Reply-To: eubrafo@operamail.com NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1018129693 26299 127.0.0.1 (6 Apr 2002 21:48:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2002 21:48:13 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16ty2f-0006q4-00 for ; Sat, 06 Apr 2002 23:48:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ty2a-0005oa-00; Sat, 06 Apr 2002 16:48:08 -0500 Original-Received: from dfw7-1.relay.mail.uu.net ([199.171.54.106]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16ty2F-0005lR-00 for ; Sat, 06 Apr 2002 16:47:47 -0500 Original-Received: from smtp.tninet.se by dfw7sosrv11.alter.net with ESMTP (peer crosschecked as: sheridan.tninet.se [195.100.94.102]) id QQmjlv27099 for ; Sat, 6 Apr 2002 21:47:45 GMT Original-Received: from green.tninet.se (green.tninet.se [195.100.94.182]) by sheridan.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP id 298132.129664.1018.1s18885337sheridan for ; Sat, 06 Apr 2002 23:47:44 +0200 Original-Received: (qmail 23164 invoked by uid 14355); 6 Apr 2002 21:48:10 -0000 Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 50 Original-NNTP-Posting-Host: bb-62-5-42-224.bb.tninet.se Original-X-Trace: green.tninet.se 1018129689 23157 62.5.42.224 (6 Apr 2002 21:48:09 GMT) Original-X-Complaints-To: abuse@algonet.se Original-NNTP-Posting-Date: Sat, 6 Apr 2002 21:48:09 +0000 (UTC) Original-To: Eli Zaretskii X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9-31 i686) X-Accept-Language: en Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:466 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:466 Eli Zaretskii wrote: > > > From: Rabbe Fogelholm > > Newsgroups: gnu.emacs.bug > > Date: Sat, 06 Apr 2002 17:55:46 +0200 > > > > My setup might be important. The PC runs Red Hat Linux 7.1 and KDE. In > > that environment I run an xterm (version XFree86 4.0.3(156)). From the > > xterm session I do an ssh login to a Solaris/SPARC machine that starts a > > login shell which is 6.10.00 (Astron). From the tcsh prompt I start > > Emacs with the -nw option. > > It sounds like this is not a bug, but an intended change in behavior, > which somehow clashes with your xterm/Emacs customizations which were > optimized for the pre-v21 behavior. > > My guess is that your xterm and/or your shell startup files on the > Solaris side set up the Backspace key to produce the [deletechar] > escape sequence. Try using "C-h l" (that's a letter ell, not a digit > one) to see what does Emacs receive when you press that key. I don't have any customizations that should affect this. My .emacs file contained just one thing which was (font-lock-mode 1), and my .Xdefaults file contained nothing relevant. > Also, the new function normal-erase-is-backspace-mode might help you > set this straight. The description of the related issues in the > manual, in the sections "Deletion" and "If Fails to Delete", > should also prove useful. > > If all of the above does not help to resolve the problem, or at least > understand why exactly the behavior changed since Emacs 20.7, please > report the details that you discovered here. It turned out that a usable workaround for me is to add this to the .emacs file: (if (functionp 'normal-erase-is-backspace-mode) (apply 'normal-erase-is-backspace-mode '(0)) ) The code has no effect with older versions of emacs, and sets things "right" for me with the -nw option in version 21.2.1. I now realize that this is an intended change in 21.2 (see and search for normal-erase-is-backspace). Perhaps it makes life easier for some users, but given my particular setup it caused me a bit of confusion. --Rabbe Fogelholm