]> git.eshelyaron.com Git - emacs.git/commitdiff
New variable 'startup-echo-area-message-function'
authorEshel Yaron <me@eshelyaron.com>
Sat, 26 Apr 2025 09:22:24 +0000 (11:22 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 26 Apr 2025 09:23:05 +0000 (11:23 +0200)
lisp/startup.el

index d1f6a0c17accf0f2955a17a6fe442915f374f4b5..0c0dffa32f6f35c0842eb3bb3aeec7d9ef3ad735 100644 (file)
@@ -2370,10 +2370,12 @@ Type \\[describe-distribution] for information on "))
      "For information about GNU Emacs and the GNU system, type \
 \\[about-emacs].")))
 
+(defvar startup-echo-area-message-function #'startup-echo-area-message)
+
 (defun display-startup-echo-area-message ()
   (let ((resize-mini-windows t))
     (or noninteractive inhibit-startup-echo-area-message
-       (message "%s" (startup-echo-area-message)))))
+       (message "%s" (funcall startup-echo-area-message-function)))))
 
 (defun display-startup-screen (&optional concise)
   "Display startup screen according to display.