From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Groll Newsgroups: gmane.emacs.help Subject: Re: Delete acting as backspace Date: Tue, 31 Mar 2009 09:17:36 +0200 Message-ID: <20090331071736.GH2532@groll.co.za> References: <2b670b7e0903291313u48243770l84740036abf96bc4@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238483899 20481 80.91.229.12 (31 Mar 2009 07:18:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2009 07:18:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 31 09:19:37 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 1LoYG0-0003eE-Q7 for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Mar 2009 09:19:37 +0200 Original-Received: from localhost ([127.0.0.1]:54678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoYEc-00015v-Sk for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Mar 2009 03:18:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoYEH-000140-CC for help-gnu-emacs@gnu.org; Tue, 31 Mar 2009 03:17:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoYEC-00011n-MQ for help-gnu-emacs@gnu.org; Tue, 31 Mar 2009 03:17:48 -0400 Original-Received: from [199.232.76.173] (port=59082 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoYEC-00011i-JT for help-gnu-emacs@gnu.org; Tue, 31 Mar 2009 03:17:44 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:19311) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LoYEB-0007AK-SZ for help-gnu-emacs@gnu.org; Tue, 31 Mar 2009 03:17:44 -0400 Original-Received: from mail.groll.co.za ([67.18.176.185]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LoYEA-0000FN-4x for help-gnu-emacs@gnu.org; Tue, 31 Mar 2009 03:17:42 -0400 Original-Received: by mail.groll.co.za (Postfix, from userid 1004) id 90D6C757ED; Tue, 31 Mar 2009 09:17:36 +0200 (SAST) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (Linux mail 2.6.18.8-linode16 i686) X-detected-kernel: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:63411 Archived-At: On Mon, Mar 30, 2009 at 10:09:55PM +0200, Nikolaj Schumacher wrote: >Alberto Sim=F5es wrote: > >> Hello. >> >> In my recently compiled emacs (MacOS / NS) when I use Function + >> Backspace (the usual way to perform delete), emacs interprets it as a >> standard backspace. > >If you press C-h k , you'll see this: > >DEL (translated from ) runs the command >backward-delete-char-untabify, which is an interactive compiled Lisp fun= ction in >`simple.el'. > >It is bound to DEL. > >The key is "translated" to DEL, you can fix this by binding it to >something else: > >(global-set-key (kbd "") 'delete-char) > > >If you're think that the default behavior is wrong, please also report a >bug (M-x report-emacs-bug). > I've got the following in my .emacs: ;; Cocoa emacs, for some bizarre reason DELETE key is bound to backward-delete-char-untabify ;;and make home and end behave in a non-mac way! (if (string-match "darwin" (version)) ( progn (global-set-key (kbd "") 'delete-char) (global-set-key (kbd "") 'backward-delete-char) (global-set-key (kbd "") 'move-beginning-of-line) (global-set-key (kbd "") 'move-end-of-line) ) ) If you don't like my home/end stuff please remove those lines. Since I don't understand what is special about the -untabify function, I didn't think it was a bug, but I did want my keyboard to behave like I was used to on other platforms. Regards, Jonathan