aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch.el
diff options
context:
space:
mode:
authorGravatar Tomi Ollila <tomi.ollila@iki.fi>2014-03-19 22:37:10 +0200
committerGravatar David Bremner <david@tethera.net>2014-04-10 23:25:36 -0300
commitcab1415a94f09c529ca7323904c5a159c996cbe0 (patch)
tree4ea2848a8dc8e87ded01ef4d63eb37576790be90 /emacs/notmuch.el
parentfeb3ce957213350db6c3e954cf4016aced1f65ce (diff)
emacs: add notmuch-version.el.tmpl and create notmuch-version.el from it
The notmuch cli program and emacs lisp versions may differ (especially in remote usage). It helps to resolve problems if we can determine the versions of notmuch cli and notmuch emacs mua separately. The build process now creates notmuch-version.el from template file by filling the version info to notmuch-emacs-version variable.
Diffstat (limited to 'emacs/notmuch.el')
-rw-r--r--emacs/notmuch.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 233c784d..64295ac9 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -61,6 +61,10 @@
(require 'notmuch-message)
(require 'notmuch-parser)
+(unless (require 'notmuch-version nil t)
+ (defconst notmuch-emacs-version "unknown"
+ "Placeholder variable when notmuch-version.el[c] is not available."))
+
(defcustom notmuch-search-result-format
`(("date" . "%12s ")
("count" . "%-7s ")