emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master fb32368 2/2: Fix PGP verification buttons (which would have cache


From: Lars Ingebrigtsen
Subject: master fb32368 2/2: Fix PGP verification buttons (which would have cached results)
Date: Tue, 21 Sep 2021 11:42:13 -0400 (EDT)

branch: master
commit fb32368efdaf11ae0e6b3a28f4a167886caa4c9d
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix PGP verification buttons (which would have cached results)
    
    * lisp/gnus/mm-uu.el (mm-uu-pgp-signed-extract): `format' was used
    here to guarantee a new, fresh string (since it's destructively
    modified), but that's apparently not the case any more.  Use
    `substring' instead, which is documented to do this.
---
 lisp/gnus/mm-uu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el
index 9d4c4bf..647b97c 100644
--- a/lisp/gnus/mm-uu.el
+++ b/lisp/gnus/mm-uu.el
@@ -511,7 +511,7 @@ apply the face `mm-uu-extract'."
       (list (mm-make-handle buf mm-uu-text-plain-type)))))
 
 (defun mm-uu-pgp-signed-extract ()
-  (let ((mm-security-handle (list (format "multipart/signed"))))
+  (let ((mm-security-handle (list (substring "multipart/signed"))))
     (mm-set-handle-multipart-parameter
      mm-security-handle 'protocol "application/x-gnus-pgp-signature")
     (save-restriction



reply via email to

[Prev in Thread] Current Thread [Next in Thread]