]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Fix notmuch-hello-tag-list-make-query defcustom
authorJani Nikula <jani@nikula.org>
Tue, 20 Dec 2011 19:53:13 +0000 (21:53 +0200)
committerDavid Bremner <bremner@debian.org>
Thu, 22 Dec 2011 10:54:10 +0000 (06:54 -0400)
It was not possible to define custom filters or filter functions because
the types were const. Remove const to allow editing.

Signed-off-by: Jani Nikula <jani@nikula.org>
emacs/notmuch-hello.el

index f892ff736a74a5c7864d87f9e4f984e9343ec3d7..698f3cb7fd2bd09d6500b6cd8063565074091691 100644 (file)
@@ -86,8 +86,9 @@ Finally this can be a function that will be called for each tag and
 should return a filter for that tag, or nil to hide the tag."
   :type '(choice (const :tag "All messages" nil)
                 (const :tag "Unread messages" "tag:unread")
-                (const :tag "Custom filter" string)
-                (const :tag "Custom filter function" function))
+                (string :tag "Custom filter"
+                        :value "tag:unread")
+                (function :tag "Custom filter function"))
   :group 'notmuch)
 
 (defcustom notmuch-hello-hide-tags nil