diff options
| author | Kenichi Handa | 1999-02-18 13:11:50 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-02-18 13:11:50 +0000 |
| commit | cd529916976e7c04b967808e992f16ab76023348 (patch) | |
| tree | 3506c789644a43e0e086b3fbcaa02d9fd136abb7 | |
| parent | 80a7463d835a8a5daab81ae88fd84d25ee992534 (diff) | |
| download | emacs-cd529916976e7c04b967808e992f16ab76023348.tar.gz emacs-cd529916976e7c04b967808e992f16ab76023348.zip | |
(coding-system-list): Moved to mule.el.
| -rw-r--r-- | lisp/international/mule-util.el | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el index 1c71791e8eb..70872b636dc 100644 --- a/lisp/international/mule-util.el +++ b/lisp/international/mule-util.el | |||
| @@ -241,26 +241,6 @@ Optional 3rd argument NIL-FOR-TOO-LONG non-nil means return nil | |||
| 241 | (coding-system-get coding-system 'translation-table-for-encode)) | 241 | (coding-system-get coding-system 'translation-table-for-encode)) |
| 242 | 242 | ||
| 243 | ;;;###autoload | 243 | ;;;###autoload |
| 244 | (defun coding-system-list (&optional base-only) | ||
| 245 | "Return a list of all existing coding systems. | ||
| 246 | If optional arg BASE-ONLY is non-nil, only base coding systems are listed." | ||
| 247 | (let* ((codings (copy-sequence coding-system-list)) | ||
| 248 | (tail (cons nil codings))) | ||
| 249 | ;; Remove subsidiary coding systems (eol variants) and alias | ||
| 250 | ;; coding systems (if necessary). | ||
| 251 | (while (cdr tail) | ||
| 252 | (let* ((coding (car (cdr tail))) | ||
| 253 | (aliases (coding-system-get coding 'alias-coding-systems))) | ||
| 254 | (if (or | ||
| 255 | ;; CODING is an eol variant if not in ALIASES. | ||
| 256 | (not (memq coding aliases)) | ||
| 257 | ;; CODING is an alias if it is not car of ALIASES. | ||
| 258 | (and base-only (not (eq coding (car aliases))))) | ||
| 259 | (setcdr tail (cdr (cdr tail))) | ||
| 260 | (setq tail (cdr tail))))) | ||
| 261 | codings)) | ||
| 262 | |||
| 263 | ;;;###autoload | ||
| 264 | (defun coding-system-equal (coding-system-1 coding-system-2) | 244 | (defun coding-system-equal (coding-system-1 coding-system-2) |
| 265 | "Return t if and only if CODING-SYSTEM-1 and CODING-SYSTEM-2 are identical. | 245 | "Return t if and only if CODING-SYSTEM-1 and CODING-SYSTEM-2 are identical. |
| 266 | Two coding systems are identical if two symbols are equal | 246 | Two coding systems are identical if two symbols are equal |