changeset 32743:fd31939b0747

(comint-highlight-input, comint-highlight-prompt): Renamed, `-face' at end removed. (comint-send-input, comint-output-filter): Use renamed faces.
author Miles Bader <miles@gnu.org>
date Sun, 22 Oct 2000 12:34:29 +0000
parents 7424aeb6f60d
children bd300e542dbc
files lisp/comint.el
diffstat 1 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/comint.el	Sun Oct 22 10:20:30 2000 +0000
+++ b/lisp/comint.el	Sun Oct 22 12:34:29 2000 +0000
@@ -207,21 +207,20 @@
 
 (defcustom comint-highlight-input t
   "*If non-nil, highlight input; also allow choosing previous input with a mouse.
-See also `comint-highlight-face'."
+The face used is `comint-highlight-input'."
   :type 'boolean
   :group 'comint)
 
-(defface comint-highlight-input-face '((t (:bold t)))
+(defface comint-highlight-input '((t (:bold t)))
   "Face to use to highlight input when `comint-highlight-input' is non-nil."
   :group 'comint)
 
 (defcustom comint-highlight-prompt t
   "*If non-nil, highlight program prompts.
-See also `comint-highlight-face'."
-  :type 'boolean
+The face used is `comint-highlight-prompt'."
   :group 'comint)
 
-(defface comint-highlight-prompt-face
+(defface comint-highlight-prompt
   '((((background dark)) (:foreground "cyan"))
     (t (:foreground "dark blue")))
   "Face to use to highlight prompt when `comint-highlight-prompt' is non-nil."
@@ -1415,7 +1414,7 @@
 		  (overlay-put over 'field 'input)
 		  (overlay-put over 'front-sticky t))
 		(when comint-highlight-input
-		  (overlay-put over 'face 'comint-highlight-input-face)
+		  (overlay-put over 'face 'comint-highlight-input)
 		  (overlay-put over 'mouse-face 'highlight)
 		  (overlay-put over 'evaporate t))))
 	    (unless comint-use-prompt-regexp-instead-of-fields
@@ -1583,7 +1582,7 @@
 				    prompt-start (point))
 		    ;; Need to create the overlay
 		    (let ((over (make-overlay prompt-start (point))))
-		      (overlay-put over 'face 'comint-highlight-prompt-face)
+		      (overlay-put over 'face 'comint-highlight-prompt)
 		      (overlay-put over 'front-sticky t)
 		      (overlay-put over 'rear-nonsticky t)
 		      (setq comint-last-prompt-overlay over))))))