aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch.el
diff options
context:
space:
mode:
authorGravatar Mark Walters <markwalters1009@gmail.com>2013-10-13 08:39:12 +0100
committerGravatar David Bremner <bremner@debian.org>2013-10-19 22:42:49 -0300
commit99d474c484d89d3436c910f1ac447640c533e811 (patch)
tree9d7bbbaa759c5db19a53bf7d00146201547d7030 /emacs/notmuch.el
parent10596a5cce3c7ed902ec4f0807da4ee283571867 (diff)
emacs: show: use interactive instead of current-prefix-arg
Currently notmuch-show looks at the prefix-arg directly via current-prefix-arg. This changes it to use the interactive specification. One test (for elide-toggle functionality) set the prefix arg directly. Update this test to set the new argument directly.
Diffstat (limited to 'emacs/notmuch.el')
-rw-r--r--emacs/notmuch.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index c47c6b56..1e53f509 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -510,13 +510,14 @@ If BARE is set then do not prefix with \"thread:\""
"Return a list of authors for the current region"
(notmuch-search-properties-in-region :subject beg end))
-(defun notmuch-search-show-thread ()
+(defun notmuch-search-show-thread (&optional elide-toggle)
"Display the currently selected thread."
- (interactive)
+ (interactive "P")
(let ((thread-id (notmuch-search-find-thread-id))
(subject (notmuch-search-find-subject)))
(if (> (length thread-id) 0)
(notmuch-show thread-id
+ elide-toggle
(current-buffer)
notmuch-search-query-string
;; Name the buffer based on the subject.