# HG changeset patch # User Kenichi Handa # Date 952057029 0 # Node ID cf535f97695d95a85a1482da9fcd4bf8e52e7347 # Parent e6198d7dd932cd18d0f66c4889c98cc844419f95 (list-character-sets): Make help-echo string by substitute-command-keys. (list-character-sets): Likewise. (sort-listed-character-sets): Call help-setup-xref. diff -r e6198d7dd932 -r cf535f97695d lisp/international/mule-diag.el --- a/lisp/international/mule-diag.el Fri Mar 03 04:16:42 2000 +0000 +++ b/lisp/international/mule-diag.el Fri Mar 03 04:17:09 2000 +0000 @@ -70,12 +70,13 @@ ;; Insert header. (insert (substitute-command-keys - (concat - "Use " - (if (display-mouse-p) "\\[help-follow-mouse] or ") - "\\[help-follow] on a title of column\nto sort by that title."))) + (concat "Use " + (if (display-mouse-p) "\\[help-follow-mouse] or ") + "\\[help-follow]:\n"))) + (insert " on a column title to sort by that title,") (indent-to 56) (insert "+----DIMENSION\n") + (insert " on a charset name to list characters.") (indent-to 56) (insert "| +--CHARS\n") (let ((columns '(("ID-NUM" . id) "\t" @@ -83,6 +84,10 @@ ("MULTIBYTE-FORM" . id) "\t" ("D CH FINAL-CHAR" . iso-spec))) (help-highlight-face 'region) + (help-echo + (substitute-command-keys + (concat (if (display-mouse-p) "\\[help-follow-mouse], ") + "\\[help-follow]: sort on this column"))) pos) (while columns (if (stringp (car columns)) @@ -91,7 +96,7 @@ (search-backward (car (car columns))) (help-xref-button 0 'sort-listed-character-sets (cdr (car columns)) - "mouse-2, C-c: sort on this column") + help-echo) (goto-char (point-max))) (setq columns (cdr columns))) (insert "\n")) @@ -112,8 +117,8 @@ (re-search-forward "[0-9][0-9][0-9]") (beginning-of-line) (delete-region (point) (point-max)) - (list-character-sets-1 sort-key))))) - + (list-character-sets-1 sort-key) + (help-setup-xref (list #'list-character-sets nil) t))))) ;; Insert a list of character sets sorted by SORT-KEY. SORT-KEY ;; should be one of `id', `name', and `iso-spec'. If SORT-KEY is nil, @@ -123,6 +128,10 @@ (or sort-key (setq sort-key 'id)) (let ((tail (charset-list)) + (help-echo + (substitute-command-keys + (concat (if (display-mouse-p) "\\[help-follow-mouse], ") + "\\[help-follow]: show table of this character set"))) charset-info-list elt charset info sort-func) (while tail (setq charset (car tail) tail (cdr tail) @@ -177,8 +186,7 @@ (indent-to 8) (insert (symbol-name (nth 1 elt))) ; CHARSET-NAME (search-backward (symbol-name (nth 1 elt))) - (help-xref-button 0 'list-charset-chars (nth 1 elt) - "mouse-2, RET: show table of this character set") + (help-xref-button 0 'list-charset-chars (nth 1 elt) help-echo) (goto-char (point-max)) (insert "\t") (indent-to 40)