[PATCH] emacs: Don't signal an error when reaching the end of the search results.

Tomi Ollila tomi.ollila at iki.fi
Wed Dec 28 12:33:09 PST 2011


On Tue, 20 Dec 2011 08:45:14 +0000, David Edmondson <dme at dme.org> wrote:
> 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.
> ---

I'd say '+1' but I could not reproduce the case. In case this is case
that should not happen then I just don't know whetner emacs should
signal error to user or not.

Tomi

>  emacs/notmuch.el |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/emacs/notmuch.el b/emacs/notmuch.el
> index 675a110..2e9973e 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."
> -- 
> 1.7.7.3


More information about the notmuch mailing list