From 1c4b7278d6d3c405e06eacb735d588112bc463d8 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 20 Nov 2005 18:08:55 +0000 Subject: [PATCH] (blink-matching-open): Allow new paren-class info. --- lisp/simple.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.39.5