Don't let a code literal get modified in mml parsing (Bug#39884)

* lisp/gnus/mml.el (mml-parse-1): Make a fresh cons for the tag type,
because 'mml-generate-mime' destructively modifies it.
This commit is contained in:
Noam Postavsky 2020-04-16 20:24:26 -04:00
parent 74a92be16d
commit 821760fdc4

View file

@ -281,7 +281,7 @@ part. This is for the internal use, you should never modify the value.")
(setq tag (mml-read-tag)
no-markup-p nil
warn nil)
(setq tag (list 'part '(type . "text/plain"))
(setq tag (list 'part (cons 'type "text/plain"))
no-markup-p t
warn t))
(setq raw (cdr (assq 'raw tag))