aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmondson <dme@dme.org>2016-03-08 17:12:57 +0000
committerDavid Bremner <david@tethera.net>2016-03-27 17:42:06 -0300
commitcb4e90e476572f52517ccb2dd04872c243710e9c (patch)
treea1fe8f5a6e5a9703b253f4550e03af8c2994b689
parentcc369779abc6599a758ed60dc17d2f3862bdcacf (diff)
emacs: `notmuch-show-insert-part-multipart/encrypted' should not assume the presence of a button.
Missed in c802d12a1e43fe69f2fcf7a2f7d44018a55bfb65.
-rw-r--r--emacs/notmuch-show.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 245114b7..cba979df 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -678,7 +678,8 @@ will return nil if the CID is unknown or cannot be retrieved."
(notmuch-crypto-insert-sigstatus-button sigstatus from))))
;; If we're not adding the encryption status, tell the user how
;; they can get it.
- (button-put button 'help-echo "Set notmuch-crypto-process-mime to process cryptographic MIME parts."))
+ (when button
+ (button-put button 'help-echo "Set notmuch-crypto-process-mime to process cryptographic MIME parts.")))
(let ((inner-parts (plist-get part :content))
(start (point)))