From d2be4dccb9088cc7e27aeb6b01ef23ed20da2447 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 3 Jan 2013 10:31:45 -0800 Subject: term-handle-colors-array fix * lisp/term.el (term-handle-colors-array): Ensure face attributes are fully specified, not nil. Fixes: debbugs:13337 --- lisp/term.el | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'lisp/term.el') diff --git a/lisp/term.el b/lisp/term.el index 8c6ac2a4adf..1a0dd0cc86f 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -3216,18 +3216,24 @@ See `term-prompt-regexp'." (let ((color (if term-ansi-current-reverse (face-foreground - (elt ansi-term-color-vector term-ansi-current-color)) + (elt ansi-term-color-vector term-ansi-current-color) + nil 'default) (face-background - (elt ansi-term-color-vector term-ansi-current-bg-color))))) + (elt ansi-term-color-vector term-ansi-current-bg-color) + nil 'default)))) (setq term-current-face (list :background color :foreground color)) ) ;; No need to bother with anything else if it's invisible. (setq term-current-face (list :foreground - (face-foreground (elt ansi-term-color-vector term-ansi-current-color)) + (face-foreground + (elt ansi-term-color-vector term-ansi-current-color) + nil 'default) :background - (face-background (elt ansi-term-color-vector term-ansi-current-bg-color)) + (face-background + (elt ansi-term-color-vector term-ansi-current-bg-color) + nil 'default) :inverse-video term-ansi-current-reverse)) (when term-ansi-current-bold -- cgit v1.2.1