X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch.el;h=da75fafce62f61a5bb600c5359767dfc62cb3951;hb=046f5dded2a113d80e55288aaa1659a6843dafa3;hp=3602361bd93b5d4679e92ea2d3712248c188c32d;hpb=a56e6603c604cbe010a520c9084e0ad2895755d9;p=notmuch diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 3602361b..da75fafc 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -651,8 +651,8 @@ This function advances the next thread when finished." (if notmuch-search-process-filter-data (insert (concat "Error: Unexpected output from notmuch search:\n" notmuch-search-process-filter-data))) (insert "End of search results.") - (if (not (= exit-status 0)) - (insert (format " (process returned %d)" exit-status))) + (unless (= exit-status 0) + (insert (format " (process returned %d)" exit-status))) (insert "\n") (if (and atbob (not (string= notmuch-search-target-thread "found"))) @@ -1022,8 +1022,8 @@ Invokes `notmuch-poll-script', \"notmuch new\", or does nothing depending on the value of `notmuch-poll-script'." (interactive) (if (stringp notmuch-poll-script) - (if (not (string= notmuch-poll-script "")) - (call-process notmuch-poll-script nil nil)) + (unless (string= notmuch-poll-script "") + (call-process notmuch-poll-script nil nil)) (call-process notmuch-command nil nil nil "new"))) (defun notmuch-search-poll-and-refresh-view ()