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

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

bug#46904: Non-unique windows produced by window-state-put


From: Juri Linkov
Subject: bug#46904: Non-unique windows produced by window-state-put
Date: Wed, 03 Mar 2021 22:13:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

We have a problem in window-state-put.  For example, in emacs -Q
evaluate this several times:

(progn
  (window-state-put
   (window-state-get
    (frame-root-window (selected-frame))
    'writable)
   (frame-root-window (selected-frame)) 'safe)
  (selected-window))

Every time the selected window remains the same:

  #<window 3 on *scratch*>

But after splitting the window with e.g. 'C-x 2',
evaluating the same every time creates a new window
that it's expected to do even when there is only one window
on the frame.

I don't know how severe are the consequences.  The only side-effect I noticed
that prev-buffers of restored windows are the same on different tabs because
they share the same window.





reply via email to

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