mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
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.
This commit is contained in:
parent
4f4ec48df2
commit
17bfc25bb3
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue