GNU bug report logs - #32777
27.0.50; window-buffer gets wrong point

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Wed, 19 Sep 2018 23:26:02 UTC

Severity: normal

Found in version 27.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: Juri Linkov <juri <at> linkov.net>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 32777 <at> debbugs.gnu.org, Federico Tedin <federicotedin <at> gmail.com>
Subject: bug#32777: 27.0.50; window-buffer gets wrong point
Date: Fri, 21 Dec 2018 02:18:43 +0200
> I can see two possible fixes for the underlying problem:
>
> (1) Handle the minibuf_selected_window case specially.  This means
> that, if on the target frame of the unwind form this variable is
> non-nil, we restore the value of point of the buffer shown in
> minibuf_selected_window to that window's point.
>
> (2) Ignore minibuf_selected_window and handle point of the buffer
> shown in the selected window of the frame whose title we consider for
> drawing its title.  That is, record the buffer shown in
> f->selected_window together with its position of point before
> selecting f->selected_window in x_consider_frame_title and restore the
> buffer's position of point in the unwind form.
>
> I think (1) is more conservative because it strictly handles just
> scenarios like Juri's.  But (1) does not handle the case where the
> buffer of W2 is not shown anywhere else when x_consider_frame_title is
> called.  So IMHO (2) should be the correct approach but I have no idea
> what further consequences it could have.

If the underlying problem can't be fixed, then maybe at least fix
this particular case like Federico proposed?




This bug report was last modified 6 years and 197 days ago.

Previous Next


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