]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Don't signal an error when reaching the end of the search results.
authorDavid Edmondson <dme@dme.org>
Tue, 20 Dec 2011 08:45:14 +0000 (08:45 +0000)
committerDavid Bremner <bremner@debian.org>
Mon, 9 Jan 2012 10:40:24 +0000 (06:40 -0400)
With the default configuration ('space' moves through the messages
matching the search and back to the results index at the end) it's
unnecessary to signal an error when the last message has been read, as
this is the common case.

Moreover, it's very annoying when `debug-on-error' is t.

emacs/notmuch.el

index fde23779d7cf8f4a8853fd16da6940779cd48820..c678c93d7f44112c71a27b4717621fd29ab602ce 100644 (file)
@@ -438,7 +438,7 @@ Complete list of currently available key bindings:
                                 "*")
                         32 nil nil t))
                      crypto-switch)
-      (error "End of search results"))))
+      (message "End of search results."))))
 
 (defun notmuch-search-reply-to-thread (&optional prompt-for-sender)
   "Begin composing a reply to the entire current thread in a new buffer."