unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46904: Non-unique windows produced by window-state-put
@ 2021-03-03 20:13 Juri Linkov
  2021-03-04  8:35 ` martin rudalics
  0 siblings, 1 reply; 15+ messages in thread
From: Juri Linkov @ 2021-03-03 20:13 UTC (permalink / raw)
  To: 46904

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.





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-04-28 20:25 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 20:13 bug#46904: Non-unique windows produced by window-state-put Juri Linkov
2021-03-04  8:35 ` martin rudalics
2021-03-04  9:39   ` Juri Linkov
2021-03-04 10:34     ` martin rudalics
2021-03-04 17:57       ` Juri Linkov
2021-03-04 20:31         ` Juri Linkov
2021-03-05  9:10           ` martin rudalics
2021-03-07 18:43             ` Juri Linkov
2021-03-08  8:26               ` martin rudalics
2021-03-08 17:18                 ` Juri Linkov
2021-03-08 18:06                   ` martin rudalics
2021-03-08 18:24                     ` Juri Linkov
2021-03-09 17:28                       ` Juri Linkov
2021-04-27 17:19   ` Juri Linkov
2021-04-28 20:25     ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).