diff lisp/faces.el @ 17560:1f4d7f741932

(describe-face): Add documentation.
author Richard M. Stallman <rms@gnu.org>
date Fri, 25 Apr 1997 18:11:33 +0000
parents 209c61e51bd0
children 2687f3d7c191
line wrap: on
line diff
--- a/lisp/faces.el	Fri Apr 25 18:10:43 1997 +0000
+++ b/lisp/faces.el	Fri Apr 25 18:11:33 1997 +0000
@@ -1072,7 +1072,13 @@
     (princ "Background: ") (princ (face-background face)) (terpri)
     (princ "      Font: ") (princ (face-font face)) (terpri)
     (princ "Underlined: ") (princ (if (face-underline-p face) "yes" "no")) (terpri)
-    (princ "   Stipple: ") (princ (or (face-stipple face) "none"))))
+    (princ "   Stipple: ") (princ (or (face-stipple face) "none")) (terpri)
+    (terpri)
+    (princ "Documentation:") (terpri)
+    (let ((doc (face-doc-string face)))
+      (if doc
+	  (princ doc)
+	(princ "not documented as a face.")))))
 
 ;;; Make the standard faces.
 ;;; The C code knows the default and modeline faces as faces 0 and 1,