# HG changeset patch # User Miles Bader # Date 972218069 0 # Node ID fd31939b07479f972d455675b9772eb103a5e9a0 # Parent 7424aeb6f60d50197742e4aa6a56dc34bbe8538b (comint-highlight-input, comint-highlight-prompt): Renamed, `-face' at end removed. (comint-send-input, comint-output-filter): Use renamed faces. diff -r 7424aeb6f60d -r fd31939b0747 lisp/comint.el --- 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))))))