summaryrefslogtreecommitdiff
path: root/lisp/paren.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2005-11-20 18:07:19 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2005-11-20 18:07:19 +0000
commit1793ac759fab732d4e5b2242b17ab9e1f797810f (patch)
tree4a1a3ca1a4bb92bb8345278c1865b9a5b1459ad9 /lisp/paren.el
parent602ad1ad2d9ed69178f9f6fda3e1c6b7ec264a59 (diff)
downloademacs-1793ac759fab732d4e5b2242b17ab9e1f797810f.tar.gz
(show-paren-function): Allow new paren-class info.
Diffstat (limited to 'lisp/paren.el')
-rw-r--r--lisp/paren.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/paren.el b/lisp/paren.el
index a1cc12712f7..ece3ed3c606 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -181,7 +181,12 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
(cdr (syntax-after beg)))
(eq (char-after beg)
;; This can give nil.
- (cdr (syntax-after (1- end)))))))))))))
+ (cdr (syntax-after (1- end))))
+ ;; The cdr might hold a new paren-class
+ ;; info rather than a matching-char info,
+ ;; in which case the two CDRs should match.
+ (eq (cdr (syntax-after (1- end)))
+ (cdr (syntax-after beg))))))))))))
;;
;; Highlight the other end of the sexp, or unhighlight if none.
(if (not pos)