mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-04-22 15:20:47 +02:00
emacs: add function notmuch-assert-cli-sane
If the CLI seems borked, signal an error, and log a suggestion for the user about how to recover.
This commit is contained in:
parent
71d6a40581
commit
71d809ac9a
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue