[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30187: M-e should restore isearch correctly in special modes
From: |
Juri Linkov |
Subject: |
bug#30187: M-e should restore isearch correctly in special modes |
Date: |
Tue, 23 Jan 2018 00:14:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
>>> All imaginable solutions were very bad. But now I found a solution
>>> that at least not bad. It changes the global value of customizable
>>> variables for the time while isearch is active (including the time
>>> when isearch is suspended temporarily), and restores the original value
>>> afterwards.
>>
>> What if the user QUITs out of the search -- will the original value be
>> restored?
>
> Yes, the original value is restored thanks to ‘condition-case’ with
> ‘quit’ in ‘with-isearch-suspended’ that guarantees that ‘isearch-abort’
> is always called.
Done.