mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-12 12:34:53 +01:00
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.
This commit is contained in:
parent
30740296e7
commit
b8fe20f339
1 changed files with 1 additions and 5 deletions
|
@ -710,11 +710,7 @@ with `notmuch-hello-query-counts'."
|
||||||
;; configuration change, and this is not a new window)
|
;; configuration change, and this is not a new window)
|
||||||
(setq do-refresh t)))))
|
(setq do-refresh t)))))
|
||||||
(when (and do-refresh notmuch-hello-auto-refresh)
|
(when (and do-refresh notmuch-hello-auto-refresh)
|
||||||
;; Refresh hello as soon as we get back to redisplay. On Emacs
|
(notmuch-hello t))
|
||||||
;; 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))
|
|
||||||
(unless hello-buf
|
(unless hello-buf
|
||||||
;; Clean up hook
|
;; Clean up hook
|
||||||
(remove-hook 'window-configuration-change-hook
|
(remove-hook 'window-configuration-change-hook
|
||||||
|
|
Loading…
Reference in a new issue