aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch.el
diff options
context:
space:
mode:
authorGravatar David Edmondson <dme@dme.org>2012-02-08 08:02:10 +0000
committerGravatar David Bremner <bremner@debian.org>2012-02-12 11:58:21 -0500
commit19ec74c50ebbf7f31997384e62b799fde99e7213 (patch)
treef6c6ad6cbde1e7d7e1199f4a50b542e66fa15178 /emacs/notmuch.el
parent5d021e52e2c39db224764e5e1d7f08b5e4068d77 (diff)
emacs: Rework crypto switch toggle.
Re-work the existing crypto switch toggle to be based on a persistant buffer-local variable. To allow this, modify `notmuch-show-refresh-view' to erase and re-draw in the current buffer rather than killing the current buffer and creating a new one. (This will also allow more per-buffer behaviour in future patches.) Add a binding ('$') to toggle crypto processing of the current buffer and remove the prefix argument approach that achieves a similar result.
Diffstat (limited to 'emacs/notmuch.el')
-rw-r--r--emacs/notmuch.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 11113fe8..5b4f1c5a 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -494,9 +494,9 @@ Complete list of currently available key bindings:
"Return a list of authors for the current region"
(notmuch-search-properties-in-region 'notmuch-search-subject beg end))
-(defun notmuch-search-show-thread (&optional crypto-switch)
+(defun notmuch-search-show-thread ()
"Display the currently selected thread."
- (interactive "P")
+ (interactive)
(let ((thread-id (notmuch-search-find-thread-id))
(subject (notmuch-prettify-subject (notmuch-search-find-subject))))
(if (> (length thread-id) 0)
@@ -504,8 +504,7 @@ Complete list of currently available key bindings:
(current-buffer)
notmuch-search-query-string
;; Name the buffer based on the subject.
- (concat "*" (truncate-string-to-width subject 30 nil nil t) "*")
- crypto-switch)
+ (concat "*" (truncate-string-to-width subject 30 nil nil t) "*"))
(message "End of search results."))))
(defun notmuch-search-reply-to-thread (&optional prompt-for-sender)