X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-lib.el;h=e6e9f97a0190e371bed66104e40952f74de80589;hb=71d809ac9ad1dd6c3a88ea8754eb52ef4aba2083;hp=140d7603ce2d191613911ac4e7e96bbdd0685a0c;hpb=71d6a405815d8c7894e7241a944ff782eb886245;p=notmuch diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 140d7603..e6e9f97a 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -179,6 +179,13 @@ Otherwise the output will be returned" (setq notmuch--cli-sane-p (= status 0)))) notmuch--cli-sane-p) +(defun notmuch-assert-cli-sane () + (unless (notmuch-cli-sane-p) + (notmuch-logged-error + "notmuch cli seems misconfigured or unconfigured." +"Perhaps you haven't run \"notmuch setup\" yet? Try running this +on the command line, and then retry your notmuch command"))) + (defun notmuch-version () "Return a string with the notmuch version number." (let ((long-string