From: Alan Mackenzie <acm@muc.de>
To: Po Lu <luangruo@yahoo.com>
Cc: acm@muc.de, Eli Zaretskii <eliz@gnu.org>,
jim@rees.org, 65116@debbugs.gnu.org
Subject: bug#65116: 29.1; query-replace-read-args fails reading second arg in detached minibuf
Date: Sun, 14 Jan 2024 14:14:37 +0000 [thread overview]
Message-ID: <ZaPsTaG7uJXf7Tno@ACM> (raw)
In-Reply-To: <87o7do21zv.fsf@yahoo.com>
Hello, Po.
On Sun, Jan 14, 2024 at 08:27:16 +0800, Po Lu wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
> >> Date: Fri, 12 Jan 2024 21:44:11 +0000
> >> Cc: 65116@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>, acm@muc.de
> >> From: Alan Mackenzie <acm@muc.de>
> >> Hello, Jim.
> >> On Fri, Jan 12, 2024 at 12:57:42 -0600, Jim Rees wrote:
> >> > Well that's a relief. I do have an unusual setup with detached minibuf and
> >> > focus follows mouse. There has been a lot of churn in replace.el and frame.c
> >> > lately and I keep hoping the bug will go away on its own. I don't really
> >> > understand all the focus changes in the code but I do see why they are
> >> > necessary.
> >> > I have a workaround, I have bound this to a key and use it to re-focus to
> >> > the minibuf so I can enter the 'to' text:
> >> > (select-frame-set-input-focus (window-frame (minibuffer-window)))
> >> > But that requires manual intervention so for now I'm sticking with 28.1.
> >> I've been playing with the setup for an hour or two. It seems that
> >> performing some action in the minibuffer (say, M-x auto-revert-mode, but
> >> anything will do) causes M-% to work properly. But then, the moment the
> >> mouse leaves the active frame or window (I'm not sure which), M-% no
> >> longer works properly, until the next minibuffer action.
> >> I know this isn't much help to you, but it should be a help to us,
> >> tracking down what's going wrong.
> > If this is WM-specific, maybe Po Lu (CC'ed) could help us understand
> > what happens here? Perhaps some message we expect from X is not being
> > received in this scenario?
> This is GTK3-specific. I've installed a fix on master, please test.
Thanks for this. Thanks also for the detailed comment explaining the
fix. I now understand where and why the redirected focus carefully
installed on the main frame was being removed.
I've tested it, with Jim's test case, and it works for me.
--
Alan Mackenzie (Nuremberg, Germany).
prev parent reply other threads:[~2024-01-14 14:14 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-06 17:18 bug#65116: 29.1; query-replace-read-args fails reading second arg in detached minibuf Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-07 15:57 ` Eli Zaretskii
2024-01-12 6:26 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-12 12:00 ` Eli Zaretskii
2024-01-12 14:38 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-12 15:25 ` Alan Mackenzie
2024-01-12 15:37 ` Alan Mackenzie
2024-01-12 15:59 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-12 17:28 ` Alan Mackenzie
2024-01-12 18:57 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-12 21:44 ` Alan Mackenzie
2024-01-13 6:34 ` Eli Zaretskii
2024-01-13 9:23 ` Alan Mackenzie
2024-01-13 13:47 ` Alan Mackenzie
2024-01-13 17:00 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-13 17:47 ` Alan Mackenzie
2024-01-13 19:15 ` Drew Adams
2024-01-13 20:18 ` Alan Mackenzie
2024-01-13 21:19 ` Drew Adams
2024-01-13 21:35 ` Alan Mackenzie
2024-01-13 20:06 ` Alan Mackenzie
2024-01-13 23:53 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-14 6:21 ` Eli Zaretskii
2024-01-14 14:33 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-14 15:03 ` Alan Mackenzie
2024-01-14 16:59 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-14 17:17 ` Eli Zaretskii
2024-01-14 17:33 ` Eli Zaretskii
2024-01-14 19:10 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-14 19:42 ` Eli Zaretskii
2024-01-15 0:27 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-15 1:29 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-15 3:38 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-15 4:52 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-15 6:31 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-15 16:47 ` Jim Rees via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-14 0:27 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-14 14:14 ` Alan Mackenzie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZaPsTaG7uJXf7Tno@ACM \
--to=acm@muc.de \
--cc=65116@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=jim@rees.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).