[Top][All Lists]

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

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

From: Eric Abrahamsen
Subject: Re: windows saved in variables, and `save-selected-window'
Date: Mon, 15 Jun 2020 11:18:05 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Michael Heerdegen <> writes:

> Eric Abrahamsen <> 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.

Well damn, after a restart of Emacs I'm no longer seeing the weird
behavior. I can't imagine what I did to get it into that state, but
you're right, it's behaving as expected.

Sorry for the noise, and thanks for testing!


reply via email to

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