* lisp/subr.el (do-after-load-evaluation): Use minibuffer-message
to not obscure a possibly active minibuffer.
* lisp/minibuffer.el (minibuffer-message):
Record message in the *Messages* buffer.
(message "%s" message))
(prog1 (sit-for (or minibuffer-message-timeout 1000000))
(message nil)))
+ ;; Record message in the *Messages* buffer
+ (let ((inhibit-message t))
+ (if args
+ (apply #'message message args)
+ (message "%s" message)))
;; Clear out any old echo-area message to make way for our new thing.
(message nil)
(setq message (if (and (null args)
(byte-compile-warn "%s" msg))
(run-with-timer 0 nil
(lambda (msg)
- (message "%s" msg))
- msg)))))
+ (minibuffer-message "%s" msg))
+ msg)))))
;; Finally, run any other hook.
(run-hook-with-args 'after-load-functions abs-file))