1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

lisp/frameset.el: Avoid computing frame-list unnecessarily.

(frameset-restore): When no frame is visible, do not generate
a list of frames, just make visible the selected one.
This commit is contained in:
Juanma Barranquero 2014-03-08 23:26:20 +01:00
parent 7359e7a832
commit e7db54476d
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-03-08 Juanma Barranquero <lekktu@gmail.com>
* frameset.el (frameset-restore): When no frame is visible, do not
generate a list of frames, just make visible the selected one.
2014-03-08 Dmitry Gutov <dgutov@yandex.ru>
* vc/vc-git.el (vc-git-command): Turn FILE-OR-LIST into nil when

View file

@ -1204,7 +1204,7 @@ All keyword parameters default to nil."
;; Make sure there's at least one visible frame.
(unless (or (daemonp) (visible-frame-list))
(make-frame-visible (car (frame-list))))))
(make-frame-visible (selected-frame)))))
;; Register support