diff options
| author | Richard M. Stallman <rms@gnu.org> | 1993-07-20 05:59:51 +0000 | 
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1993-07-20 05:59:51 +0000 | 
| commit | 30322a2736baed3fcece68381caa4d33c599b8fe (patch) | |
| tree | 97f0cabc6bd29a177a8b5b49592b3775c217c194 | |
| parent | f5d7a8f2f81df6eb76c138f2d1dd4e6b59f75d67 (diff) | |
| download | emacs-30322a2736baed3fcece68381caa4d33c599b8fe.tar.gz | |
(show-paren-face): New variable.
(show-paren-command-hook): Use it.
Call set-face-background properly.
| -rw-r--r-- | lisp/paren.el | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/lisp/paren.el b/lisp/paren.el index c96efcd1863..cd1c8878180 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -36,12 +36,15 @@  (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")))) | 
