Fix messages displayed when diary is shown

* lisp/calendar/diary-lib.el (diary-list-entries): Display the
"...done" message only if there's no important message in the
echo-area.  (Bug#60795)
This commit is contained in:
Eli Zaretskii 2023-01-15 08:10:33 +02:00
parent 256791edd4
commit b5e0260f42

View file

@ -880,7 +880,10 @@ LIST-ONLY is non-nil, in which case it just returns the list."
(original-date original-date))
(run-hooks 'diary-hook))))))
(and temp-buff (buffer-name temp-buff) (kill-buffer temp-buff)))
(or d-incp (message "Preparing diary...done"))
(or d-incp
;; Don't clobber messages displayed while preparing the diary.
(not (equal (current-message) "Preparing diary..."))
(message "Preparing diary...done"))
diary-entries-list)))
(defun diary-unhide-everything ()