From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#52356: 27.2; Isearch prompt changes unexpectedly with char folding enabled Date: Tue, 07 Dec 2021 21:23:53 +0200 Organization: LINKOV.NET Message-ID: <868rwwdxrq.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18680"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 52356@debbugs.gnu.org To: Andrea Greselin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 07 20:26:25 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mug6b-0004dw-Lf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Dec 2021 20:26:25 +0100 Original-Received: from localhost ([::1]:60748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mug6a-0005bF-2J for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Dec 2021 14:26:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mug6E-0005b5-9X for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 14:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mug6E-00064a-29 for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 14:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mug6D-0000XH-Kg for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 14:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Dec 2021 19:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52356 X-GNU-PR-Package: emacs Original-Received: via spool by 52356-submit@debbugs.gnu.org id=B52356.16389051432030 (code B ref 52356); Tue, 07 Dec 2021 19:26:01 +0000 Original-Received: (at 52356) by debbugs.gnu.org; 7 Dec 2021 19:25:43 +0000 Original-Received: from localhost ([127.0.0.1]:38671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mug5u-0000Wg-Pm for submit@debbugs.gnu.org; Tue, 07 Dec 2021 14:25:42 -0500 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:46115) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mug5q-0000WQ-J5 for 52356@debbugs.gnu.org; Tue, 07 Dec 2021 14:25:41 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 81027FF804; Tue, 7 Dec 2021 19:25:31 +0000 (UTC) In-Reply-To: (Andrea Greselin's message of "Tue, 7 Dec 2021 19:38:15 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221867 Archived-At: > 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.