From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69107: 30.0.50; mouse movement commands exit repeat maps Date: Tue, 13 Feb 2024 21:49:50 +0200 Message-ID: <86il2sp2jl.fsf@gnu.org> References: <87zfw45gxd.fsf@strawberrytea.xyz> 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="14466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69107@debbugs.gnu.org To: StrawberryTea Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 13 20:50:57 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 1rZynv-0003XV-TJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Feb 2024 20:50:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZynm-0006g2-3A; Tue, 13 Feb 2024 14:50: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 1rZynl-0006fA-E0 for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2024 14:50:45 -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 1rZynk-0008Bh-JZ for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2024 14:50:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZyo1-0004vk-Ty for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2024 14:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Feb 2024 19:51:01 +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.170785381718850 (code B ref 69107); Tue, 13 Feb 2024 19:51:01 +0000 Original-Received: (at 69107) by debbugs.gnu.org; 13 Feb 2024 19:50:17 +0000 Original-Received: from localhost ([127.0.0.1]:47508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZynJ-0004ty-5w for submit@debbugs.gnu.org; Tue, 13 Feb 2024 14:50:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZynH-0004ta-Oi for 69107@debbugs.gnu.org; Tue, 13 Feb 2024 14:50:16 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZymu-0007ol-LQ; Tue, 13 Feb 2024 14:49:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=gidDFdLSmmGJE7tYVAiIvxg6GKvEkIhP/W5XWEqc9gE=; b=HayynWkOuvWw+qRIGKmz ksKwahPMB+3qU3ereepzdJIv+n7s+o8QXKyJ+3N2USl4AMPTFllDH8cE9g3Rt1ZT+1Nl9ytHLH+IH 6hNdWSqtzAGQGBnypKVp6rZpiW/eY0JxxbQMEeRc6CWBgzkkyrcCBuV6+tyxAWsg+/v/xrvVFa7jd dX93sC2rgyuQwISFM9hFxl+e07FZGw86tSOvYpu4Ht4a+9GtAFmZlw1AJS6FGQyT9utikMN3NE90f mxiCt61yFvPgAIdvzMNS6N+WSDk00R1Ff24ykJrwMSkVv7XfJuAUArnboGQW+bwDOu9gsVUMGUKRF wRtlMjB8thJQmA==; In-Reply-To: <87zfw45gxd.fsf@strawberrytea.xyz> (message from StrawberryTea on Tue, 13 Feb 2024 12:53:18 -0600) 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:279975 Archived-At: > From: StrawberryTea > Date: Tue, 13 Feb 2024 12:53:18 -0600 > > Hi. I'm 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't actually > 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't you? >From the node "Creating Keymaps" in the ELisp Reference manual: Each command in the keymap can be marked as 'repeatable', i.e. usable in ‘repeat-mode’, by putting a ‘repeat-map’ property on it, e.g. (put 'undo 'repeat-map 'undo-repeat-map) where the value of the property is the map to be used by ‘repeat-mode’. There's 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.