aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2021-01-10 15:00:58 +0100
committerDavid Bremner <david@tethera.net>2021-01-13 07:23:11 -0400
commit1bbbde4a0c3153f6caa30724bd173397be43144f (patch)
tree637e188fa0cfbf4e6a8499d7015816ffcb0c8574
parent7db6ed2dd4253e5da4d96aae3e446d663c4a149f (diff)
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.
-rw-r--r--emacs/notmuch-crypto.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el
index 50a3de46..db7cb75d 100644
--- a/emacs/notmuch-crypto.el
+++ b/emacs/notmuch-crypto.el
@@ -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)