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