From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "CarlC" Newsgroups: gmane.emacs.help Subject: Inconsistant Delete Key Date: Fri, 06 Sep 2002 15:32:31 GMT Organization: Road Runner - Texas Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031327070 22561 127.0.0.1 (6 Sep 2002 15:44:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2002 15:44:30 +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 17nLHW-0005rL-00 for ; Fri, 06 Sep 2002 17:44:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nLJ8-0002C2-00; Fri, 06 Sep 2002 11:46:06 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone.austin.rr.com!twister.austin.rr.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-NNTP-Posting-Host: 66.68.162.22 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.austin.rr.com 1031326351 66.68.162.22 (Fri, 06 Sep 2002 10:32:31 CDT) Original-NNTP-Posting-Date: Fri, 06 Sep 2002 10:32:31 CDT Original-Xref: nntp.stanford.edu gnu.emacs.help:104546 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1105 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1105 Hi, all. I'm sure this subject has been talked about, ad nauseum, but I have a new take on it. I am running emacs 20.7.1. I had the usual problem with the delete key not doing a delete-char. I have somewhat corrected the problem in ~/.emacs, although it seems a kludge to me. My problem is that when I start emacs with a filename argument, sometimes the delete key does a delete-char, and other times it does a backward-delete-char. This seems to be dependent on the file that I initial open from the command line. I am at a loss as to this inconsistancy. My default .emacs file had: ;; Set up the keyboard so the delete key on both the regular keyboard ;; and the keypad delete the character under the cursor and to the right ;; under X, instead of the default, backspace behavior. (global-set-key [delete] 'delete-char) (global-set-key [kp-delete] 'delete-char) I added: (global-set-key "\C-h" 'backward-delete-char) (global-set-key "\C-?" 'delete-char) Thanks, in advance, for any help.