diff options
| author | Juri Linkov | 2004-04-03 04:19:53 +0000 |
|---|---|---|
| committer | Juri Linkov | 2004-04-03 04:19:53 +0000 |
| commit | 4eb5945040b3b61f32cdb2ec2d23c3ecc85a405f (patch) | |
| tree | 191f74701cf2fed760cefdbcc4e630b0c76909c0 | |
| parent | f16bcc9ae4098739e31a84452d37103d4ac2151c (diff) | |
| download | emacs-4eb5945040b3b61f32cdb2ec2d23c3ecc85a405f.tar.gz emacs-4eb5945040b3b61f32cdb2ec2d23c3ecc85a405f.zip | |
(describe-property-list): Add `font-lock-face'.
| -rw-r--r-- | lisp/descr-text.el | 9 |
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. |
| 101 | PROPERTIES should be a list of overlay or text properties. | 101 | PROPERTIES should be a list of overlay or text properties. |
| 102 | The `category' and `face' properties are made into widget buttons | 102 | The `category', `face' and `font-lock-face' properties are made |
| 103 | that call `describe-text-category' or `describe-face' when pushed." | 103 | into 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)) |