X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-hello.el;h=9db8c9931a8fee0a25e105d00d5345def45ec47f;hb=aef1c9cfa0f707c945a507170f32c08940bf603d;hp=147c08cc2079c41c5bdc72da2366db8af65f3041;hpb=10aac899117e96606b690e5788924ccc703c53c8;p=obsolete%2Fnotmuch-old diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 147c08cc..9db8c993 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -402,8 +402,13 @@ options will be handled as specified for (plist-get options :filter))) "\n"))) - (call-process-region (point-min) (point-max) notmuch-command - t t nil "count" "--batch") + (unless (= (call-process-region (point-min) (point-max) notmuch-command + t t nil "count" "--batch") 0) + (notmuch-logged-error "notmuch count --batch failed" + "Please check that the notmuch CLI is new enough to support `count +--batch'. In general we recommend running matching versions of +the CLI and emacs interface.")) + (goto-char (point-min)) (notmuch-remove-if-not