[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom backspace delete in mini-buffer
From: |
TheLonelyStar |
Subject: |
Re: Custom backspace delete in mini-buffer |
Date: |
Fri, 8 Aug 2008 01:22:50 -0700 (PDT) |
Lennart Borgman (gmail) wrote:
>
> Drew Adams wrote:
>>> It works fine, but there is a problem. When I am in i-search
>>> mode, pressing backspace deletes the last character in the
>>> window, not in the i-search mini-buffer.
>>>
>>> I do not know much about elisp. The function above I just
>>> "stole" together. What can I do?
>>
>> I don't have time to look at this now - hopefully someone else will help
>> you.
>>
>> But here's one piece of info that might help a little: isearch does not
>> use the
>> minibuffer (for normal searching); it uses the echo area. It reads your
>> input
>> events without using the minibuffer, and it echoes your keys to the echo
>> area in
>> an incremental way.
>
> I am not sure and I have no idea why it should be needed, but try this
>
> (define-key isearch-mode-map [backspace] 'isearch-delete-char)
>
>
Well, it works! Thanks!
--
View this message in context:
http://www.nabble.com/Custom-backspace-delete-in-mini-buffer-tp18881785p18887783.html
Sent from the Emacs - Help mailing list archive at Nabble.com.