diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/paren.el | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/paren.el b/lisp/paren.el index eb108910e28..0a151d14aab 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -80,14 +80,15 @@ (progn (and (null show-paren-mismatch-face) (x-display-color-p) - (or (internal-find-face 'paren-mismatch) - (progn - (make-face 'paren-mismatch) - (set-face-background 'paren-mismatch - "purple") - (set-face-foreground 'paren-mismatch - "white"))) - (setq show-paren-mismatch-face 'paren-mismatch)) + (progn + (make-face 'paren-mismatch) + (or (face-nontrivial-p 'paren-mismatch t) + (progn + (set-face-background 'paren-mismatch + "purple") + (set-face-foreground 'paren-mismatch + "white"))) + (setq show-paren-mismatch-face 'paren-mismatch))) (if show-paren-mismatch-face (setq face show-paren-mismatch-face) (message "Paren mismatch")))) |