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 22:07:48 +0200	[thread overview]
Message-ID: <86tufkch63.fsf@mail.linkov.net> (raw)
In-Reply-To: <868rwwdxrq.fsf@mail.linkov.net> (Juri Linkov's message of "Tue,  07 Dec 2021 21:23:53 +0200")

>> 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: …’).
>
> Thanks for the bug report.  Some time ago I proposed the following patch:
>
> -		   (if isearch-adjusted "pending " "")

But many functions in isearch.el set isearch-adjusted for a reason.
So maybe better to fix only the reported case with:

diff --git a/lisp/isearch.el b/lisp/isearch.el
index 75a80840d6..065f6b3c2a 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -3571,7 +3571,7 @@ isearch-search-fun
 
 (defun isearch--lax-regexp-function-p ()
   "Non-nil if next regexp-function call should be lax."
-  (or (memq this-command '(isearch-printing-char isearch-del-char))
+  (or (memq this-command '(isearch-del-char))
       isearch-yank-flag))
-- 





  reply	other threads:[~2021-12-07 20:07 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
2021-12-07 20:07   ` Juri Linkov [this message]
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=86tufkch63.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).