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.
+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)
(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)