From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bernardo Newsgroups: gmane.emacs.help Subject: Re: GNU Emacs in console mode -- DELETE key misbehavior Date: Sat, 01 Aug 2009 15:47:48 +1000 Message-ID: <4A73D704.1030108@pobox.com> References: Reply-To: bernardo.bacic@pobox.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249106005 27702 80.91.229.12 (1 Aug 2009 05:53:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2009 05:53:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 01 07:53:18 2009 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 1MX7Wt-0004xh-CY for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Aug 2009 07:53:15 +0200 Original-Received: from localhost ([127.0.0.1]:60035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MX7Ws-0004KB-AO for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Aug 2009 01:53:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MX7W1-0004Ht-Mf for help-gnu-emacs@gnu.org; Sat, 01 Aug 2009 01:52:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MX7Vv-00049J-IN for help-gnu-emacs@gnu.org; Sat, 01 Aug 2009 01:52:20 -0400 Original-Received: from [199.232.76.173] (port=37201 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MX7Vv-000495-CB for help-gnu-emacs@gnu.org; Sat, 01 Aug 2009 01:52:15 -0400 Original-Received: from a-sasl-quonix.sasl.smtp.pobox.com ([208.72.237.25]:46934 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MX7Vu-0001Gy-Vi for help-gnu-emacs@gnu.org; Sat, 01 Aug 2009 01:52:15 -0400 Original-Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id C4DAD1C71C for ; Sat, 1 Aug 2009 01:52:12 -0400 (EDT) Original-Received: from [192.168.1.10] (unknown [220.233.188.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 30BE81C71B for ; Sat, 1 Aug 2009 01:52:11 -0400 (EDT) User-Agent: Thunderbird 2.0.0.22 (X11/20090605) In-Reply-To: X-Pobox-Relay-ID: 759D6D12-7E5F-11DE-9968-F699A5B33865-14340206!a-sasl-quonix.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:66609 Archived-At: > I use Ubuntu Jaunty Linux. > > My problem is that when I run emacs -nw, my BACKSPACE key somehow is > mapped to C-d and deletes forward. This is NOT what I want -- I want > it to delete backward like regular C-d. > > I did run emacs without any custom .emacs file, and still had this > problem. > > When I do describe-key and then his BACKSPACE, I get: > > C-d runs the command delete-char > which is an interactive built-in function in `C source code'. > It is bound to C-d, . > (delete-char N &optional KILLFLAG) > > I did note that if I say in command line: > > stty erase C-v BACKSPACE > > then BACKSPACE works as I want, but I would like to see if I can do it > in emacs only. > > i > does this do what you want? (global-set-key [backspace] 'backward-delete-char)