]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't clobber epa-mail-aliases
authorRichard Stallman <rms@gnu.org>
Sun, 24 Feb 2019 16:45:41 +0000 (08:45 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Feb 2019 16:46:54 +0000 (08:46 -0800)
* lisp/epa-mail.el (epa-mail-default-recipients):
Copy elements of epa-mail-aliases; don't clobber them.

lisp/epa-mail.el

index ce71ed8f9e45396a81a390a5dbd422c058d5f484..1bb8d9bfde16ed7bde9a79e9ed41709ae9f8a08c 100644 (file)
@@ -150,7 +150,7 @@ If no one is selected, default secret key is used.  "
                   (mapcar
                    (lambda (recipient)
                      (let ((tem (assoc recipient epa-mail-aliases)))
-                       (if tem (cdr tem)
+                       (if tem (copy-sequence (cdr tem))
                          (list recipient))))
                    real-recipients)))
       )))