summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2005-11-20 18:08:55 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2005-11-20 18:08:55 +0000
commit1c4b7278d6d3c405e06eacb735d588112bc463d8 (patch)
treeaa8671d76f0b1f3632d28187d5f3038ac19af033
parent1793ac759fab732d4e5b2242b17ab9e1f797810f (diff)
downloademacs-1c4b7278d6d3c405e06eacb735d588112bc463d8.tar.gz
emacs-1c4b7278d6d3c405e06eacb735d588112bc463d8.tar.bz2
emacs-1c4b7278d6d3c405e06eacb735d588112bc463d8.zip
(blink-matching-open): Allow new paren-class info.
-rw-r--r--lisp/simple.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index a5c89dbb1d0..a7551f4430c 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4316,7 +4316,11 @@ If nil, search stops at the beginning of the accessible portion of the buffer."
(eq (syntax-class syntax) 4)
(cdr syntax)))))
(cond
- ((not (eq matching-paren (char-before oldpos)))
+ ((not (or (eq matching-paren (char-before oldpos))
+ ;; The cdr might hold a new paren-class info rather than
+ ;; a matching-char info, in which case the two CDRs
+ ;; should match.
+ (eq matching-paren (cdr (syntax-after oldpos)))))
(message "Mismatched parentheses"))
((not blinkpos)
(if (not blink-matching-paren-distance)