Avoid errors in winner.el's 'post-command-hook'

* lisp/winner.el (winner-save-old-configurations): Don't save
configuration of dead frames.  (Bug#68977)
This commit is contained in:
Eli Zaretskii 2024-02-10 11:04:22 +02:00
parent 55aea79676
commit 20f7a022f8

View file

@ -178,7 +178,8 @@ You may want to include buffer names such as *Help*, *Apropos*,
(setq winner-last-frames nil)
(setq winner-last-command this-command))
(dolist (frame winner-modified-list)
(winner-insert-if-new frame))
(if (frame-live-p frame)
(winner-insert-if-new frame)))
(setq winner-modified-list nil)
(winner-remember)))