]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: hello: stop update from forcing the buffer to be displayed
authorMark Walters <markwalters1009@gmail.com>
Sat, 15 Oct 2016 07:32:41 +0000 (08:32 +0100)
committerDavid Bremner <david@tethera.net>
Mon, 17 Oct 2016 12:04:38 +0000 (09:04 -0300)
Make the notmuch-hello refresh function (notmuch-hello-update) not
force the buffer to be displayed. All the callers call it when the
buffer is already displayed so it will only affect non-interactive
callers. Since it is just a trivial wrapper of notmuch-hello anyone
who wants to force the buffer to be displayed should just call
notmuch-hello.

emacs/notmuch-hello.el

index 089a19d72a989782a7ce809f183a3c8d0bd0437d..c858a20b6cc751d73d457272b0586da3d20e49db 100644 (file)
@@ -604,11 +604,11 @@ with `notmuch-hello-query-counts'."
 
 (defimage notmuch-hello-logo ((:type png :file "notmuch-logo.png")))
 
-(defun notmuch-hello-update (&optional no-display)
-  "Update the current notmuch view."
+(defun notmuch-hello-update ()
+  "Update the notmuch-hello buffer."
   ;; Lazy - rebuild everything.
   (interactive)
-  (notmuch-hello no-display))
+  (notmuch-hello t))
 
 (defun notmuch-hello-window-configuration-change ()
   "Hook function to update the hello buffer when it is switched to."