diff options
| author | David Edmondson <dme@dme.org> | 2021-02-21 15:19:02 +0000 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-09-08 23:00:45 -0300 |
| commit | 17bfc25bb35dc8d1d6686298c6f842a3ce450940 (patch) | |
| tree | 3665edb26752be2d7d286c85cde80d8a9dedf0eb | |
| parent | 4f4ec48df25c8d2963e7124d2781b13e5a7f6a78 (diff) | |
emacs: Allow functions in notmuch-{tree,unthreaded}-result-format
If the car of an element in notmuch-tree-result-format or
notmuch-unthreaded-result-format is a function, insert the result of
calling the function into the buffer.
| -rw-r--r-- | emacs/notmuch-tree.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index b48a132d..b3f1183d 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -885,6 +885,9 @@ unchanged ADDRESS if parsing fails." ((listp field) (format format-string (notmuch-tree-format-field-list field msg))) + ((functionp field) + (funcall field format-string msg)) + ((string-equal field "date") (let ((face (if match 'notmuch-tree-match-date-face |
