diff options
| author | Kenichi Handa | 2003-04-09 00:32:23 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-04-09 00:32:23 +0000 |
| commit | 60b898c674e57707feb2f1edab0b92fc5008a7e6 (patch) | |
| tree | aaa1b2e6ed92c3d94c5e5c5445b0e29ae02a3ccd | |
| parent | 7e1907830e5204b5b8f01fa046257d41a5c1f95f (diff) | |
| download | emacs-60b898c674e57707feb2f1edab0b92fc5008a7e6.tar.gz emacs-60b898c674e57707feb2f1edab0b92fc5008a7e6.zip | |
(print-coding-system-briefly): If
DOC-STRING is `tightly', print the doc-string tightly.
(list-coding-systems-1): Call print-coding-system-briefly with
the arg DOC-STRING `tightly'.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/international/mule-diag.el | 32 |
2 files changed, 27 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d3a2dc2146a..f0f8092aafd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2003-04-09 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * international/mule-diag.el (print-coding-system-briefly): If | ||
| 4 | DOC-STRING is `tightly', print the doc-string tightly. | ||
| 5 | (list-coding-systems-1): Sort coding systems. Call | ||
| 6 | print-coding-system-briefly with the arg DOC-STRING `tightly'. | ||
| 7 | |||
| 1 | 2003-04-08 Kai Gro,A_(Bjohann <kai.grossjohann@gmx.net> | 8 | 2003-04-08 Kai Gro,A_(Bjohann <kai.grossjohann@gmx.net> |
| 2 | 9 | ||
| 3 | * net/tramp.el: Version 2.0.33 released. | 10 | * net/tramp.el: Version 2.0.33 released. |
| @@ -10,7 +17,7 @@ | |||
| 10 | Do not disable file name handlers for `file-exists-p' and | 17 | Do not disable file name handlers for `file-exists-p' and |
| 11 | `file-directory-p'. | 18 | `file-directory-p'. |
| 12 | 19 | ||
| 13 | 2003-04-08 Kenichi Handa <handa@etlken2> | 20 | 2003-04-08 Kenichi Handa <handa@m17n.org> |
| 14 | 21 | ||
| 15 | * international/mule-conf.el: Register ?\225 in | 22 | * international/mule-conf.el: Register ?\225 in |
| 16 | latin-extra-code-table. | 23 | latin-extra-code-table. |
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index de10d4c310f..930e98f08ba 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -760,6 +760,10 @@ in place of `..': | |||
| 760 | ))) | 760 | ))) |
| 761 | 761 | ||
| 762 | ;; Print symbol name and mnemonic letter of CODING-SYSTEM with `princ'. | 762 | ;; Print symbol name and mnemonic letter of CODING-SYSTEM with `princ'. |
| 763 | ;; If DOC-STRING is non-nil, print also the docstring of CODING-SYSTEM. | ||
| 764 | ;; If DOC-STRING is `tightly', don't print an empty line before the | ||
| 765 | ;; docstring, and print only the first line of the docstring. | ||
| 766 | |||
| 763 | (defun print-coding-system-briefly (coding-system &optional doc-string) | 767 | (defun print-coding-system-briefly (coding-system &optional doc-string) |
| 764 | (if (not coding-system) | 768 | (if (not coding-system) |
| 765 | (princ "nil\n") | 769 | (princ "nil\n") |
| @@ -780,10 +784,16 @@ in place of `..': | |||
| 780 | (not (eq coding-system (aref base-eol-type eol-type)))) | 784 | (not (eq coding-system (aref base-eol-type eol-type)))) |
| 781 | (princ (format " (alias of %s)" | 785 | (princ (format " (alias of %s)" |
| 782 | (aref base-eol-type eol-type)))))))) | 786 | (aref base-eol-type eol-type)))))))) |
| 783 | (princ "\n\n") | 787 | (princ "\n") |
| 784 | (if (and doc-string | 788 | (or (eq doc-string 'tightly) |
| 785 | (setq doc-string (coding-system-doc-string coding-system))) | 789 | (princ "\n")) |
| 786 | (princ (format "%s\n" doc-string))))) | 790 | (if doc-string |
| 791 | (let ((doc (or (coding-system-doc-string coding-system) ""))) | ||
| 792 | (when (eq doc-string 'tightly) | ||
| 793 | (if (string-match "\n" doc) | ||
| 794 | (setq doc (substring doc 0 (match-beginning 0)))) | ||
| 795 | (setq doc (concat " " doc))) | ||
| 796 | (princ (format "%s\n" doc)))))) | ||
| 787 | 797 | ||
| 788 | ;;;###autoload | 798 | ;;;###autoload |
| 789 | (defun describe-current-coding-system () | 799 | (defun describe-current-coding-system () |
| @@ -976,7 +986,7 @@ but still contains full information about each coding system." | |||
| 976 | ############################################### | 986 | ############################################### |
| 977 | # List of coding systems in the following format: | 987 | # List of coding systems in the following format: |
| 978 | # MNEMONIC-LETTER -- CODING-SYSTEM-NAME | 988 | # MNEMONIC-LETTER -- CODING-SYSTEM-NAME |
| 979 | # DOC-STRING | 989 | # DOC-STRING |
| 980 | ") | 990 | ") |
| 981 | (princ "\ | 991 | (princ "\ |
| 982 | ######################### | 992 | ######################### |
| @@ -1003,14 +1013,10 @@ but still contains full information about each coding system." | |||
| 1003 | ## POST-READ-CONVERSION, PRE-WRITE-CONVERSION = function name to be called | 1013 | ## POST-READ-CONVERSION, PRE-WRITE-CONVERSION = function name to be called |
| 1004 | ## | 1014 | ## |
| 1005 | ")) | 1015 | ")) |
| 1006 | (let ((bases (coding-system-list 'base-only)) | 1016 | (dolist (coding-system (sort-coding-systems (coding-system-list 'base-only))) |
| 1007 | coding-system) | 1017 | (if (null arg) |
| 1008 | (while bases | 1018 | (print-coding-system-briefly coding-system 'tightly) |
| 1009 | (setq coding-system (car bases)) | 1019 | (print-coding-system coding-system)))) |
| 1010 | (if (null arg) | ||
| 1011 | (print-coding-system-briefly coding-system 'doc-string) | ||
| 1012 | (print-coding-system coding-system)) | ||
| 1013 | (setq bases (cdr bases))))) | ||
| 1014 | 1020 | ||
| 1015 | ;;;###autoload | 1021 | ;;;###autoload |
| 1016 | (defun list-coding-categories () | 1022 | (defun list-coding-categories () |