From 95125512c27626bb3a881ab692a382dbea26d5a5 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 29 Oct 2001 18:40:23 +0000 Subject: [PATCH] (read-face-name): Doc fix. (make-face-bold, make-face-unbold, make-face-italic) (make-face-unitalic, make-face-bold-italic, invert-face): Remove trailing blank from the prompt passed to read-face-name. --- lisp/ChangeLog | 4 ++++ lisp/faces.el | 13 +++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4a888ca75de..5c9b4ac6e98 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -3,6 +3,10 @@ * faces.el (invert-face): Check for 'unspecified, not for nil, when testing whether face colors are not specified. From David.Kastrup@t-online.de (David Kastrup). + (read-face-name): Doc fix. + (make-face-bold, make-face-unbold, make-face-italic) + (make-face-unitalic, make-face-bold-italic, invert-face): Remove + trailing blank from the prompt passed to read-face-name. 2001-10-29 Sam Steingold diff --git a/lisp/faces.el b/lisp/faces.el index ac9b6645ae0..d60d30a46f6 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -679,7 +679,7 @@ like an underlying face would be, with higher priority than underlying faces." FRAME nil or not specified means change face on all frames. Argument NOERROR is ignored and retained for compatibility. Use `set-face-attribute' for finer control of the font weight." - (interactive (list (read-face-name "Make which face bold "))) + (interactive (list (read-face-name "Make which face bold"))) (set-face-attribute face frame :weight 'bold)) @@ -687,7 +687,7 @@ Use `set-face-attribute' for finer control of the font weight." "Make the font of FACE be non-bold, if possible. FRAME nil or not specified means change face on all frames. Argument NOERROR is ignored and retained for compatibility." - (interactive (list (read-face-name "Make which face non-bold "))) + (interactive (list (read-face-name "Make which face non-bold"))) (set-face-attribute face frame :weight 'normal)) @@ -696,7 +696,7 @@ Argument NOERROR is ignored and retained for compatibility." FRAME nil or not specified means change face on all frames. Argument NOERROR is ignored and retained for compatibility. Use `set-face-attribute' for finer control of the font slant." - (interactive (list (read-face-name "Make which face italic "))) + (interactive (list (read-face-name "Make which face italic"))) (set-face-attribute face frame :slant 'italic)) @@ -704,7 +704,7 @@ Use `set-face-attribute' for finer control of the font slant." "Make the font of FACE be non-italic, if possible. FRAME nil or not specified means change face on all frames. Argument NOERROR is ignored and retained for compatibility." - (interactive (list (read-face-name "Make which face non-italic "))) + (interactive (list (read-face-name "Make which face non-italic"))) (set-face-attribute face frame :slant 'normal)) @@ -713,7 +713,7 @@ Argument NOERROR is ignored and retained for compatibility." FRAME nil or not specified means change face on all frames. Argument NOERROR is ignored and retained for compatibility. Use `set-face-attribute' for finer control of font weight and slant." - (interactive (list (read-face-name "Make which face bold-italic: "))) + (interactive (list (read-face-name "Make which face bold-italic"))) (set-face-attribute face frame :weight 'bold :slant 'italic)) @@ -828,7 +828,7 @@ If FRAME is omitted or nil, it means change face on all frames. If FACE specifies neither foreground nor background color, set its foreground and background to the background and foreground of the default face. Value is FACE." - (interactive (list (read-face-name "Invert face "))) + (interactive (list (read-face-name "Invert face"))) (let ((fg (face-attribute face :foreground frame)) (bg (face-attribute face :background frame))) (if (not (and (eq fg 'unspecified) (eq bg 'unspecified))) @@ -847,6 +847,7 @@ of the default face. Value is FACE." (defun read-face-name (prompt) "Read and return a face symbol, prompting with PROMPT. +PROMPT should not end with a blank, since this function appends one. Value is a symbol naming a known face." (let ((face-list (mapcar #'(lambda (x) (cons (symbol-name x) x)) (face-list))) -- 2.39.5