aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2000-03-03 04:17:09 +0000
committerKenichi Handa2000-03-03 04:17:09 +0000
commite5b99cff112763293a7593f32381c36ec1c96fef (patch)
treeea52ce54a376173873eb42d3012560739b8814ef
parent0d56cdff96264e065c56e8794869c8d8ec52c4c8 (diff)
downloademacs-e5b99cff112763293a7593f32381c36ec1c96fef.tar.gz
emacs-e5b99cff112763293a7593f32381c36ec1c96fef.zip
(list-character-sets): Make help-echo
string by substitute-command-keys. (list-character-sets): Likewise. (sort-listed-character-sets): Call help-setup-xref.
-rw-r--r--lisp/international/mule-diag.el26
1 files changed, 17 insertions, 9 deletions
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el
index b91b06b1bf8..c4280c7928c 100644
--- a/lisp/international/mule-diag.el
+++ b/lisp/international/mule-diag.el
@@ -70,12 +70,13 @@ but still shows the full information."
70 ;; Insert header. 70 ;; Insert header.
71 (insert 71 (insert
72 (substitute-command-keys 72 (substitute-command-keys
73 (concat 73 (concat "Use "
74 "Use " 74 (if (display-mouse-p) "\\[help-follow-mouse] or ")
75 (if (display-mouse-p) "\\[help-follow-mouse] or ") 75 "\\[help-follow]:\n")))
76 "\\[help-follow] on a title of column\nto sort by that title."))) 76 (insert " on a column title to sort by that title,")
77 (indent-to 56) 77 (indent-to 56)
78 (insert "+----DIMENSION\n") 78 (insert "+----DIMENSION\n")
79 (insert " on a charset name to list characters.")
79 (indent-to 56) 80 (indent-to 56)
80 (insert "| +--CHARS\n") 81 (insert "| +--CHARS\n")
81 (let ((columns '(("ID-NUM" . id) "\t" 82 (let ((columns '(("ID-NUM" . id) "\t"
@@ -83,6 +84,10 @@ but still shows the full information."
83 ("MULTIBYTE-FORM" . id) "\t" 84 ("MULTIBYTE-FORM" . id) "\t"
84 ("D CH FINAL-CHAR" . iso-spec))) 85 ("D CH FINAL-CHAR" . iso-spec)))
85 (help-highlight-face 'region) 86 (help-highlight-face 'region)
87 (help-echo
88 (substitute-command-keys
89 (concat (if (display-mouse-p) "\\[help-follow-mouse], ")
90 "\\[help-follow]: sort on this column")))
86 pos) 91 pos)
87 (while columns 92 (while columns
88 (if (stringp (car columns)) 93 (if (stringp (car columns))
@@ -91,7 +96,7 @@ but still shows the full information."
91 (search-backward (car (car columns))) 96 (search-backward (car (car columns)))
92 (help-xref-button 0 'sort-listed-character-sets 97 (help-xref-button 0 'sort-listed-character-sets
93 (cdr (car columns)) 98 (cdr (car columns))
94 "mouse-2, C-c: sort on this column") 99 help-echo)
95 (goto-char (point-max))) 100 (goto-char (point-max)))
96 (setq columns (cdr columns))) 101 (setq columns (cdr columns)))
97 (insert "\n")) 102 (insert "\n"))
@@ -112,8 +117,8 @@ but still shows the full information."
112 (re-search-forward "[0-9][0-9][0-9]") 117 (re-search-forward "[0-9][0-9][0-9]")
113 (beginning-of-line) 118 (beginning-of-line)
114 (delete-region (point) (point-max)) 119 (delete-region (point) (point-max))
115 (list-character-sets-1 sort-key))))) 120 (list-character-sets-1 sort-key)
116 121 (help-setup-xref (list #'list-character-sets nil) t)))))
117 122
118;; Insert a list of character sets sorted by SORT-KEY. SORT-KEY 123;; Insert a list of character sets sorted by SORT-KEY. SORT-KEY
119;; should be one of `id', `name', and `iso-spec'. If SORT-KEY is nil, 124;; should be one of `id', `name', and `iso-spec'. If SORT-KEY is nil,
@@ -123,6 +128,10 @@ but still shows the full information."
123 (or sort-key 128 (or sort-key
124 (setq sort-key 'id)) 129 (setq sort-key 'id))
125 (let ((tail (charset-list)) 130 (let ((tail (charset-list))
131 (help-echo
132 (substitute-command-keys
133 (concat (if (display-mouse-p) "\\[help-follow-mouse], ")
134 "\\[help-follow]: show table of this character set")))
126 charset-info-list elt charset info sort-func) 135 charset-info-list elt charset info sort-func)
127 (while tail 136 (while tail
128 (setq charset (car tail) tail (cdr tail) 137 (setq charset (car tail) tail (cdr tail)
@@ -177,8 +186,7 @@ but still shows the full information."
177 (indent-to 8) 186 (indent-to 8)
178 (insert (symbol-name (nth 1 elt))) ; CHARSET-NAME 187 (insert (symbol-name (nth 1 elt))) ; CHARSET-NAME
179 (search-backward (symbol-name (nth 1 elt))) 188 (search-backward (symbol-name (nth 1 elt)))
180 (help-xref-button 0 'list-charset-chars (nth 1 elt) 189 (help-xref-button 0 'list-charset-chars (nth 1 elt) help-echo)
181 "mouse-2, RET: show table of this character set")
182 (goto-char (point-max)) 190 (goto-char (point-max))
183 (insert "\t") 191 (insert "\t")
184 (indent-to 40) 192 (indent-to 40)