From: Jonas Bernoulli Date: Sat, 8 Aug 2020 11:49:48 +0000 (+0200) Subject: emacs: notmuch-poll: Let the user know we are polling X-Git-Tag: 0.31_rc0~32 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=177cd31fbdff93254d576b737b55656d3a6086b5;ds=sidebyside emacs: notmuch-poll: Let the user know we are polling It is done synchronously and it can take a while, so we should let the user know what is going on. --- diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 4496ecd2..6ff351d7 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -259,11 +259,13 @@ on the command line, and then retry your notmuch command"))) Invokes `notmuch-poll-script', \"notmuch new\", or does nothing depending on the value of `notmuch-poll-script'." (interactive) + (message "Polling mail...") (if (stringp notmuch-poll-script) (unless (string= notmuch-poll-script "") (unless (equal (call-process notmuch-poll-script nil nil) 0) (error "Notmuch: poll script `%s' failed!" notmuch-poll-script))) - (notmuch-call-notmuch-process "new"))) + (notmuch-call-notmuch-process "new")) + (message "Polling mail...done")) (defun notmuch-bury-or-kill-this-buffer () "Undisplay the current buffer.