From: Jonas Bernoulli Date: Sun, 10 Jan 2021 14:00:58 +0000 (+0100) Subject: emacs: notmuch-crypto-status-button-type: fix potential bug X-Git-Tag: 0.32_rc0~141 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=1bbbde4a0c3153f6caa30724bd173397be43144f 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. --- 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)