]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-tree.el
emacs: Allow functions in notmuch-{tree,unthreaded}-result-format
[notmuch] / emacs / notmuch-tree.el
index b48a132dd5aa9e1af74368cb6949bb8d83258fec..b3f1183da4b50fc531e3813be8e9420c2bbc621f 100644 (file)
@@ -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