mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: renamed function notmuch-version to notmuch-cli-version
As it asks `notmuch` binary for its version number.
This commit is contained in:
parent
6d5c7b3ca5
commit
0c565fa29f
3 changed files with 4 additions and 4 deletions
|
@ -628,7 +628,7 @@ with `notmuch-hello-query-counts'."
|
|||
(defun notmuch-hello-versions ()
|
||||
"Display the notmuch version(s)"
|
||||
(interactive)
|
||||
(let ((notmuch-cli-version (notmuch-version)))
|
||||
(let ((notmuch-cli-version (notmuch-cli-version)))
|
||||
(message "notmuch version %s"
|
||||
(if (string= notmuch-emacs-version notmuch-cli-version)
|
||||
notmuch-cli-version
|
||||
|
|
|
@ -192,8 +192,8 @@ Otherwise the output will be returned"
|
|||
"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."
|
||||
(defun notmuch-cli-version ()
|
||||
"Return a string with the notmuch cli command version number."
|
||||
(let ((long-string
|
||||
;; Trim off the trailing newline.
|
||||
(substring (notmuch-command-to-string "--version") 0 -1)))
|
||||
|
|
|
@ -118,7 +118,7 @@ Note that these functions use `mail-citation-hook' if that is non-nil."
|
|||
|
||||
(defun notmuch-mua-user-agent-notmuch ()
|
||||
"Generate a `User-Agent:' string suitable for notmuch."
|
||||
(concat "Notmuch/" (notmuch-version) " (http://notmuchmail.org)"))
|
||||
(concat "Notmuch/" (notmuch-cli-version) " (http://notmuchmail.org)"))
|
||||
|
||||
(defun notmuch-mua-user-agent-emacs ()
|
||||
"Generate a `User-Agent:' string suitable for notmuch."
|
||||
|
|
Loading…
Reference in a new issue