diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/faces.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 5580cb56c5b..0641a1695e0 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -145,7 +145,8 @@ If FRAME is omitted or nil, use the selected frame." | |||
| 145 | (not (equal font (x-make-font-unitalic font))) | 145 | (not (equal font (x-make-font-unitalic font))) |
| 146 | (memq 'italic font)))) | 146 | (memq 'italic font)))) |
| 147 | 147 | ||
| 148 | (defun face-doc-string (face) | 148 | (defalias 'face-doc-string 'face-documentation) |
| 149 | (defun face-documentation (face) | ||
| 149 | "Get the documentation string for FACE." | 150 | "Get the documentation string for FACE." |
| 150 | (get face 'face-documentation)) | 151 | (get face 'face-documentation)) |
| 151 | 152 | ||
| @@ -275,7 +276,7 @@ in that frame; otherwise change each frame." | |||
| 275 | (cond ((eq italic-p nil) (make-face-unitalic face frame t)) | 276 | (cond ((eq italic-p nil) (make-face-unitalic face frame t)) |
| 276 | (t (make-face-italic face frame t)))) | 277 | (t (make-face-italic face frame t)))) |
| 277 | 278 | ||
| 278 | (defun set-face-doc-string (face string) | 279 | (defun set-face-documentation (face string) |
| 279 | "Set the documentation string for FACE to STRING." | 280 | "Set the documentation string for FACE to STRING." |
| 280 | (put face 'face-documentation string)) | 281 | (put face 'face-documentation string)) |
| 281 | 282 | ||
| @@ -1137,7 +1138,7 @@ selected frame." | |||
| 1137 | (princ " Stipple: ") (princ (or (face-stipple face) "none")) (terpri) | 1138 | (princ " Stipple: ") (princ (or (face-stipple face) "none")) (terpri) |
| 1138 | (terpri) | 1139 | (terpri) |
| 1139 | (princ "Documentation:") (terpri) | 1140 | (princ "Documentation:") (terpri) |
| 1140 | (let ((doc (face-doc-string face))) | 1141 | (let ((doc (face-documentation face))) |
| 1141 | (if doc | 1142 | (if doc |
| 1142 | (princ doc) | 1143 | (princ doc) |
| 1143 | (princ "not documented as a face."))))) | 1144 | (princ "not documented as a face."))))) |