From: David Edmondson Date: Tue, 20 Dec 2011 08:45:14 +0000 (+0000) Subject: emacs: Don't signal an error when reaching the end of the search results. X-Git-Tag: debian/0.12_rc1-1~225^2~2 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=dd41a07bbdd8bb55873773918e06483caf664918 emacs: Don't signal an error when reaching the end of the search results. 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. --- diff --git a/emacs/notmuch.el b/emacs/notmuch.el index fde23779..c678c93d 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -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."