Commit 7108e1c0 authored by Juanma Barranquero's avatar Juanma Barranquero

lisp/frameset.el: Workaround bug#16793.

lisp/frameset.el (frameset--restore-frame): When a frame is being reused
and its root window is not alive, delete all the frame's windows before
restoring the window state.
parent 5185f8ed
2014-02-18 Juanma Barranquero <lekktu@gmail.com>
* frameset.el (frameset--restore-frame): When a frame is being reused
and its root window is not alive, delete all the frame's windows before
restoring the window state. This works around the issue in bug#16793.
2014-02-18 Glenn Morris <rgm@gnu.org>
* textmodes/remember.el (remember-data-directory)
......
......@@ -932,7 +932,11 @@ is the parameter alist of the frame being restored. Internal use only."
(setq frame (frameset--find-frame-if nil display))))
;; If found, remove from the list.
(when frame
(setq frameset--reuse-list (delq frame frameset--reuse-list)))
(setq frameset--reuse-list (delq frame frameset--reuse-list))
;; Workaround for feature/bug#16793
(let ((root (frame-root-window frame)))
(unless (window-live-p root)
(delete-other-windows-internal (frame-first-window root) root))))
frame))
(defun frameset--initial-params (parameters)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment