diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2023-03-28 20:57:07 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2023-04-02 09:25:36 +0300 |
| commit | 91bcd0a25bbe587dc3acca5b6b5764db35222aa7 (patch) | |
| tree | 39cb5da2b379441480d6597138ae44a2aa047a09 | |
| parent | 34b4288fe5e98c59cc48937869d6141d81ea1fb7 (diff) | |
mu4e: restore support for function bookmarks
Fixes 2446.
| -rw-r--r-- | mu4e/mu4e-bookmarks.el | 4 | ||||
| -rw-r--r-- | mu4e/mu4e-search.el | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/mu4e/mu4e-bookmarks.el b/mu4e/mu4e-bookmarks.el index c6a8947..5cfc7a0 100644 --- a/mu4e/mu4e-bookmarks.el +++ b/mu4e/mu4e-bookmarks.el @@ -53,11 +53,9 @@ Each of the list elements is a plist with at least: `:name' - the name of the query -`:query' - the query expression string (not a function) +`:query' - the query expression string or function `:key' - the shortcut key (single character) -Note that the :query parameter can be a function/lambda. - Optionally, you can add the following: - `:favorite' - if t, monitor the results of this query, and make diff --git a/mu4e/mu4e-search.el b/mu4e/mu4e-search.el index 91ea88f..c5eb12d 100644 --- a/mu4e/mu4e-search.el +++ b/mu4e/mu4e-search.el @@ -203,6 +203,7 @@ the search." (or expr (mu4e-ask-bookmark (if edit "Select bookmark: " "Bookmark: ")))) + (expr (if (functionp expr) (funcall expr) expr)) (fav (mu4e--bookmark-query (mu4e-bookmark-favorite)))) ;; reset baseline when searching for the favorite bookmark query (when (and fav (string= fav expr)) |
