From 4a32347513643b5b45e00a7e8c7d1fac8d8a4103 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 5 Jun 2020 23:08:38 -0400 Subject: notmuch: Drop piem-notmuch-executable I just mindlessly added this, but I don't see any advantage of using a separate variable rather than notmuch-command. And if the option were to stay, it should default to notmuch-command. Drop the piem-notmuch defgroup as well, since there are now no options. --- piem-notmuch.el | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/piem-notmuch.el b/piem-notmuch.el index dad5fb0..e454ab3 100644 --- a/piem-notmuch.el +++ b/piem-notmuch.el @@ -30,15 +30,6 @@ (require 'piem) (require 'subr-x) -(defgroup piem-notmuch nil - "Notmuch integration for piem." - :link '(info-link "(piem)Notmuch integration") - :group 'piem) - -(defcustom piem-notmuch-executable "notmuch" - "Which notmuch executable to use." - :type 'string) - (defmacro piem-notmuch--with-current-message (&rest body) (let ((rv (make-symbol "rv"))) `(let (,rv) @@ -63,11 +54,11 @@ (string-trim-right (with-output-to-string (with-current-buffer standard-output - (call-process piem-notmuch-executable + (call-process notmuch-command nil '(t nil) nil "search" "--output=messages" query))))) (lambda () - (call-process piem-notmuch-executable + (call-process notmuch-command nil '(t nil) nil "show" "--format=mbox" "--entire-thread=true" query))))) -- cgit v1.2.3