GNU bug report logs -
#36871
isearch-toggle-case-fold outside of isearch causes unexpected fontification
Previous Next
Reported by: "a_subscriber" <a_subscriber <at> mail.ru>
Date: Wed, 31 Jul 2019 08:03:03 UTC
Severity: minor
Tags: confirmed, fixed
Found in version 26.1
Fixed in version 27.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
tags 36871 + fixed
close 36871 27.0.50
quit
>>> 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)
This bug report was last modified 5 years and 294 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.