[Top][All Lists]

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

bug#36871: 26.1; I-search-toggle-csse-fold

From: Juri Linkov
Subject: bug#36871: 26.1; I-search-toggle-csse-fold
Date: Mon, 05 Aug 2019 23:39:58 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

tags 36871 + fixed
close 36871 27.0.50

>>> Shouldn't toggling commands activate isearch-mode?
>> I meant the same guarding like in isearch-yank-kill:
>> @@ -1971,6 +1971,7 @@ isearch-define-mode-toggle
>>           ,(format "Toggle %s searching on or off.%s" mode
>>                    (if docstring (concat "\n" docstring) ""))
>>           (interactive)
>> +         (unless isearch-mode (isearch-mode t))
> +1 from me, I like this better than throwing an error.

So I pushed to master.  Now an additional interesting question:
it seems that now some global isearch-activating commands are
obsolete, e.g. currently ‘M-s w’ runs the command isearch-forward-word.
Now it could be rebound to ‘isearch-toggle-word’, i.e.

the current

  (define-key search-map "w" 'isearch-forward-word)

could be replaced with

  (define-key search-map "w" 'isearch-toggle-word)

reply via email to

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