help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windows saved in variables, and `save-selected-window'


From: Michael Heerdegen
Subject: Re: windows saved in variables, and `save-selected-window'
Date: Mon, 15 Jun 2020 17:12:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> During the set up, the two variables *usually* end up pointing to live
> windows (ie, #<window 607 on sdfsdgsgdgsg>). Sometimes one of the
> variables ends up pointing at a "dead" window: #<window 607>. Either
> way, after the use of `save-selected-window' below, one of the windows
> is always dead.
>
> Obviously I'm just doing this wrong altogether -- can anyone tell me the
> correct approach?

What does one need to reproduce this?  I evaluated your code and enabled
`note-a-mode', and afterwards

(mapcar #'window-live-p (list window-one window-two))

==> (t t)

Also calling (update-other-window) does not change the result.


Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]