Mercurial > emacs
comparison lisp/international/mule-diag.el @ 27953:8b485e43ac51
(list-character-sets): Call
help-setup-xref. Add help-echo to xrefs.
(list-character-sets-1): Add help-echo to xrefs.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 02 Mar 2000 10:32:17 +0000 |
parents | ed26ed5b0afc |
children | cf535f97695d |
comparison
equal
deleted
inserted
replaced
27952:3f3529de0422 | 27953:8b485e43ac51 |
---|---|
1 ;;; mule-diag.el --- Show diagnosis of multilingual environment (Mule) | 1 ;;; mule-diag.el --- Show diagnosis of multilingual environment (Mule) |
2 | 2 |
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | 3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. |
4 ;; Licensed to the Free Software Foundation. | 4 ;; Licensed to the Free Software Foundation. |
5 | 5 |
6 ;; Keywords: multilingual, charset, coding system, fontset, diagnosis | 6 ;; Keywords: multilingual, charset, coding system, fontset, diagnosis, i18n |
7 | 7 |
8 ;; This file is part of GNU Emacs. | 8 ;; This file is part of GNU Emacs. |
9 | 9 |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | 10 ;; GNU Emacs is free software; you can redistribute it and/or modify |
11 ;; it under the terms of the GNU General Public License as published by | 11 ;; it under the terms of the GNU General Public License as published by |
88 (if (stringp (car columns)) | 88 (if (stringp (car columns)) |
89 (insert (car columns)) | 89 (insert (car columns)) |
90 (insert (car (car columns))) | 90 (insert (car (car columns))) |
91 (search-backward (car (car columns))) | 91 (search-backward (car (car columns))) |
92 (help-xref-button 0 'sort-listed-character-sets | 92 (help-xref-button 0 'sort-listed-character-sets |
93 (cdr (car columns))) | 93 (cdr (car columns)) |
94 "mouse-2, C-c: sort on this column") | |
94 (goto-char (point-max))) | 95 (goto-char (point-max))) |
95 (setq columns (cdr columns))) | 96 (setq columns (cdr columns))) |
96 (insert "\n")) | 97 (insert "\n")) |
97 (insert "------\t------------\t\t\t--------------\t- -- ----------\n") | 98 (insert "------\t------------\t\t\t--------------\t- -- ----------\n") |
98 | 99 |
99 ;; Insert body sorted by charset IDs. | 100 ;; Insert body sorted by charset IDs. |
100 (list-character-sets-1 'id))))) | 101 (list-character-sets-1 'id) |
102 (help-setup-xref (list #'list-character-sets arg) (interactive-p)))))) | |
101 | 103 |
102 | 104 |
103 ;; Sort character set list by SORT-KEY. | 105 ;; Sort character set list by SORT-KEY. |
104 | 106 |
105 (defun sort-listed-character-sets (sort-key) | 107 (defun sort-listed-character-sets (sort-key) |
173 charset-info-list (cdr charset-info-list)) | 175 charset-info-list (cdr charset-info-list)) |
174 (insert (format "%03d(%02X)" (car elt) (car elt))) ; ID-NUM | 176 (insert (format "%03d(%02X)" (car elt) (car elt))) ; ID-NUM |
175 (indent-to 8) | 177 (indent-to 8) |
176 (insert (symbol-name (nth 1 elt))) ; CHARSET-NAME | 178 (insert (symbol-name (nth 1 elt))) ; CHARSET-NAME |
177 (search-backward (symbol-name (nth 1 elt))) | 179 (search-backward (symbol-name (nth 1 elt))) |
178 (help-xref-button 0 'list-charset-chars (nth 1 elt)) | 180 (help-xref-button 0 'list-charset-chars (nth 1 elt) |
181 "mouse-2, RET: show table of this character set") | |
179 (goto-char (point-max)) | 182 (goto-char (point-max)) |
180 (insert "\t") | 183 (insert "\t") |
181 (indent-to 40) | 184 (indent-to 40) |
182 (insert (nth 2 elt)) ; MULTIBYTE-FORM | 185 (insert (nth 2 elt)) ; MULTIBYTE-FORM |
183 (indent-to 56) | 186 (indent-to 56) |