aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2004-04-03 04:19:53 +0000
committerJuri Linkov2004-04-03 04:19:53 +0000
commit4eb5945040b3b61f32cdb2ec2d23c3ecc85a405f (patch)
tree191f74701cf2fed760cefdbcc4e630b0c76909c0
parentf16bcc9ae4098739e31a84452d37103d4ac2151c (diff)
downloademacs-4eb5945040b3b61f32cdb2ec2d23c3ecc85a405f.tar.gz
emacs-4eb5945040b3b61f32cdb2ec2d23c3ecc85a405f.zip
(describe-property-list): Add `font-lock-face'.
-rw-r--r--lisp/descr-text.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index abc0d588a14..30ef3dcf05e 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -99,8 +99,9 @@ if that value is non-nil."
99(defun describe-property-list (properties) 99(defun describe-property-list (properties)
100 "Insert a description of PROPERTIES in the current buffer. 100 "Insert a description of PROPERTIES in the current buffer.
101PROPERTIES should be a list of overlay or text properties. 101PROPERTIES should be a list of overlay or text properties.
102The `category' and `face' properties are made into widget buttons 102The `category', `face' and `font-lock-face' properties are made
103that call `describe-text-category' or `describe-face' when pushed." 103into widget buttons that call `describe-text-category' or
104`describe-face' when pushed."
104 ;; Sort the properties by the size of their value. 105 ;; Sort the properties by the size of their value.
105 (dolist (elt (sort (let ((ret nil) 106 (dolist (elt (sort (let ((ret nil)
106 (key nil) 107 (key nil)
@@ -110,7 +111,7 @@ that call `describe-text-category' or `describe-face' when pushed."
110 (setq key (pop properties) 111 (setq key (pop properties)
111 val (pop properties) 112 val (pop properties)
112 len 0) 113 len 0)
113 (unless (or (memq key '(category face)) 114 (unless (or (memq key '(category face font-lock-face))
114 (widgetp val)) 115 (widgetp val))
115 (setq val (pp-to-string val) 116 (setq val (pp-to-string val)
116 len (length val))) 117 len (length val)))
@@ -128,7 +129,7 @@ that call `describe-text-category' or `describe-face' when pushed."
128 :notify `(lambda (&rest ignore) 129 :notify `(lambda (&rest ignore)
129 (describe-text-category ',value)) 130 (describe-text-category ',value))
130 (format "%S" value))) 131 (format "%S" value)))
131 ((eq key 'face) 132 ((memq key '(face font-lock-face))
132 (widget-create 'link 133 (widget-create 'link
133 :notify `(lambda (&rest ignore) 134 :notify `(lambda (&rest ignore)
134 (describe-face ',value)) 135 (describe-face ',value))