aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-tree.el
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2014-03-22 11:51:05 +0000
committerGravatar David Bremner <david@tethera.net>2014-03-24 19:42:33 -0300
commitdfab8e5e49d90c415f9585a02a2b0d6f72b4083a (patch)
tree0b60247f832e9fe4c4406162ba62fb2f2899429e /emacs/notmuch-tree.el
parent87c2cd78fd8b3a83a6cfcc785df286ca458056dd (diff)
emacs: Combine notmuch-combine-face-text-property{, -string}
This combines our two face combining functions into one, easy to use function with a much shorter name: `notmuch-apply-face'. This function takes the full set of arguments that `notmuch-combine-face-text-property' took, but takes them in a more convenient order and provides smarter defaults that make the function easy to use on both strings and buffers.
Diffstat (limited to 'emacs/notmuch-tree.el')
-rw-r--r--emacs/notmuch-tree.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 4f2ac028..e3aa2cd9 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -715,7 +715,7 @@ unchanged ADDRESS if parsing fails."
(dolist (spec field-list result-string)
(let ((field-string (notmuch-tree-format-field (car spec) (cdr spec) msg)))
(setq result-string (concat result-string field-string))))
- (notmuch-combine-face-text-property-string result-string face t)))
+ (notmuch-apply-face result-string face t)))
(defun notmuch-tree-insert-msg (msg)
"Insert the message MSG according to notmuch-tree-result-format"