]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix messages displayed when diary is shown
authorEli Zaretskii <eliz@gnu.org>
Sun, 15 Jan 2023 06:10:33 +0000 (08:10 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 15 Jan 2023 06:10:33 +0000 (08:10 +0200)
* 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)

lisp/calendar/diary-lib.el

index b90ed715fae41bca542347af8467b60dbfc62e06..44fb5eb5a8688240e4b134034a39f4f98ced027f 100644 (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 ()