]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Take advantage of position-remembering when returning to notmuch-hello
authorCarl Worth <cworth@cworth.org>
Tue, 27 Apr 2010 01:00:37 +0000 (18:00 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 27 Apr 2010 01:00:37 +0000 (18:00 -0700)
When we go into a search, and then later quit and return to the
notmuch-hello buffer, we want the point to remain in the same position
it was in when we left. So we have to call the position-remembering
notmuch-hello-update rather than notmuch-hello from the continuation.

emacs/notmuch-hello.el

index f68fdb5b034a5c94b70ae9a98d55b54ff5464b60..1b33ef75ac22e5b687ecf7802efded4982d2360c 100644 (file)
@@ -193,7 +193,7 @@ diagonal."
 (defimage notmuch-hello-logo ((:type png :file "notmuch-logo.png")))
 
 (defun notmuch-hello-search-continuation()
-  (notmuch-hello t))
+  (notmuch-hello-update t))
 
 (defun notmuch-hello-update (&optional no-display)
   ;; Lazy - rebuild everything.