As stated in the documentation for notmuch-buffer-refresh-function, each buffer major mode's refresh function takes two args, but notmuch-refresh-this-buffer and notmuch-poll-and-refresh-this-buffer only pass the first arg. Add the second arg because it's very useful for background refreshing. Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com> --- emacs/notmuch-lib.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 2d27e56..e1b5066 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -418,17 +418,17 @@ interactively, the second requests that the refresh call not display the buffer.") (make-variable-buffer-local 'notmuch-buffer-refresh-function) -(defun notmuch-refresh-this-buffer (prefix) +(defun notmuch-refresh-this-buffer (prefix no-display) "Refresh the current buffer." (interactive "P") (when notmuch-buffer-refresh-function - (funcall notmuch-buffer-refresh-function prefix))) + (funcall notmuch-buffer-refresh-function prefix no-display))) -(defun notmuch-poll-and-refresh-this-buffer (prefix) +(defun notmuch-poll-and-refresh-this-buffer (prefix no-display) "Invoke `notmuch-poll' to import mail, then refresh the current buffer." (interactive "P") (notmuch-poll) - (notmuch-refresh-this-buffer prefix)) + (notmuch-refresh-this-buffer prefix no-display)) (defun notmuch-prettify-subject (subject) ;; This function is used by `notmuch-search-process-filter' which -- 2.10.0