]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: include tags from excluded messages in tag tab completion
authorJameson Graef Rollins <jrollins@finestructure.net>
Mon, 9 Apr 2012 18:36:17 +0000 (11:36 -0700)
committerDavid Bremner <bremner@debian.org>
Thu, 12 Apr 2012 11:43:22 +0000 (08:43 -0300)
The new message exclude functionality will hide tags that only exist
on excluded messages.  However, one might very well want to manually
modify excluded tags.  This makes sure tags from excluded messages are
always available in tab completion.

emacs/notmuch.el

index 38ae00507c9178d73cccb1be0de573d72de9d903..8b483995cf7f660099e9e2bda7c1bd6c721d9380 100644 (file)
@@ -89,7 +89,7 @@ For example:
    (with-output-to-string
      (with-current-buffer standard-output
        (apply 'call-process notmuch-command nil t
    (with-output-to-string
      (with-current-buffer standard-output
        (apply 'call-process notmuch-command nil t
-             nil "search" "--output=tags" search-terms)))
+             nil "search" "--output=tags" "--exclude=false" search-terms)))
    "\n+" t))
 
 (defun notmuch-select-tag-with-completion (prompt &rest search-terms)
    "\n+" t))
 
 (defun notmuch-select-tag-with-completion (prompt &rest search-terms)