diff options
| author | Kenichi Handa | 2003-03-18 04:25:02 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-03-18 04:25:02 +0000 |
| commit | fcaabbd5c2f193d26919ddc176154e872a7555df (patch) | |
| tree | 274265ebedb715e6ef2e3bcf1c4caea14ccc7bd9 | |
| parent | 6053d86a69a1cb1810cb417181236fee0f228d37 (diff) | |
| download | emacs-fcaabbd5c2f193d26919ddc176154e872a7555df.tar.gz emacs-fcaabbd5c2f193d26919ddc176154e872a7555df.zip | |
(cp-fix-safe-chars): Make it obsolete.
(cp-make-coding-system): Don't call cp-fix-safe-chars.
| -rw-r--r-- | lisp/international/code-pages.el | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/lisp/international/code-pages.el b/lisp/international/code-pages.el index 21f98ca614a..af1df739764 100644 --- a/lisp/international/code-pages.el +++ b/lisp/international/code-pages.el | |||
| @@ -95,27 +95,16 @@ See `make-coding-system'." | |||
| 95 | (nreverse pairs))) | 95 | (nreverse pairs))) |
| 96 | 96 | ||
| 97 | (defun cp-fix-safe-chars (cs) | 97 | (defun cp-fix-safe-chars (cs) |
| 98 | "Remove `char-coding-system-table' entries from previous definition of CS. | 98 | "This is an obsolete function. |
| 99 | CS is a base coding system or alias." | 99 | It exists just for backward compatibility, and it does nothing.") |
| 100 | (when (coding-system-p cs) | 100 | (make-obsolete 'cp-fix-safe-chars |
| 101 | (let ((chars (coding-system-get cs 'safe-chars))) | 101 | "Unnecessary function. Calling it has no effect." |
| 102 | (map-char-table | 102 | "21.3") |
| 103 | (lambda (k v) | ||
| 104 | (if (and v (not (eq v t))) | ||
| 105 | (aset char-coding-system-table | ||
| 106 | k | ||
| 107 | (remq cs (aref char-coding-system-table k))))) | ||
| 108 | chars)))) | ||
| 109 | 103 | ||
| 110 | ;; Fix things that have been, or might be, done by codepage.el. | 104 | ;; Fix things that have been, or might be, done by codepage.el. |
| 111 | (eval-after-load "codepage" | 105 | (eval-after-load "codepage" |
| 112 | '(progn | 106 | '(progn |
| 113 | 107 | ||
| 114 | (dolist (cs '(cp857 cp861 cp1253 cp852 cp866 cp437 cp855 cp869 cp775 | ||
| 115 | cp862 cp864 cp1250 cp863 cp865 cp1251 cp737 cp1257 cp850 | ||
| 116 | cp860 cp851 720)) | ||
| 117 | (cp-fix-safe-chars cs)) | ||
| 118 | |||
| 119 | ;; Semi-dummy version for the stuff in codepage.el which we don't | 108 | ;; Semi-dummy version for the stuff in codepage.el which we don't |
| 120 | ;; define here. (Used by mule-diag.) | 109 | ;; define here. (Used by mule-diag.) |
| 121 | (defun cp-supported-codepages () | 110 | (defun cp-supported-codepages () |
| @@ -198,7 +187,6 @@ corresponding args of `make-coding-system'. If MNEMONIC isn't given, | |||
| 198 | (define-translation-table ',decoder translation-table) | 187 | (define-translation-table ',decoder translation-table) |
| 199 | (define-translation-table ',encoder | 188 | (define-translation-table ',encoder |
| 200 | (char-table-extra-slot translation-table 0)) | 189 | (char-table-extra-slot translation-table 0)) |
| 201 | (cp-fix-safe-chars ',name) | ||
| 202 | (make-coding-system | 190 | (make-coding-system |
| 203 | ',name 4 ,(or mnemonic ?*) | 191 | ',name 4 ,(or mnemonic ?*) |
| 204 | (or ,doc-string (format "%s encoding" ',name)) | 192 | (or ,doc-string (format "%s encoding" ',name)) |