GNU bug report logs - #78945
30.1; C-x 4 4 and C-x 5 5 do not work with `dired-mouse-find-file'

Previous Next

Package: emacs;

Reported by: Alcor <alcor <at> tilde.club>

Date: Wed, 2 Jul 2025 19:13:02 UTC

Severity: normal

Found in version 30.1

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78945 <at> debbugs.gnu.org, alcor <at> tilde.club, Juri Linkov <juri <at> linkov.net>
Subject: bug#78945: 30.1; C-x 4 4 and C-x 5 5 do not work with `dired-mouse-find-file'
Date: Fri, 11 Jul 2025 10:18:00 -0400
> I also have a question: if I type "C-x 4 4" before a mouse-bound
> command that shows no buffer, does it mean that the next command
> (which could be arbitrary and unrelated) will be affected by the
> prefix?

Yes.  This is the undesirable consequence of the patch.  For a single
click, it is hard to fix this while still allowing `C-x 4 4` to apply to
double-click commands since after the first click we don't know yet if
another click is coming.

We could try and add some hack with a `pre-command-hook` such that after
a mouse event we disable the `C-x 4 4` if the next event is not among
a specific subset of events (e.g. after a down event we keep the `C-x
4 4` alive but only if the next event is the corresponding up event).

I'm not sure it's worth the trouble: most commands show no buffer, so in
most cases the arbitrary/unrelated next command will not be affected by
the lingering prefix anyway.


        Stefan





This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.