unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Andrea Greselin <greselin.andrea@gmail.com>
Cc: 52356@debbugs.gnu.org
Subject: bug#52356: 27.2; Isearch prompt changes unexpectedly with char folding enabled
Date: Tue, 07 Dec 2021 21:23:53 +0200	[thread overview]
Message-ID: <868rwwdxrq.fsf@mail.linkov.net> (raw)
In-Reply-To: <CAJ_oJbbBjFPPxDODYi1dOVud5KXgFotGcaWozU1khTHO0pv7Ug@mail.gmail.com> (Andrea Greselin's message of "Tue, 7 Dec 2021 19:38:15 +0100")

> 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	other threads:[~2021-12-07 19:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-07 18:38 bug#52356: 27.2; Isearch prompt changes unexpectedly with char folding enabled Andrea Greselin
2021-12-07 19:23 ` Juri Linkov [this message]
2021-12-07 20:07   ` Juri Linkov
2021-12-10 10:41     ` Andrea Greselin
2021-12-11 20:04       ` Juri Linkov
2021-12-11 20:30         ` Andrea Greselin
2021-12-12 17:30           ` Juri Linkov
2021-12-17 19:35             ` Andrea Greselin
2021-12-19 17:48               ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=868rwwdxrq.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=52356@debbugs.gnu.org \
    --cc=greselin.andrea@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).