Commit 6c2b1e89 authored by Stefan Monnier's avatar Stefan Monnier

* lisp/gnus/message.el: Improve last commit

(message-clone-locals): Don't mistakenly match other variables whose
name happens to include "message-default-charset".
parent 7ed73608
......@@ -8063,8 +8063,7 @@ regexp VARSTR."
;; Cloning message-default-charset could cause an already
;; encoded text to be encoded again, yielding raw bytes
;; instead of characters in the message.
(unless (string-match "message-default-charset"
(symbol-name (car local)))
(unless (eq 'message-default-charset (car local))
(set (make-local-variable (car local))
(cdr local))))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment