]> git.eshelyaron.com Git - emacs.git/commitdiff
Default to splash on current frame, if none visible (Bug#31169)
authorNoam Postavsky <npostavs@gmail.com>
Wed, 23 May 2018 23:26:49 +0000 (19:26 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 19 Jun 2018 00:02:03 +0000 (20:02 -0400)
* lisp/startup.el (fancy-splash-frame): Default to current frame.

lisp/startup.el

index fdf6cc1dbaa0648e4264b253d0751413482818be..c1e56fcdff3d956725cce13f2eb266c961766213 100644 (file)
@@ -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."