emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 91ebbbf 2/3: Default to splash on current frame, if


From: Noam Postavsky
Subject: [Emacs-diffs] master 91ebbbf 2/3: Default to splash on current frame, if none visible (Bug#31169)
Date: Mon, 18 Jun 2018 20:11:24 -0400 (EDT)

branch: master
commit 91ebbbfa107c60db84e09d54d952ffd969821ccb
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Default to splash on current frame, if none visible (Bug#31169)
    
    * lisp/startup.el (fancy-splash-frame): Default to current frame.
---
 lisp/startup.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/startup.el b/lisp/startup.el
index fdf6cc1..c1e56fc 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1903,7 +1903,8 @@ we put it on this frame."
       (if (and (frame-visible-p frame)
               (not (window-minibuffer-p (frame-selected-window frame))))
          (setq chosen-frame frame)))
-    chosen-frame))
+    ;; If there are no visible frames yet, try the selected one.
+    (or chosen-frame (selected-frame))))
 
 (defun use-fancy-splash-screens-p ()
   "Return t if fancy splash screens should be used."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]