bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#52356: 27.2; Isearch prompt changes unexpectedly with char folding e


From: Juri Linkov
Subject: bug#52356: 27.2; Isearch prompt changes unexpectedly with char folding enabled
Date: Tue, 07 Dec 2021 21:23:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

> when I use Isearch with char folding enabled, the prompt changes very
> briefly at every character I type in. The actual prompt depends on the
> values of ‘lazy-count-*-format’ and ‘search-default-mode’ (if they all
> have their default value the prompt is ‘Pending char-fold I-search:…’;
> with the settings described below it’s just ‘I-search: …’, and it
> changes briefly to ‘Pending I-search: …’).
>
> Steps to reproduce:
> -------------------
>
> Launch ‘Emacs -Q’, evaluate these forms
>
>     (setq isearch-lazy-count t)
>     (setq lazy-count-prefix-format nil
>           lazy-count-suffix-format " [%s/%s]")
>     (setq-local search-default-mode 'char-fold-to-regexp)
>     (electric-quote-local-mode)
>
> and Isearch for something.

Thanks for the bug report.  Some time ago I proposed the following patch:

diff --git a/lisp/isearch.el b/lisp/isearch.el
index 75a80840d6..5aa8ea2f14 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -3479,7 +3479,6 @@ isearch-message-prefix
   ;; If currently failing, display no ellipsis.
   (or isearch-success (setq ellipsis nil))
   (let ((m (concat (if isearch-success "" "failing ")
-                  (if isearch-adjusted "pending " "")
                   (if (and isearch-wrapped
                            (not isearch-wrap-function)
                            (if isearch-forward

But it was unclear whether it's really justified to remove the message
"pending" completely.





reply via email to

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