(frameset-restore): When checking for a visible frame,
use the action map instead of calling visible-frame-list.
+2014-03-12 Juanma Barranquero <lekktu@gmail.com>
+
+ * frameset.el (frameset-restore): When checking for a visible frame,
+ use the action map instead of calling visible-frame-list.
+
2014-03-12 Jonas Bernoulli <jonas@bernoul.li>
* emacs-lisp/eieio.el (with-slots): Use cl-symbol-macrolet (bug#16998).
(delay-warning 'frameset (error-message-string err) :warning))))))
;; Make sure there's at least one visible frame.
- (unless (or (daemonp) (visible-frame-list))
+ (unless (or (daemonp)
+ (catch 'visible
+ (maphash (lambda (frame _)
+ (and (frame-live-p frame) (frame-visible-p frame)
+ (throw 'visible t)))
+ frameset--action-map)))
(make-frame-visible (selected-frame)))))
\f