GNU bug report logs -
#67993
Selecting buffer automatically
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sat, 23 Dec 2023 17:56:01 UTC
Severity: wishlist
Tags: patch
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #18 received at 67993 <at> debbugs.gnu.org (full text, mbox):
>> Martin, do you agree with this change?
>> If ok, then I could update the documentation as well.
>
> The following looks like a glitch:
>
>>> + (when (window-live-p (old-selected-window))
>>> + (select-window (old-selected-window))))
>
> is supposed to select the window selected the last time we ran window
> change functions. Now consider the following scenario:
>
> - Redisplay runs the window change functions and sets the old selected
> window.
>
> - An application changes the selected window.
>
> - 'display-buffer' gets called with a (select-window . nil) entry. The
> call will select the window selected at last redisplay.
>
> So I think that calling 'old-selected-window' here is not TRT.
Could you suggest an alternative to 'old-selected-window'
to select the original window that was selected before
the current command?
This bug report was last modified 1 year and 124 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.