From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Greselin Newsgroups: gmane.emacs.bugs Subject: bug#52356: 27.2; Isearch prompt changes unexpectedly with char folding enabled Date: Tue, 7 Dec 2021 19:38:15 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000455be305d292af07" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13043"; mail-complaints-to="usenet@ciao.gmane.io" To: 52356@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 07 19:51:29 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 1mufYn-0003AV-Gd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Dec 2021 19:51:29 +0100 Original-Received: from localhost ([::1]:47664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mufYm-0003EY-4j for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Dec 2021 13:51:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mufUV-0000hV-0W for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 13:47:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mufUU-0002S0-JC for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 13:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mufUU-0007vl-GV for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 13:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Greselin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Dec 2021 18:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52356 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163890277530425 (code B ref -1); Tue, 07 Dec 2021 18:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Dec 2021 18:46:15 +0000 Original-Received: from localhost ([127.0.0.1]:38630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mufTi-0007ue-Uq for submit@debbugs.gnu.org; Tue, 07 Dec 2021 13:46:15 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mufTh-0007uW-El for submit@debbugs.gnu.org; Tue, 07 Dec 2021 13:46:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mufTh-00009x-5q for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 13:46:13 -0500 Original-Received: from [2607:f8b0:4864:20::1030] (port=54973 helo=mail-pj1-x1030.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mufTe-0001r0-GS for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 13:46:12 -0500 Original-Received: by mail-pj1-x1030.google.com with SMTP id np3so139420pjb.4 for ; Tue, 07 Dec 2021 10:46:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=6CZQWteMJIEmTF0tCfIV2R1xkj5r5WBaSMbiVrPevOw=; b=mNEKuXECok+VEQdaQdNys/A35zzmyIgtyi2xd8hH+HzczcjEHWkR0u3bkQRjoBXBj/ 2aklRyKtJYQbNBybvFquYs/STCKD/bmaieEgcIMVd1saBv+E44vuNmza0P48WIGGyiPZ QWFZeOFLG82QPkbBr589dqoxwV84Iqojs6FOJrvL8pXA4hP5BGOjCm8GKXHo4yFrxmMZ kCqIlElXJWrDbwKI5luErdjnfaj2sg6cWtSlx9FM24/spdZP3jA9YBpd7eOMrPxXDs6O tog38MhVm3Z7JkzLnIlEJrs9AANT78dgobsaAJ4uhiybr1iLUv2BSWSllj1ntFYOeIGV OySg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=6CZQWteMJIEmTF0tCfIV2R1xkj5r5WBaSMbiVrPevOw=; b=n1Bi7XJS2zmgfgsARJ5pTP6d8/8nqMNKw1I3VEy3tEm8TNCPKha1NoOzrMaGLFY6Hi wxSr/wLLICqUi1ksFX321RGE1Bx6cktx0jNAODFPLSQBE5u9Ly4fqaf8czDrVGrZYfS+ v6ApijaUPs0QsFsowuSSoDwbHTI1NXuF2e2KoOISYW0OrfkEiziCHfgq8J7h5ykUgpob vcq7HUv+aXUiTYnMvczqM0cQr/v61sGC38yPCS8sC9R9riSbaj57C7/2uW7lEndySrTj e70vHnCNlqjYzfccRwCbCiaVYu5Q0zz9VbGvnUCY+g2Dcs67FNDvug+/NzhgJUMYBXAD oe8w== X-Gm-Message-State: AOAM5317paCMz9Zdh9ZRYfSIub1/yYjxY+uueGNcRtwPa9hYh5tK7n6M wS7P3dw7FcHTcJbXQwnrCK2dEqkO13rYvctDqZSP/1tAvAA= X-Google-Smtp-Source: ABdhPJzhLWJJhLJ3N+uZQrAsGsGwuI2uRMIXGFWwl0gSuuLgP+ZXwXzOcZgvW4YFciqNH9mOIacSNOKZaayEpx9qepM= X-Received: by 2002:a0c:8104:: with SMTP id 4mr1135741qvc.118.1638902331168; Tue, 07 Dec 2021 10:38:51 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1030 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=greselin.andrea@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:221863 Archived-At: --000000000000455be305d292af07 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, 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 =E2=80=98lazy-count-*-format=E2=80=99 and =E2=80=98search-default= -mode=E2=80=99 (if they all have their default value the prompt is =E2=80=98Pending char-fold I-search:= =E2=80=A6=E2=80=99; with the settings described below it=E2=80=99s just =E2=80=98I-search: =E2= =80=A6=E2=80=99, and it changes briefly to =E2=80=98Pending I-search: =E2=80=A6=E2=80=99). Steps to reproduce: ------------------- Launch =E2=80=98Emacs -Q=E2=80=99, 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. All the best, Andrea In GNU Emacs 27.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-08-07 built on buildvm-x86-29.iad2.fedoraproject.org Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Fedora 34 (Workstation Edition) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [5 times] Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -= O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER GMP Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 47051 7677) (symbols 48 6007 1) (strings 32 15798 2213) (string-bytes 1 518549) (vectors 16 11404) (vector-slots 8 137751 8790) (floats 8 20 45) (intervals 56 271 0) (buffers 1000 12)) --000000000000455be305d292af07 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
when I use Isearch with char folding enabled, th= e prompt changes very
briefly at every character I type in. The actual p= rompt depends on the
values of =E2=80=98lazy-count-*-format=E2=80=99 and= =E2=80=98search-default-mode=E2=80=99 (if they all
have their default v= alue the prompt is =E2=80=98Pending char-fold I-search:=E2=80=A6=E2=80=99;<= br>with the settings described below it=E2=80=99s just =E2=80=98I-search: = =E2=80=A6=E2=80=99, and it
changes briefly to =E2=80=98Pending I-search:= =E2=80=A6=E2=80=99).

Steps to reproduce:
-------------------
=
Launch =E2=80=98Emacs -Q=E2=80=99, evaluate these forms

=C2=A0 = =C2=A0 (setq isearch-lazy-count t)
=C2=A0 =C2=A0 (setq lazy-count-prefix= -format nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 lazy-count-suffix-format = " [%s/%s]")
=C2=A0 =C2=A0 (setq-local search-default-mode '= ;char-fold-to-regexp)
=C2=A0 =C2=A0 (electric-quote-local-mode)

a= nd Isearch for something.

All the best,
Andrea



In = GNU Emacs 27.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.30, cai= ro version 1.17.4)
=C2=A0of 2021-08-07 built on buildvm-x86-29.iad2.fedoraproject.org<= br>Windowing system distributor 'The X.Org Foundation', version 11.= 0.12101003
System Description: Fedora 34 (Workstation Edition)

Re= cent messages:
For information about GNU Emacs and the GNU system, type = C-h C-a.
Making completion list... [5 times]

Configured using:=C2=A0'configure --build=3Dx86_64-redhat-linux-gnu
=C2=A0--host=3Dx= 86_64-redhat-linux-gnu --program-prefix=3D
=C2=A0--disable-dependency-tr= acking --prefix=3D/usr --exec-prefix=3D/usr
=C2=A0--bindir=3D/usr/bin --= sbindir=3D/usr/sbin --sysconfdir=3D/etc
=C2=A0--datadir=3D/usr/share --i= ncludedir=3D/usr/include --libdir=3D/usr/lib64
=C2=A0--libexecdir=3D/usr= /libexec --localstatedir=3D/var
=C2=A0--sharedstatedir=3D/var/lib --mand= ir=3D/usr/share/man
=C2=A0--infodir=3D/usr/share/info --with-dbus --with= -gif --with-jpeg --with-png
=C2=A0--with-rsvg --with-tiff --with-xft --w= ith-xpm --with-x-toolkit=3Dgtk3
=C2=A0--with-gpm=3Dno --with-xwidgets --= with-modules --with-harfbuzz
=C2=A0--with-cairo --with-json build_alias= =3Dx86_64-redhat-linux-gnu
=C2=A0host_alias=3Dx86_64-redhat-linux-gnu CC= =3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -O2
=C2=A0-flto=3Dauto -ffat-lto-o= bjects -fexceptions -g -grecord-gcc-switches
=C2=A0-pipe -Wall -Werror= =3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2
=C2=A0-Wp,-D_GLIBCXX_ASSERT= IONS
=C2=A0-specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-prot= ector-strong
=C2=A0-specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 = -mtune=3Dgeneric
=C2=A0-fasynchronous-unwind-tables -fstack-clash-protec= tion -fcf-protection'
=C2=A0LDFLAGS=3D-Wl,-z,relro
=C2=A0PKG_CONF= IG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig'

Configured= features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NO= TIFY
INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LI= BOTF
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS=
LIBSYSTEMD JSON PDUMPER GMP

Important settings:
=C2=A0 value = of $LANG: en_GB.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 = locale-coding-system: utf-8-unix

Major mode: Lisp Interaction
Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mo= de: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 m= ouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2= =A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composi= tion-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-m= ode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t
Load-path shadows:
None found.

Features:
(shadow sort mail-e= xtr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mm= l easymenu mml-sec password-cache epa derived epg
epg-config gnus-util r= mail rmail-loaddefs text-property-search time-date
subr-x seq byte-opt g= v bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse r= fc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc20= 47 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
tooltip eldoc electr= ic uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/x-win x-win = term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabul= ated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode re= gister page tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar= mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors fram= e minibuffer cl-generic cham georgian
utf-8-lang misc-lang vietnamese ti= betan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek ro= manian slovak czech european
ethiopic indian cyrillic chinese composite = charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev= obarray
cl-preloaded nadvice loaddefs button faces cus-face macroexp fi= les
text-properties overlay sha1 md5 base64 format env code-pages mulecustom widget hashtable-print-readable backquote threads dbusbind
inot= ify dynamic-setting system-font-setting font-render-setting
xwidget-inte= rnal cairo move-toolbar gtk x-toolkit x multi-tty
make-network-process e= macs)

Memory information:
((conses 16 47051 7677)
=C2=A0(symbo= ls 48 6007 1)
=C2=A0(strings 32 15798 2213)
=C2=A0(string-bytes 1 518= 549)
=C2=A0(vectors 16 11404)
=C2=A0(vector-slots 8 137751 8790)
= =C2=A0(floats 8 20 45)
=C2=A0(intervals 56 271 0)
=C2=A0(buffers 1000= 12))
--000000000000455be305d292af07--