From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: matt Newsgroups: gmane.emacs.help Subject: Re: New C-h/Delete issue on emacs22.2.1-nox (Xquartz 2.3.0) Date: Fri, 8 Aug 2008 01:12:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: <92626e59-9373-45b1-adb1-e15c2dbff667@i20g2000prf.googlegroups.com> References: <0caacc78-2b64-40e0-8359-f52ad39b0010@z6g2000pre.googlegroups.com> <75eab720-b2d6-4b50-91eb-31ec2b8f9ad0@p31g2000prf.googlegroups.com> <00460e68-2344-4911-bfaf-c2e7213c2a47@1g2000pre.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218184966 24786 80.91.229.12 (8 Aug 2008 08:42:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 08:42:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 10:43:36 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRNZP-0001Uy-EF for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 10:43:35 +0200 Original-Received: from localhost ([127.0.0.1]:35431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRNYT-0003mX-Tt for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 04:42:37 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i20g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 67.169.21.252 Original-X-Trace: posting.google.com 1218183152 14299 127.0.0.1 (8 Aug 2008 08:12:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 8 Aug 2008 08:12:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i20g2000prf.googlegroups.com; posting-host=67.169.21.252; posting-account=1JrAigoAAABFwqCLRySIs4tpJzLN02KR User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:160940 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56290 Archived-At: PROBLEM SOLVED! When you press a key in X that key sends a keynum that translates into a keysym (okay, we know that!). Now... each keysym (a, b, c, Delete, BackSpace, etc.) itself has a corresponding character or character sequence is sent xterm which translates into xterm characters/actions (you'll have to pardon my improvised nomenclature). The control character keysyms are sent to xterm in ascii caret notation: BackSpace -> ^H Delete -> ^? If xterm's emulate of vt100 used the normal ascii notation above I could have just switched BackSpace and Delete and then set erase to ^?. However, by default xterm's Delete keysym sends to this weird sequence: ^[[3~. God only knows why they did that... In order to change this back to the normal ascii caret notation sequence you have to set the backarrowKey variable (from X resources) to false. You can do this by putting this line into the .Xdefaults file in your home directory: xterm.*backarrowKey: false I owe my finding and a lot of gratitude to the author of this page: http://www.hypexr.org/linux_ruboff.php CHEERS! matt