diff options
| author | Andreas Schwab | 1999-02-08 09:52:43 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1999-02-08 09:52:43 +0000 |
| commit | 3c092276c7d4a618d6badcdc283a5a7fdebf97fb (patch) | |
| tree | d05d951f51fe2a090c1b7a94b7bf0709f180fa49 | |
| parent | 857ea15ca99ef305572ab55e2039ddfe6b573848 (diff) | |
| download | emacs-3c092276c7d4a618d6badcdc283a5a7fdebf97fb.tar.gz emacs-3c092276c7d4a618d6badcdc283a5a7fdebf97fb.zip | |
(coding-system-list): Don't sort
coding-system-list here.
| -rw-r--r-- | lisp/international/mule-util.el | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el index 7b6c1c2cd27..ae13446ca6b 100644 --- a/lisp/international/mule-util.el +++ b/lisp/international/mule-util.el | |||
| @@ -240,25 +240,11 @@ Optional 3rd argument NIL-FOR-TOO-LONG non-nil means return nil | |||
| 240 | "Return the value of CODING-SYSTEM's translation-table-for-encode property." | 240 | "Return the value of CODING-SYSTEM's translation-table-for-encode property." |
| 241 | (coding-system-get coding-system 'translation-table-for-encode)) | 241 | (coding-system-get coding-system 'translation-table-for-encode)) |
| 242 | 242 | ||
| 243 | (defun coding-system-lessp (x y) | ||
| 244 | (cond ((eq x 'no-conversion) t) | ||
| 245 | ((eq y 'no-conversion) nil) | ||
| 246 | ((eq x 'emacs-mule) t) | ||
| 247 | ((eq y 'emacs-mule) nil) | ||
| 248 | ((eq x 'undecided) t) | ||
| 249 | ((eq y 'undecided) nil) | ||
| 250 | (t (let ((c1 (coding-system-mnemonic x)) | ||
| 251 | (c2 (coding-system-mnemonic y))) | ||
| 252 | (or (< (downcase c1) (downcase c2)) | ||
| 253 | (and (not (> (downcase c1) (downcase c2))) | ||
| 254 | (< c1 c2))))))) | ||
| 255 | |||
| 256 | ;;;###autoload | 243 | ;;;###autoload |
| 257 | (defun coding-system-list (&optional base-only) | 244 | (defun coding-system-list (&optional base-only) |
| 258 | "Return a list of all existing coding systems. | 245 | "Return a list of all existing coding systems. |
| 259 | If optional arg BASE-ONLY is non-nil, only base coding systems are listed." | 246 | If optional arg BASE-ONLY is non-nil, only base coding systems are listed." |
| 260 | (let* ((codings (sort (copy-sequence coding-system-list) | 247 | (let* ((codings (copy-sequence coding-system-list)) |
| 261 | 'coding-system-lessp)) | ||
| 262 | (tail (cons nil codings))) | 248 | (tail (cons nil codings))) |
| 263 | ;; Remove subsidiary coding systems (eol variants) and alias | 249 | ;; Remove subsidiary coding systems (eol variants) and alias |
| 264 | ;; coding systems (if necessary). | 250 | ;; coding systems (if necessary). |