mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
(show-paren-command-hook): Don't alter paren-mismatch face
if make-face gives it some contents.
This commit is contained in:
parent
93d6fcef18
commit
00b05a4299
@ -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"))))
|
||||
|
Loading…
Reference in New Issue
Block a user