[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-s and delete under Windows
From: |
Lennart Borgman |
Subject: |
Re: C-s and delete under Windows |
Date: |
Mon, 30 Mar 2009 23:02:30 +0200 |
On Mon, Mar 30, 2009 at 10:56 PM, Nikolaj Schumacher <me@nschum.de> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> wrote:
>
>> On Mon, Mar 30, 2009 at 10:14 PM, Nikolaj Schumacher <me@nschum.de> wrote:
>>>> (global-set-key [backspace] 'backward-delete-char-untabify)
>>>
>>> Yes, it is. Because globally setting backspace, will override the
>>> meaning in `isearch-mode-map'. Try:
>>>
>>> (define-key isearch-mode-map [backspace] 'isearch-delete-char)
>>
>> Why does setting it globally override the setting in isearch-mode-map?
>
> IIRC:
> Backspace is translated to DEL by default.
> DEL is bound to `isearch-delete-char' in `isearch-mode-map', but
> backspace isn't bound there at all. Binding backspace overrides the
> translation, which is responsible for the meaning in `isearch-mode-map'.
Ah, I see. Thanks.
But ... this is so confusing so I think that it would be good if the
user gets a warning ... somewhere ...
Message not available