aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-tree.el
diff options
context:
space:
mode:
authorGravatar Mark Walters <markwalters1009@gmail.com>2014-06-07 10:51:08 +0100
committerGravatar David Bremner <david@tethera.net>2014-07-16 06:33:17 -0300
commitebb58751dc0f20da3176a53d41d196e4c5de12e0 (patch)
treec055c820c4595afc11c8adf18e1068b1a4e7b238 /emacs/notmuch-tree.el
parent4697e86a523fbbe43bf7ef38169f526adcbd710c (diff)
emacs: tree/show remove duplicate function
tree overrides notmuch-show-get-prop so that it can use many of the utility function directly. Now that tree is in mainline the version from tree can be moved to show and the original overridden show version dropped.
Diffstat (limited to 'emacs/notmuch-tree.el')
-rw-r--r--emacs/notmuch-tree.el16
1 files changed, 0 insertions, 16 deletions
diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index e9249da1..e859cc24 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -290,22 +290,6 @@ Some useful entries are:
(beginning-of-line)
(get-text-property (point) :notmuch-message-properties)))
-;; XXX This should really be a lib function but we are trying to
-;; reduce impact on the code base.
-(defun notmuch-show-get-prop (prop &optional props)
- "This is a tree view overridden version of notmuch-show-get-prop
-
-It gets property PROP from PROPS or, if PROPS is nil, the current
-message in either tree or show. This means that several functions
-in notmuch-show now work unchanged in tree as they just need the
-correct message properties."
- (let ((props (or props
- (cond ((eq major-mode 'notmuch-show-mode)
- (notmuch-show-get-message-properties))
- ((eq major-mode 'notmuch-tree-mode)
- (notmuch-tree-get-message-properties))))))
- (plist-get props prop)))
-
(defun notmuch-tree-set-message-properties (props)
(save-excursion
(beginning-of-line)