X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-hello.el;h=b42e0f24148a01201c12468e584e20d0740649f8;hp=d9fe3ff60b3159b5abbf9664e65ef97f903cd68e;hb=c689d1ff13ed48507230ca7035021ce42d3dcd64;hpb=391d9f94204234d6ef3dd701d69bfdf92dbad8f0 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index d9fe3ff6..b42e0f24 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -120,6 +120,10 @@ a plist. Supported properties are :sort-order Specify the sort order to be used for the search. Possible values are 'oldest-first 'newest-first or nil. Nil means use the default sort order. + :search-type Specify whether to run the search in search-mode + or tree mode. Set to 'tree to specify tree + mode, set to nil (or anything except tree) to + specify search mode. Other accepted forms are a cons cell of the form (NAME . QUERY) or a list of the form (NAME QUERY COUNT-QUERY)." @@ -648,8 +652,12 @@ with `notmuch-hello-query-counts'." (defvar notmuch-hello-mode-map (let ((map (if (fboundp 'make-composed-keymap) - ;; Inherit both widget-keymap and notmuch-common-keymap - (make-composed-keymap widget-keymap) + ;; Inherit both widget-keymap and + ;; notmuch-common-keymap. We have to use + ;; make-sparse-keymap to force this to be a new + ;; keymap (so that when we modify map it does not + ;; modify widget-keymap). + (make-composed-keymap (list (make-sparse-keymap) widget-keymap)) ;; Before Emacs 24, keymaps didn't support multiple ;; inheritance,, so just copy the widget keymap since ;; it's unlikely to change.