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: Sat, 11 Dec 2021 21:30:21 +0100 Message-ID: References: <868rwwdxrq.fsf@mail.linkov.net> <86tufkch63.fsf@mail.linkov.net> <86tufelxg8.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008db65005d2e4b7c3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39384"; 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 Sat Dec 11 21:32:11 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 1mw92Q-000A3P-T2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Dec 2021 21:32:10 +0100 Original-Received: from localhost ([::1]:55780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mw92O-0008Sg-Ql for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Dec 2021 15:32:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mw92I-0008SI-6j for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 15:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mw92H-0003Wm-UI for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 15:32:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mw92H-00013A-N0 for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 15:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Greselin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Dec 2021 20:32: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.16392546663973 (code B ref 52356); Sat, 11 Dec 2021 20:32:01 +0000 Original-Received: (at 52356) by debbugs.gnu.org; 11 Dec 2021 20:31:06 +0000 Original-Received: from localhost ([127.0.0.1]:50081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mw91O-000121-D9 for submit@debbugs.gnu.org; Sat, 11 Dec 2021 15:31:06 -0500 Original-Received: from mail-qt1-f178.google.com ([209.85.160.178]:46047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mw91L-00011V-32 for 52356@debbugs.gnu.org; Sat, 11 Dec 2021 15:31:04 -0500 Original-Received: by mail-qt1-f178.google.com with SMTP id p19so11649949qtw.12 for <52356@debbugs.gnu.org>; Sat, 11 Dec 2021 12:31:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=kEJlZ20u6l3mS/vKvJfwgO67TLihjv5A30SsZIsEJrE=; b=UCvUbNfE8N6p4T/k/duLxH0XJdxFIlQy6FhOt2Z0RbGL9OCVF6iOfNuu/FrEE0sg4y GnpDSvlh3w5fe6k3PDQMKlsLNWIFmdnX9xz4FfH8L41n0K5ELyTVsTi7ZzRilMX6ZJwh Xbn4RwdxKMRNWDXAecWv0hW/Y97uBy9/0BKKpNi8u7cGgXUXvJ5MwhwClEY1CECgiKQ2 zXXLy3oURkqtj7b6Lx8rsyRHO+vfu5qr5ddnucjO427R72LuGkouC0H4ePqFazG47eey WC/SaB3mOtcyxEyl7zQSxinrrcemC8K0EexwHS5C0U8kQiJUDnS5DHjx/uRaONBtDi4q TtqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=kEJlZ20u6l3mS/vKvJfwgO67TLihjv5A30SsZIsEJrE=; b=X/tqFNH7MhIPW/yVvFBo6HrGQOfN+oeTwtsbQeDhk33XhGjFk01o74X5UJV3dzaKVY /qFMp8xWyoFSkdV8Eyuj0hNFz1dM5VOGPaphVpa5DJf5do2lSBhGklTj1HuItMXvLthO 92pIrMOTGoCSr6QIrG5nQvRF/RU9etW+GVogb/izgiPhUJ37hlqm2iGrwpIl6UtrmJmz NTLG6EpIpqIxiLFUpuN1dm7tq2dE5M/qZixcuUlt/5AMQtOPY3dyOFZcO26S4GsaiWFG p4w6D7hBqd5b26AiC+swq+N8mmB95MyhZX2QdohFqzQe6iqGkhskeHkyoc24GlB53sH1 uj7Q== X-Gm-Message-State: AOAM530kjYYL6rr87kh58VvBbD/+9LwWDVojflB+p8yIO0AhvgX3X+UD zDy14sUaIFF/Qp90InRHD4ig8iQlet/PmyRiuXXO6F0h6j0= X-Google-Smtp-Source: ABdhPJxyCouuBmWQ5oEX6kAXOxSC5Z8pY2LmvCzO5m0fGS8lpvfnWVSZEwUKElHSWv5yhEqqBG1tlNO7HWvjZX+JRcs= X-Received: by 2002:a05:622a:1350:: with SMTP id w16mr35232671qtk.394.1639254657446; Sat, 11 Dec 2021 12:30:57 -0800 (PST) In-Reply-To: <86tufelxg8.fsf@mail.linkov.net> 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:222147 Archived-At: --0000000000008db65005d2e4b7c3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Do you think this problem exists only when isearch-lazy-count is customised to t? No, I can just launch =E2=80=98emacs -Q=E2=80=99, go to the beginning of th= e buffer and start searching for something with =E2=80=98C-s M-s '=E2=80=99 to get t= he flickering prompt. What the settings in the first message do is change the prompt: it is =E2=80=98Pending char-fold I-search=E2=80=99 without them= (after doing =E2=80=98C-s M-s '=E2=80=99) and just =E2=80=98I-search:=E2=80=99 wit= h them (where just =E2=80=98C-s=E2=80=99 suffices for starting a char-folded search). Your patch works both with and without my settings. I don=E2=80=99t know if there are cases where it suppresses useful messages. On Sat, 11 Dec 2021 at 21:05, Juri Linkov wrote: > Hello Andrea, > > > your patch works for me. If you=E2=80=99re going to submit it for mergi= ng > > you might consider replacing the old line with > > > > (or (eq this-command 'isearch-del-char) > > > > just to avoid using =E2=80=98memq=E2=80=99 for comparing against a sing= le item. > > I'm still not sure about this change. Do you think this problem > exists only when isearch-lazy-count is customized to t? > Do you see the same problem with the "pending" message > while using the default value of isearch-lazy-count nil? > --0000000000008db65005d2e4b7c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Do you think this problem exists only when isearch-la= zy-count is
customised to t?

No, I can just launch =E2=80=98emacs= -Q=E2=80=99, go to the beginning of the buffer
and start searching for = something with =E2=80=98C-s M-s '=E2=80=99 to get the
flickering pro= mpt. What the settings in the first message do is change
the prompt: it = is =E2=80=98Pending char-fold I-search=E2=80=99 without them (after
doin= g =E2=80=98C-s M-s '=E2=80=99) and just =E2=80=98I-search:=E2=80=99 wit= h them (where just =E2=80=98C-s=E2=80=99
suffices for starting a char-fo= lded search).

Your patch works both with and without my settings. I = don=E2=80=99t know if
there are cases where it suppresses useful message= s.

On Sat, 11 Dec 2021 at 21:05, Juri Linkov <juri@linkov.net> wrote:
Hello Andrea,

> your patch works for me. If you=E2=80=99re going to submit it for merg= ing
> you might consider replacing the old line with
>
>=C2=A0 =C2=A0 =C2=A0(or (eq this-command 'isearch-del-char)
>
> just to avoid using =E2=80=98memq=E2=80=99 for comparing against a sin= gle item.

I'm still not sure about this change.=C2=A0 Do you think this problem exists only when isearch-lazy-count is customized to t?
Do you see the same problem with the "pending" message
while using the default value of isearch-lazy-count nil?
--0000000000008db65005d2e4b7c3--