X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=emacs%2Fnotmuch-lib.el;h=91132b504169510556d0e3f90a21e202f9582c75;hb=8b6f3e3f458c6ccca49100c5fb224af1aaa2b540;hp=f30bcb429cc2a775a98b0242b3f3f63b5a0c8ecf;hpb=65f2e61f28a0f5c5dc38dd3cf8a1de023934b330;p=notmuch-old diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index f30bcb42..91132b50 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -68,6 +68,13 @@ the user hasn't set this variable with the old or new value." (match-string 2 long-string) "unknown"))) +(defun notmuch-database-path () + "Return the database.path value from the notmuch configuration." + ;; Trim off the trailing newline + (substring (shell-command-to-string + (concat notmuch-command " config get database.path")) + 0 -1)) + ;; ;; XXX: This should be a generic function in emacs somewhere, not