]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
emacs: show: use interactive instead of current-prefix-arg
[notmuch] / emacs / notmuch.el
index c47c6b56854fe59eabd9ecc40b1445242e5c38a0..1e53f5092391c350d53589b10494852c6d648fd6 100644 (file)
@@ -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.