mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(show-paren-highlight-openparen): New var.
(show-paren-function): Turn on openparen highlighting when matching forward if show-paren-highlight-openparen is non-nil.
This commit is contained in:
parent
da4ae7d3d8
commit
6afd5d68ae
1 changed files with 4 additions and 1 deletions
|
|
@ -91,6 +91,9 @@ otherwise)."
|
|||
:group 'faces
|
||||
:group 'paren-showing)
|
||||
|
||||
(defvar show-paren-highlight-openparen t
|
||||
"*Non-nil turns on openparen highlighting when matching forward.")
|
||||
|
||||
(defvar show-paren-idle-timer nil)
|
||||
|
||||
;;;###autoload
|
||||
|
|
@ -195,7 +198,7 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
|
|||
;; If matching forward, and the openparen is unbalanced,
|
||||
;; highlight the paren at point to indicate misbalance.
|
||||
;; Otherwise, turn off any such highlighting.
|
||||
(if (and (= dir 1) (integerp pos))
|
||||
(if (and (not show-paren-highlight-openparen) (= dir 1) (integerp pos))
|
||||
(when (and show-paren-overlay-1
|
||||
(overlay-buffer show-paren-overlay-1))
|
||||
(delete-overlay show-paren-overlay-1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue