diff options
| author | Kenichi Handa | 2002-07-17 08:44:58 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-07-17 08:44:58 +0000 |
| commit | 708fc4655ea528fc410f9eb0fb7c52c9aa279d0b (patch) | |
| tree | 1100a901a24301776e46cdea62bcb0db45f31c48 | |
| parent | 1a55d509c3fea3c8eb4633d3069e8dfdac3a1a9e (diff) | |
| download | emacs-708fc4655ea528fc410f9eb0fb7c52c9aa279d0b.tar.gz emacs-708fc4655ea528fc410f9eb0fb7c52c9aa279d0b.zip | |
(define-coding-system-alias): Don't append ALIAS in the property
`alias-coding-systems' if ALIAS's eol-type is not auto-detection.
| -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) |