From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#52941: 29.0.50; pgtk: characters typed into minibuffers inserted multiple times Date: Tue, 11 Jan 2022 09:44:18 +0000 Message-ID: References: <87k0fj9hh2.fsf@melete.silentflame.com> <87ilurnnby.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b532fc05d54b4c7e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20187"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Yuuki Harano , 52941@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 11 10:45:53 2022 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 1n7Dix-000530-Gt for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 10:45:51 +0100 Original-Received: from localhost ([::1]:46992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7Diw-0003u0-ET for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 04:45:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7DiB-0003sy-6T for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 04:45:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7DiA-0005XE-TP for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 04:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7DiA-0003dz-Kg for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 04:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jan 2022 09:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52941 X-GNU-PR-Package: emacs Original-Received: via spool by 52941-submit@debbugs.gnu.org id=B52941.164189427813954 (code B ref 52941); Tue, 11 Jan 2022 09:45:02 +0000 Original-Received: (at 52941) by debbugs.gnu.org; 11 Jan 2022 09:44:38 +0000 Original-Received: from localhost ([127.0.0.1]:54160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7Dhm-0003d0-4X for submit@debbugs.gnu.org; Tue, 11 Jan 2022 04:44:38 -0500 Original-Received: from mail-ot1-f50.google.com ([209.85.210.50]:36654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7Dhk-0003cf-8K for 52941@debbugs.gnu.org; Tue, 11 Jan 2022 04:44:37 -0500 Original-Received: by mail-ot1-f50.google.com with SMTP id s21-20020a05683004d500b0058f585672efso17977989otd.3 for <52941@debbugs.gnu.org>; Tue, 11 Jan 2022 01:44:36 -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 :cc; bh=TkBMlERyQzaNuU/lvhB3vob5dm+DukD5X831iLPhaGY=; b=e6USto4C0+zz+DTm1YM3whe+gpgi/0HgesdvEIavKTQcl7CwM+K+m6fHF5qfYNs640 6DazOzqazmSWoczftqXjPRiXzjdYOKILKazPhuKzyWyFMNI4HfR5h/lcDafw12S4Spky KlzZpx+GNDqNc/CcAZxS3XbYtqkAHjOxnWwPhNOjovEikN2ySmFW9OMAgKn7gIFZ5YmQ RPGInFVpyI8AMGEr5NtO28jSzPdtnNf2s/0ky8NnH1J75Qs3Q+BC6azpZv09uLTbrElC QxHfPhazVoSHOYmqkIxngu0Ihqn9jFHLUDpp9+yMDsuL93Rz9uyxJFkSj1Er/bQSi5Yz w9wQ== 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:cc; bh=TkBMlERyQzaNuU/lvhB3vob5dm+DukD5X831iLPhaGY=; b=2Tmwvd5wnJ2/Mz4dMOGewyuJVCoyEpt+9/4K/YWCrTa3k5KP0Nmvmu7QM2GHdEeVDS yUfqYfyDUcsDFXjh14QVi3x/FvYuO+Alds8Z5id2z97YZvu0w2TLxwz+JqaUoAWTX9eX QvPZWmPOtf71QR4DF9ItYWXenx7T8z01Cnh4dOI2pcD6Qh1JWlq64tIqzZafl/Su3Gyw /5eTdI8G+hJ4029Wg4SqNLwDlFlQm6P0KtziM9oppwOU39zWenB/STVwAAtZQYBRVtdf 5Mo3y2x9VITQP/seQjqzbROoC3G23tfArqEFD04i1IOISLKV5cr19/neX7jF0Fz79fUn JIBg== X-Gm-Message-State: AOAM530UrVVmCGLYt0MfxCUuQfT1aorCyFarkn9mF1vFyAuFuY7aa8jn EqMZI+qw44gEdhgNHTfwzr5zAZmHNw2mcsZkxy8= X-Google-Smtp-Source: ABdhPJyOIoUltpdH1Qmr5IhB/x5lHvtYFLNXj+EiDrmatOlhpFlic9l3mvpzK515at8TybPStBURuiNzICmM6UgbQIE= X-Received: by 2002:a05:6830:314b:: with SMTP id c11mr2813917ots.340.1641894269759; Tue, 11 Jan 2022 01:44:29 -0800 (PST) In-Reply-To: <87ilurnnby.fsf@melete.silentflame.com> 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:223931 Archived-At: --000000000000b532fc05d54b4c7e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, Sean, that's very good investigation and I'll admit induces a "phew" on my part ;-) And yes, I'm pretty sure this will happen with icomplete-mode as well. Jo=C3=A3o On Tue, Jan 11, 2022 at 12:11 AM Sean Whitton wrote: > Hello, > > On Sat 01 Jan 2022 at 04:14PM -07, Sean Whitton wrote: > > > If the system is under heavy load, and/or Emacs is compiled with debug > > options which substantially slow it down, and fido-mode is enabled, the= n > > typing quickly into the minibuffer can result in typed characters > > inserted more than once. Here is how I can reproduce it: > > > > emacs -Q > > M-x fido-mode RET > > C-h v > > > > and quickly try to type "font-weight-table". This is what I get in the > > minibuffer: > > > > font-weweweweweweweight-tatabe > > > > Although I made at least one typo (I didn't type the 'l'), I definitely > > did not type 'we' and 'ta' that many times. > > > > I haven't been able to reproduce with icomplete-mode, but as the proble= m > > does not occur consistently, I am not confident it does not occur with > > icomplete-mode. > > It occurred to me to try --with-x-toolkit=3Dlucid instead of --with-pgtk. > Sure enough, I cannot reproduce the bug. So I think the problem is > something about how pgtk receives and processes keyboard input. > > In summary: I can reproduce with pgtk running as a native Wayland > application, and I cannot reproduce with the Lucid build running under > Xwayland. In both cases, swaywm. I have retitled the bug. > > Thanks. > > -- > Sean Whitton > --=20 Jo=C3=A3o T=C3=A1vora --000000000000b532fc05d54b4c7e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, Sean, that's very good investigation and = I'll admit induces
a "phew" on my part ;-)

And yes, I'm pretty sure this will happen with icomple= te-mode as
well.

Jo=C3=A3o
<= /div>

On Tue, Jan 11, 2022 at 12:11 AM Sean Whitton <spwhitton@spwhitton.name> wrote:
Hello,

On Sat 01 Jan 2022 at 04:14PM -07, Sean Whitton wrote:

> If the system is under heavy load, and/or Emacs is compiled with debug=
> options which substantially slow it down, and fido-mode is enabled, th= en
> typing quickly into the minibuffer can result in typed characters
> inserted more than once.=C2=A0 Here is how I can reproduce it:
>
>=C2=A0 =C2=A0 =C2=A0emacs -Q
>=C2=A0 =C2=A0 =C2=A0M-x fido-mode RET
>=C2=A0 =C2=A0 =C2=A0C-h v
>
> and quickly try to type "font-weight-table".=C2=A0 This is w= hat I get in the
> minibuffer:
>
>=C2=A0 =C2=A0 =C2=A0font-weweweweweweweight-tatabe
>
> Although I made at least one typo (I didn't type the 'l'),= I definitely
> did not type 'we' and 'ta' that many times.
>
> I haven't been able to reproduce with icomplete-mode, but as the p= roblem
> does not occur consistently, I am not confident it does not occur with=
> icomplete-mode.

It occurred to me to try --with-x-toolkit=3Dlucid instead of --with-pgtk. Sure enough, I cannot reproduce the bug.=C2=A0 So I think the problem is something about how pgtk receives and processes keyboard input.

In summary: I can reproduce with pgtk running as a native Wayland
application, and I cannot reproduce with the Lucid build running under
Xwayland.=C2=A0 In both cases, swaywm.=C2=A0 I have retitled the bug.

Thanks.

--
Sean Whitton


--
Jo=C3=A3o T=C3=A1vora
--000000000000b532fc05d54b4c7e--