emacs: notmuch-crypto-status-button-type: fix potential bug

The "help-echo" can potentially contain an unintended %-spec
so we have to make sure it would not be treated as such.
This commit is contained in:
Jonas Bernoulli 2021-01-10 15:00:58 +01:00 committed by David Bremner
parent 7db6ed2dd4
commit 1bbbde4a0c

View file

@ -103,7 +103,7 @@ mode."
;;; Functions
(define-button-type 'notmuch-crypto-status-button-type
'action (lambda (button) (message (button-get button 'help-echo)))
'action (lambda (button) (message "%s" (button-get button 'help-echo)))
'follow-link t
'help-echo "Set notmuch-crypto-process-mime to process cryptographic mime parts."
:supertype 'notmuch-button-type)