From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: StrawberryTea Newsgroups: gmane.emacs.bugs Subject: bug#69107: 30.0.50; mouse movement commands exit repeat maps Date: Wed, 14 Feb 2024 10:38:03 -0600 Message-ID: <87cyszgftb.fsf@strawberrytea.xyz> References: <87zfw45gxd.fsf@strawberrytea.xyz> <86il2sp2jl.fsf@gnu.org> <87y1bo5e5e.fsf@strawberrytea.xyz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21327"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.8; emacs 30.0.50 Cc: 69107@debbugs.gnu.org, Eli Zaretskii To: StrawberryTea Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 14 17:41:03 2024 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 1raIJd-0005Ay-P0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Feb 2024 17:41:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raIJS-0002Em-Bf; Wed, 14 Feb 2024 11:40:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raIJQ-0002EV-PS for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 11:40:44 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raIJQ-0003nN-93 for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 11:40:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raIJi-00053u-Bl for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 11:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: StrawberryTea Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Feb 2024 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69107 X-GNU-PR-Package: emacs Original-Received: via spool by 69107-submit@debbugs.gnu.org id=B69107.170792884519428 (code B ref 69107); Wed, 14 Feb 2024 16:41:02 +0000 Original-Received: (at 69107) by debbugs.gnu.org; 14 Feb 2024 16:40:45 +0000 Original-Received: from localhost ([127.0.0.1]:52919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raIJQ-00053I-Tt for submit@debbugs.gnu.org; Wed, 14 Feb 2024 11:40:45 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:44787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raIJO-000534-Gp for 69107@debbugs.gnu.org; Wed, 14 Feb 2024 11:40:43 -0500 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id B8C065C00FF; Wed, 14 Feb 2024 11:40:18 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 14 Feb 2024 11:40:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= strawberrytea.xyz; h=cc:cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1707928818; x=1708015218; bh=GMQASxCzMy256eufYkE9vHl0lK34HmgQwKS0Bns0CYw=; b= ZFXVmC1977rPabc/ZfkuDBb671EzG77R5gY8ut3clRan2SaHQWDzNgVq2kE0Qgs7 I/CiOkMcMr/34Qom37M9RfaZTjGeKPguCR/O0HPqwmPSqT0CN7R+iVSfHMD6x/xB KXo5mdZ9AgV/x2BtBX2yosudUByJ7+SiJsPrSHMmj0pkvOF0blfeshBiZYw7GenV tIsa2mQJRsfkDBWN1WpFrKG/s0e+BWSKCaoVdYrBiMOvqWkkFTmNbsuecesZCPhP 9Y5XEkn20e68IxyF7FQz/6W5BC5lnkg8hFa1w0u+lM4xoX1swviqnqnVa3KQPj2w hL8PH2w8tdQarlTsOuwnKA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1707928818; x=1708015218; bh=GMQASxCzMy256eufYkE9vHl0lK34 HmgQwKS0Bns0CYw=; b=arNxEdhigly5V/htW6EhEPuaFaziSJJero7fpcWsoOuk S5gHi2zZNIseqrFtuXRfayOk2tLjySG/gCejy3/kze37jlFmVxdTLvtDveZctgxI FbdGAPLBsCkm+kV34i2BRO1901r8uoTF4CW5iuxVEMnybMXJPQC47h5i0Ho62oOz w2IuqUMhDGZUXlykLFn9Rd/qzB5d+k4lTcAo4JRUnLwAFRKCyi5aNzD6hd1KKYST 3ZXUsXGGhFIA6M6gg+PDvvbdgbtNL0HQWW0tFijyI5QsIbCO9qiSdthM3HmLK3qt srK6HhPryiB8lE7dV2sDiCObnvVDglzB85DHEjyi8w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejgdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnegoteeftdduqddtudculdduhedmnecujfgurhephffvvefu ffhffggjkfggtgesmhdtreertderjeenucfhrhhomhepufhtrhgrfigsvghrrhihvfgvrg cuoehlohhokhesshhtrhgrfigsvghrrhihthgvrgdrgiihiieqnecuggftrfgrthhtvghr nhephfelleffvdeijeetgfdtvdfghfegfedvtefgjeefveejteegudekveelvdeluefhne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhhoohhk sehsthhrrgifsggvrhhrhihtvggrrdighiii X-ME-Proxy: Feedback-ID: id85149b6:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Feb 2024 11:40:17 -0500 (EST) In-reply-to: <87y1bo5e5e.fsf@strawberrytea.xyz> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280018 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Okay, so as a follow-up, the previous solution did not work. I had to remov= e the event altogether with (setq-hook! =E2=80=99post-command-hook track-mouse nil) Now they don=E2=80=99t trigger randomly for me anymore. StrawberryTea writes: > Thanks, I just finally realized that I can map mouse movement to nil. > > (after! lsp-ui-doc > (map! :map lsp-ui-doc-mode-map > =E2=80=9C=E2=80=9D nil)) > > I never use that feature so this worked fine for me rather than digging i= nto why > the events were being generated. > > Thank you, > StrawberryTea > Eli Zaretskii writes: > >>> From: StrawberryTea >>> Date: Tue, 13 Feb 2024 12:53:18 -0600 >>> >>> Hi. I=E2=80=99m using LSP mode which defines a command= . I have >>> noticed that in some special situation involving switching workspaces in >>> Doom Emacs while using EXWM (Emacs X Window Manager), the >>> command is triggered after switching workspaces which >>> triggers the repeat map to exit even though the mouse wasn=E2=80=99t ac= tually >>> visibly moved. I think it might be reasonable to exclude mouse movement >>> commands from exiting the repeat map by default or as an option. >> >> You can do that yourself for commands you want to repeat, can=E2=80=99t = you? >> From the node =E2=80=9CCreating Keymaps=E2=80=9D in the ELisp Reference = manual: >> >> Each command in the keymap can be marked as =E2=80=99repeatable=E2= =80=99, i.e. >> usable in =E2=80=98repeat-mode=E2=80=99, by putting a =E2=80=98repe= at-map=E2=80=99 property on it, >> e.g. >> >> (put =E2=80=99undo =E2=80=99repeat-map =E2=80=99undo-repeat-ma= p) >> >> where the value of the property is the map to be used by >> =E2=80=98repeat-mode=E2=80=99. >> >> There=E2=80=99s no way the default configuration can ever anticipate all= of >> the known and unknown commands that some users could want to be >> repeatable. But each user can add commands to the set of repeatable >> ones by using the above technique. --=-=-=--