]> git.eshelyaron.com Git - emacs.git/commitdiff
(show-paren-face): New variable.
authorRichard M. Stallman <rms@gnu.org>
Tue, 20 Jul 1993 05:59:51 +0000 (05:59 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 20 Jul 1993 05:59:51 +0000 (05:59 +0000)
(show-paren-command-hook): Use it.
Call set-face-background properly.

lisp/paren.el

index c96efcd1863a5a259c1fba49a0da4eb875672d88..cd1c88781803ea231f83f73108edb5877a6d8b63 100644 (file)
 
 (defvar show-paren-mismatch-face nil)
 
+(defvar show-paren-face 'region
+  "*Name of face to use for showing the matching paren.")
+
 ;; Find the place to show, if there is one,
 ;; and show it until input arrives.
 (defun show-paren-command-hook ()
   (if window-system
       (let (pos dir mismatch (oldpos (point))
-               (face 'region))
+               (face show-paren-face))
        (cond ((eq (char-syntax (following-char)) ?\()
               (setq dir 1))
              ((eq (char-syntax (preceding-char)) ?\))
@@ -81,7 +84,8 @@
                               (progn
                                 (setq show-paren-mismatch-face
                                       (make-face 'paren-mismatch))
-                                (set-face-background 'paren-mismatch 'purple))))
+                                (set-face-background 'paren-mismatch
+                                                     "purple"))))
                      (if show-paren-mismatch-face
                          (setq face show-paren-mismatch-face)
                        (message "Paren mismatch"))))