diff options
| -rw-r--r-- | lisp/international/mule.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index fc24ac0c525..afdfa0af3b1 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -1091,13 +1091,14 @@ a value of `safe-charsets' in PLIST." | |||
| 1091 | (defun define-coding-system-alias (alias coding-system) | 1091 | (defun define-coding-system-alias (alias coding-system) |
| 1092 | "Define ALIAS as an alias for coding system CODING-SYSTEM." | 1092 | "Define ALIAS as an alias for coding system CODING-SYSTEM." |
| 1093 | (put alias 'coding-system (coding-system-spec coding-system)) | 1093 | (put alias 'coding-system (coding-system-spec coding-system)) |
| 1094 | (nconc (coding-system-get alias 'alias-coding-systems) (list alias)) | ||
| 1095 | (add-to-coding-system-list alias) | 1094 | (add-to-coding-system-list alias) |
| 1096 | (setq coding-system-alist (cons (list (symbol-name alias)) | 1095 | (setq coding-system-alist (cons (list (symbol-name alias)) |
| 1097 | coding-system-alist)) | 1096 | coding-system-alist)) |
| 1098 | (let ((eol-type (coding-system-eol-type coding-system))) | 1097 | (let ((eol-type (coding-system-eol-type coding-system))) |
| 1099 | (if (vectorp eol-type) | 1098 | (if (vectorp eol-type) |
| 1100 | (put alias 'eol-type (make-subsidiary-coding-system alias)) | 1099 | (progn |
| 1100 | (nconc (coding-system-get alias 'alias-coding-systems) (list alias)) | ||
| 1101 | (put alias 'eol-type (make-subsidiary-coding-system alias))) | ||
| 1101 | (put alias 'eol-type eol-type)))) | 1102 | (put alias 'eol-type eol-type)))) |
| 1102 | 1103 | ||
| 1103 | (defun set-buffer-file-coding-system (coding-system &optional force) | 1104 | (defun set-buffer-file-coding-system (coding-system &optional force) |