help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delete acting as backspace


From: Jonathan Groll
Subject: Re: Delete acting as backspace
Date: Tue, 31 Mar 2009 09:17:36 +0200
User-agent: Mutt/1.5.18 (Linux mail 2.6.18.8-linode16 i686)

On Mon, Mar 30, 2009 at 10:09:55PM +0200, Nikolaj Schumacher wrote:
Alberto Simões <hashashin@gmail.com> 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 <your key>, you'll see this:

DEL (translated from <kp-delete>) runs the command
backward-delete-char-untabify, which is an interactive compiled Lisp function 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 "<kp-delete>") '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 "<kp-delete>") 'delete-char)
(global-set-key (kbd "<backspace>") 'backward-delete-char)
(global-set-key (kbd "<home>") 'move-beginning-of-line)
(global-set-key (kbd "<end>") '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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]