[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-g from Isearch (was: Isearch: retrieve last successful search stri
From: |
Dani Moncayo |
Subject: |
Re: C-g from Isearch (was: Isearch: retrieve last successful search string from when you quit (`C-g')) |
Date: |
Tue, 2 Oct 2012 19:05:07 +0200 |
On Tue, Oct 2, 2012 at 6:22 PM, Drew Adams <address@hidden> wrote:
>> > `C-g' from Isearch does this:
>> * If the current search is successful, `C-g' cancels the Isearch.
>> * Else, `C-g' restores the last succesful search string.
>>
>> And I, like Nix, don't like the second case. I would like C-g to
>> _always_ cancel the Isearch. So IMO this behavior should be
>> configurable.
>
> It already is. Just do this:
>
> (define-key isearch-mode-map 'isearch-cancel)
Right. I'll add that (well, adding the missing "C-g") to my init file. Thanks.
>
> And you also already have a key binding for this: `ESC ESC ESC'.
>
I don't want to use another binding. I just want C-g to
unconditionally exit Isearch.
--
Dani Moncayo