aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-08-14 19:46:18 +0000
committerGerd Moellmann2000-08-14 19:46:18 +0000
commit5780586ea03237476664e42dc239489e5a725a2d (patch)
treeb98b676ec3212d33bb4279a6a111ab0a279e4e61
parentd874e91353cb3dacc5e65d01c776c3386838dd6f (diff)
downloademacs-5780586ea03237476664e42dc239489e5a725a2d.tar.gz
emacs-5780586ea03237476664e42dc239489e5a725a2d.zip
(show-paren-priority): New user option.
(show-paren-function): Set overlay priorities to show-paren-priority.
-rw-r--r--lisp/paren.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/paren.el b/lisp/paren.el
index 53fc343c6d5..8fdf9d8f258 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -69,6 +69,12 @@ otherwise)."
69 :type '(number :tag "seconds") 69 :type '(number :tag "seconds")
70 :group 'paren-showing) 70 :group 'paren-showing)
71 71
72(defcustom show-paren-priority 1000
73 "*Priority of paren highlighting overlays."
74 :type 'integer
75 :group 'paren-showing
76 :version "21.1")
77
72(defcustom show-paren-ring-bell-on-mismatch nil 78(defcustom show-paren-ring-bell-on-mismatch nil
73 "*If non-nil, beep if mismatched paren is detected." 79 "*If non-nil, beep if mismatched paren is detected."
74 :type 'boolean 80 :type 'boolean
@@ -204,6 +210,7 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
204 (move-overlay show-paren-overlay-1 from to (current-buffer)) 210 (move-overlay show-paren-overlay-1 from to (current-buffer))
205 (setq show-paren-overlay-1 (make-overlay from to))) 211 (setq show-paren-overlay-1 (make-overlay from to)))
206 ;; Always set the overlay face, since it varies. 212 ;; Always set the overlay face, since it varies.
213 (overlay-put show-paren-overlay-1 'priority show-paren-priority)
207 (overlay-put show-paren-overlay-1 'face face))) 214 (overlay-put show-paren-overlay-1 'face face)))
208 ;; 215 ;;
209 ;; Turn on highlighting for the matching paren, if found. 216 ;; Turn on highlighting for the matching paren, if found.
@@ -227,6 +234,7 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
227 (setq show-paren-overlay (make-overlay from to)))) 234 (setq show-paren-overlay (make-overlay from to))))
228 ;; 235 ;;
229 ;; Always set the overlay face, since it varies. 236 ;; Always set the overlay face, since it varies.
237 (overlay-put show-paren-overlay 'priority show-paren-priority)
230 (overlay-put show-paren-overlay 'face face))) 238 (overlay-put show-paren-overlay 'face face)))
231 ;; show-paren-mode is nil in this buffer. 239 ;; show-paren-mode is nil in this buffer.
232 (and show-paren-overlay 240 (and show-paren-overlay