X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-hello.el;h=00b78e1ed265a74d52aaf78d7479934f55a65cfb;hb=e76f6517de020783d828be59f461f1d4f465c4b4;hp=052aaebc02650ef8d005ce8008321149c050789b;hpb=1ecacab28fe10abf367ce4d6e4bac4a0642861e9;p=notmuch diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 052aaebc..00b78e1e 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -500,11 +500,11 @@ Complete list of currently available key bindings: (defun notmuch-hello-generate-tag-alist (&optional hide-tags) "Return an alist from tags to queries to display in the all-tags section." (mapcar (lambda (tag) - (cons tag (format "tag:%s" tag))) + (cons tag (concat "tag:" (notmuch-escape-boolean-term tag)))) (notmuch-remove-if-not (lambda (tag) (not (member tag hide-tags))) - (process-lines notmuch-command "search-tags")))) + (process-lines notmuch-command "search" "--output=tags" "*")))) (defun notmuch-hello-insert-header () "Insert the default notmuch-hello header." @@ -689,7 +689,7 @@ following: "Show an entry for each saved search and inboxed messages for each tag" (notmuch-hello-insert-searches "What's in your inbox" (append - (notmuch-saved-searches) + notmuch-saved-searches (notmuch-hello-generate-tag-alist)) :filter "tag:inbox")) @@ -726,11 +726,6 @@ following: "Run notmuch and display saved searches, known tags, etc." (interactive) - ;; Jump through a hoop to get this value from the deprecated variable - ;; name (`notmuch-folders') or from the default value. - (unless notmuch-saved-searches - (setq notmuch-saved-searches (notmuch-saved-searches))) - (if no-display (set-buffer "*notmuch-hello*") (switch-to-buffer "*notmuch-hello*"))