GNU bug report logs -
#31695
minibuffer command takes window-point from another frame displaying the same buffer
Previous Next
Reported by: Madhu <enometh <at> meer.net>
Date: Sun, 3 Jun 2018 07:33:03 UTC
Severity: normal
Tags: confirmed, fixed
Merged with 19930
Found in versions 24.3, 25.0.50
Fixed in version 26.2
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Sun, 03 Jun 2018 19:38:23 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: enometh <at> meer.net, 31695 <at> debbugs.gnu.org
>
> > Date: Sun, 03 Jun 2018 14:21:58 +0200
> > From: martin rudalics <rudalics <at> gmx.at>
> >
> > This works correctly here in Emacs 23.4.1 and is broken in 24.5.50.1.
>
> It became broken in Emacs 24.3, according to my testing.
>
> > If Eli doesn't come up with a clue, could someone with a fast machine
> > please try to bisect this.
>
> Right.
>
> If no one comes up with the culprit, I will look into this tomorrow.
I took a look, but as expected, got lost among twisted little
passages, all alike. It looks like the problem might be with the
insane dance we perform when entering recursive edit in the
minibuffer, where we save and restore the window configuration of the
selected frame, and also of the frame that serves as the minibuffer
frame for the selected frame. Another potential culprit is
select_window_1, which added the call to set_point_from_marker at its
end, something that wasn't there in Emacs 24.2.
In any case, the immediate cause of the problem is that when redisplay
is entered the offending window is selected and has its point set at
BOB. So redisplays redraws it accordingly.
Btw, note that if you modify the recipe to do it from frame $a, the
problem doesn't happen. Which seems to imply that this is somehow
related to the order in which redisplay redraws frames. I think.
Let me know if I can help more.
This bug report was last modified 7 years and 40 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.