]> git.notmuchmail.org Git - notmuch/commitdiff
emacs/hello: refresh hello directly
authorDavid Bremner <david@tethera.net>
Sat, 22 Jul 2023 12:15:56 +0000 (09:15 -0300)
committerDavid Bremner <david@tethera.net>
Thu, 25 Jul 2024 08:43:43 +0000 (17:43 +0900)
According to the now deleted commentary, the hack of using run-at-time
was needed for Emacs 24. It seems to be no longer needed for Emacs
28.2, and removing it makes further changes to the code simpler.

emacs/notmuch-hello.el

index b3228d43a72c4a2c0c37458f1552a8f996340ab4..15ba7c7858af7f874a4e1a9857173a96c991050d 100644 (file)
@@ -710,11 +710,7 @@ with `notmuch-hello-query-counts'."
            ;; configuration change, and this is not a new window)
            (setq do-refresh t)))))
     (when (and do-refresh notmuch-hello-auto-refresh)
-      ;; Refresh hello as soon as we get back to redisplay.  On Emacs
-      ;; 24, we can't do it right here because something in this
-      ;; hook's call stack overrides hello's point placement.
-      ;; FIXME And on Emacs releases that we still support?
-      (run-at-time nil nil #'notmuch-hello t))
+      (notmuch-hello t))
     (unless hello-buf
       ;; Clean up hook
       (remove-hook 'window-configuration-change-hook