aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2023-07-22 09:15:56 -0300
committerDavid Bremner <david@tethera.net>2024-07-25 17:43:43 +0900
commitb8fe20f339677ae54bbc1bc606bd08ef551a2974 (patch)
tree98f545eae6189d07edee147a572e04c21ebcb9a0
parent30740296e7b211047936ade679e4a15e494ee91c (diff)
emacs/hello: refresh hello directly
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.
-rw-r--r--emacs/notmuch-hello.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index b3228d43..15ba7c78 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -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