diff options
| -rw-r--r-- | lisp/international/mule.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 8a4d66c58ef..517162b6e09 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -189,6 +189,13 @@ attribute." | |||
| 189 | (plist-put props :short-name (symbol-name name))) | 189 | (plist-put props :short-name (symbol-name name))) |
| 190 | (or (plist-get props :long-name) | 190 | (or (plist-get props :long-name) |
| 191 | (plist-put props :long-name (plist-get props :short-name))) | 191 | (plist-put props :long-name (plist-get props :short-name))) |
| 192 | ;; We can probably get a worthwhile amount in purespace. | ||
| 193 | (setq props | ||
| 194 | (mapcar (lambda (elt) | ||
| 195 | (if (stringp elt) | ||
| 196 | (purecopy elt) | ||
| 197 | elt)) | ||
| 198 | props)) | ||
| 192 | (setcdr (assq :plist attrs) props) | 199 | (setcdr (assq :plist attrs) props) |
| 193 | 200 | ||
| 194 | (apply 'define-charset-internal name (mapcar 'cdr attrs)))) | 201 | (apply 'define-charset-internal name (mapcar 'cdr attrs)))) |
| @@ -595,7 +602,8 @@ This attribute has a meaning only when `:coding-type' is `ccl'." | |||
| 595 | 602 | ||
| 596 | ;; Add :name and :docstring properties to PROPS. | 603 | ;; Add :name and :docstring properties to PROPS. |
| 597 | (setq props | 604 | (setq props |
| 598 | (cons :name (cons name (cons :docstring (cons docstring props))))) | 605 | (cons :name (cons name (cons :docstring (cons (purecopy docstring) |
| 606 | props))))) | ||
| 599 | (setcdr (assq :plist common-attrs) props) | 607 | (setcdr (assq :plist common-attrs) props) |
| 600 | 608 | ||
| 601 | (apply 'define-coding-system-internal | 609 | (apply 'define-coding-system-internal |