Function: fancy-startup-screen
fancy-startup-screen is a byte-compiled function defined in
startup.el.gz.
Signature
(fancy-startup-screen &optional CONCISE)
Documentation
Display fancy startup screen.
If CONCISE is non-nil, display a concise version of the splash screen in another window.
Source Code
;; Defined in /usr/src/emacs/lisp/startup.el.gz
(defun fancy-startup-screen (&optional concise)
"Display fancy startup screen.
If CONCISE is non-nil, display a concise version of the
splash screen in another window."
(let ((splash-buffer (get-buffer-create "*GNU Emacs*")))
(with-current-buffer splash-buffer
(let ((inhibit-read-only t))
(erase-buffer)
(setq default-directory command-line-default-directory)
(make-local-variable 'startup-screen-inhibit-startup-screen)
;; Insert the permissions notice if the user has yet to grant Emacs
;; storage permissions.
(when (fboundp 'android-before-splash-screen)
(funcall 'android-before-splash-screen t))
(unless concise
(fancy-splash-head))
(dolist (text fancy-startup-text)
(apply #'fancy-splash-insert text)
(insert "\n"))
(skip-chars-backward "\n")
(delete-region (point) (point-max))
(insert "\n")
(fancy-startup-tail concise))
(use-local-map splash-screen-keymap)
(setq tab-width 22
buffer-read-only t)
(set-buffer-modified-p nil)
(if (and view-read-only (not view-mode))
(view-mode-enter nil 'kill-buffer))
(goto-char (point-min))
(forward-line (if concise 2 4)))
(if concise
(progn
(display-buffer splash-buffer)
;; If the splash screen is in a split window, fit it.
(let ((window (get-buffer-window splash-buffer t)))
(or (null window)
(eq window (selected-window))
(eq window (next-window window))
(fit-window-to-buffer window))))
(switch-to-buffer splash-buffer))))