diff options
| author | Juanma Barranquero | 2002-11-05 10:42:25 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2002-11-05 10:42:25 +0000 |
| commit | 2e729bfaa60159556e81ceca36548f9206f2fe26 (patch) | |
| tree | aac19585bc9a70766bcac57011d22d97e28e9157 | |
| parent | e8bee05279989008eabfc7f64a4d01f2a68de8bf (diff) | |
| download | emacs-2e729bfaa60159556e81ceca36548f9206f2fe26.tar.gz emacs-2e729bfaa60159556e81ceca36548f9206f2fe26.zip | |
(coding-system-eol-type-mnemonic): Move from mule-util.el.
| -rw-r--r-- | lisp/international/mule.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 0719a2b2ec4..f325c60b80e 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -513,6 +513,18 @@ detected automatically. Nth element of the vector is the subsidiary | |||
| 513 | coding system whose eol-type is N." | 513 | coding system whose eol-type is N." |
| 514 | (get coding-system 'eol-type)) | 514 | (get coding-system 'eol-type)) |
| 515 | 515 | ||
| 516 | (defun coding-system-eol-type-mnemonic (coding-system) | ||
| 517 | "Return the string indicating end-of-line format of CODING-SYSTEM." | ||
| 518 | (let* ((eol-type (coding-system-eol-type coding-system)) | ||
| 519 | (val (cond ((vectorp eol-type) eol-mnemonic-undecided) | ||
| 520 | ((eq eol-type 0) eol-mnemonic-unix) | ||
| 521 | ((eq eol-type 1) eol-mnemonic-dos) | ||
| 522 | ((eq eol-type 2) eol-mnemonic-mac) | ||
| 523 | (t "-")))) | ||
| 524 | (if (stringp val) | ||
| 525 | val | ||
| 526 | (char-to-string val)))) | ||
| 527 | |||
| 516 | (defun coding-system-lessp (x y) | 528 | (defun coding-system-lessp (x y) |
| 517 | (cond ((eq x 'no-conversion) t) | 529 | (cond ((eq x 'no-conversion) t) |
| 518 | ((eq y 'no-conversion) nil) | 530 | ((eq y 'no-conversion) nil) |