Mercurial > emacs
changeset 67053:ac8622e9be6d
(blink-matching-open): Allow new paren-class info.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 20 Nov 2005 18:08:55 +0000 |
parents | 8ad986f91500 |
children | b8c0eb74d77e |
files | lisp/simple.el |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/simple.el Sun Nov 20 18:07:19 2005 +0000 +++ b/lisp/simple.el Sun Nov 20 18:08:55 2005 +0000 @@ -4316,7 +4316,11 @@ (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)