Commit 889acc5c authored by Juanma Barranquero's avatar Juanma Barranquero

lisp/desktop.el (desktop-restoring-frames-p): Return a true boolean.

(desktop-restore-frames): Warn when deleting an existing frame failed.
parent 86c40970
2013-07-24 Juanma Barranquero <lekktu@gmail.com>
* desktop.el (desktop-restoring-frames-p): Return a true boolean.
(desktop-restore-frames): Warn when deleting an existing frame failed.
2013-07-24 Glenn Morris <rgm@gnu.org>
* ffap.el (ffap-machine-p): Handle "not known" response. (Bug#14929)
......
......@@ -1327,7 +1327,7 @@ its window state. Internal use only."
(defun desktop-restoring-frames-p ()
"True if calling `desktop-restore-frames' will actually restore frames."
(and desktop-restore-frames desktop-saved-frame-states))
(and desktop-restore-frames desktop-saved-frame-states t))
(defun desktop-restore-frames ()
"Restore window/frame configuration.
......@@ -1405,7 +1405,10 @@ being set (usually, by reading it from the desktop)."
;; Delete remaining frames, but do not fail if some resist being deleted.
(unless (eq desktop-restoring-reuses-frames 'keep)
(dolist (frame desktop--reuse-list)
(ignore-errors (delete-frame frame))))
(condition-case err
(delete-frame frame)
(error
(delay-warning 'desktop (error-message-string err))))))
(setq desktop--reuse-list nil)
;; Make sure there's at least one visible frame, and select it.
(unless (or (daemonp)
......
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