From: Stefan Monnier Date: Sun, 20 Nov 2005 18:08:55 +0000 (+0000) Subject: (blink-matching-open): Allow new paren-class info. X-Git-Tag: emacs-pretest-22.0.90~5739 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1c4b7278d6d3c405e06eacb735d588112bc463d8;p=emacs.git (blink-matching-open): Allow new paren-class info. --- 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)