summaryrefslogtreecommitdiff
path: root/lisp/descr-text.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2005-12-28 01:55:16 +0000
committerJuri Linkov <juri@jurta.org>2005-12-28 01:55:16 +0000
commit2fd54bf88cfdb2e87e5644f42f7448c88ca01cda (patch)
tree29c6d36870da93609c36d5a220b54ad6fc235515 /lisp/descr-text.el
parent0d9fb2890685781f6dcff693f69127dfc15bf05c (diff)
downloademacs-2fd54bf88cfdb2e87e5644f42f7448c88ca01cda.tar.gz
(describe-text-sexp): Use square brackets for
button [Show] to distinguish it from the property value `show'. (describe-property-list): Use `insert-text-button' with `help-face' type instead of putting face in quotes, because button is not created automatically for a list of faces. (describe-text-properties-1): Put button-type value in quotes to distinguish from plain text "button". (describe-char): Display code point values in hex. Don't use `symbol-name' for `current-input-method' because it is a string. Use `insert-text-button' with `help-face' type instead of putting hardcoded face in quotes, because button is not created automatically.
Diffstat (limited to 'lisp/descr-text.el')
-rw-r--r--lisp/descr-text.el22
1 files changed, 13 insertions, 9 deletions
diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index 705d582500e..550268ac1d9 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -60,7 +60,7 @@
(t t))
(insert pp)
(insert-text-button
- "show" 'action `(lambda (&rest ignore)
+ "[Show]" 'action `(lambda (&rest ignore)
(with-output-to-temp-buffer
"*Pp Eval Output*"
(princ ',pp)))
@@ -90,7 +90,9 @@ into help buttons that call `describe-text-category' or
(describe-text-category ',value))
'help-echo "mouse-2, RET: describe this category"))
((memq key '(face font-lock-face mouse-face))
- (insert (concat "`" (format "%S" value) "'")))
+ (insert-text-button
+ (format "%S" value)
+ 'type 'help-face 'help-args (list value)))
((widgetp value)
(describe-text-widget value))
(t
@@ -161,8 +163,8 @@ otherwise."
;; Buttons
(when (and button (not (widgetp wid-button)))
(newline)
- (insert "Here is a " (format "%S" button-type)
- " button labeled `" button-label "'.\n\n"))
+ (insert "Here is a `" (format "%S" button-type)
+ "' button labeled `" button-label "'.\n\n"))
;; Overlays
(when overlays
(newline)
@@ -462,8 +464,8 @@ as well as widgets, buttons, overlays, and text properties."
,(let ((split (split-char char)))
`(insert-text-button
,(if (= (charset-dimension charset) 1)
- (format "%d" (nth 1 split))
- (format "%d %d" (nth 1 split)
+ (format "#x%02X" (nth 1 split))
+ (format "#x%02X #x%02X" (nth 1 split)
(nth 2 split)))
'action (lambda (&rest ignore)
(list-charset-chars ',charset)
@@ -505,7 +507,7 @@ as well as widgets, buttons, overlays, and text properties."
key-list " or ")
"with"
`(insert-text-button
- ,(symbol-name current-input-method)
+ ,current-input-method
'type 'help-input-method
'help-args '(,current-input-method))))))
("buffer code"
@@ -576,7 +578,9 @@ as well as widgets, buttons, overlays, and text properties."
((and (< char 32) (not (memq char '(9 10))))
'escape-glyph)))))
(if face (list (list "hardcoded face"
- (concat "`" (symbol-name face) "'")))))
+ `(insert-text-button
+ ,(symbol-name face)
+ 'type 'help-face 'help-args '(,face))))))
,@(let ((unicodedata (and unicode
(describe-char-unicode-data unicode))))
(if unicodedata
@@ -687,7 +691,7 @@ as well as widgets, buttons, overlays, and text properties."
"the meaning of the rule.\n"))
(if text-props-desc (insert text-props-desc))
- (setq help-xref-stack-item (list 'help-insert-string (buffer-string)))
+ (setq help-xref-stack-item (list 'help-insert-string (buffer-string)))
(toggle-read-only 1)
(print-help-return-message)))))