emacs: `notmuch-show-insert-part-multipart/encrypted' should not assume the presence of a button.

Missed in c802d12a1e.
This commit is contained in:
David Edmondson 2016-03-08 17:12:57 +00:00 committed by David Bremner
parent cc369779ab
commit cb4e90e476

View file

@ -678,7 +678,8 @@ will return nil if the CID is unknown or cannot be retrieved."
(notmuch-crypto-insert-sigstatus-button sigstatus from)))) (notmuch-crypto-insert-sigstatus-button sigstatus from))))
;; If we're not adding the encryption status, tell the user how ;; If we're not adding the encryption status, tell the user how
;; they can get it. ;; 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)) (let ((inner-parts (plist-get part :content))
(start (point))) (start (point)))