Commit d27a1a7b authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

lisp/frameset.el: Optimize check for visible frame.

(frameset-restore): When checking for a visible frame,
use the action map instead of calling visible-frame-list.
parent 08dfa0b7
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).
......
......@@ -1230,7 +1230,12 @@ All keyword parameters default to nil."
(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)))))
......
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