]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: `notmuch-show-insert-part-multipart/encrypted' should not assume the presence...
authorDavid Edmondson <dme@dme.org>
Tue, 8 Mar 2016 17:12:57 +0000 (17:12 +0000)
committerDavid Bremner <david@tethera.net>
Sun, 27 Mar 2016 20:42:06 +0000 (17:42 -0300)
Missed in c802d12a1e43fe69f2fcf7a2f7d44018a55bfb65.

emacs/notmuch-show.el

index 245114b719dac78726c2d47dc49e92679c79f30c..cba979df8a6343ac53e9f631b9d7a62ba0abe04f 100644 (file)
@@ -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)))