From e7db54476d83d155fffb25fdec89f09224970a44 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Sat, 8 Mar 2014 23:26:20 +0100 Subject: [PATCH] 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. --- lisp/ChangeLog | 5 +++++ lisp/frameset.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7bbc084319b..a0791284bca 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-03-08 Juanma Barranquero + + * 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 * vc/vc-git.el (vc-git-command): Turn FILE-OR-LIST into nil when diff --git a/lisp/frameset.el b/lisp/frameset.el index 6fd23f739ae..d6742d89632 100644 --- a/lisp/frameset.el +++ b/lisp/frameset.el @@ -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 -- 2.39.2