emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: parentheses matching failure on valid sexp]


From: martin rudalics
Subject: Re: address@hidden: parentheses matching failure on valid sexp]
Date: Wed, 12 Sep 2007 17:21:13 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

This bug is because there is a limit on how far back
blink-matching-open can search for a matching openparen.

That limit is necessary, but it would be nicer to say some different
message when no openparen is found.  Could someone please implement that,
and ack?

Maybe something like the patch below should avoid printing a message
in the first place.

*** simple.el.~1.859.2.8.~      Sun Aug 26 22:26:46 2007
--- simple.el   Wed Sep 12 17:17:34 2007
***************
*** 4505,4515 ****
                          (eq (syntax-class syntax) 4)
                          (cdr syntax)))))
        (cond
!        ((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 (1- oldpos))))))
          (message "Mismatched parentheses"))
         ((not blinkpos)
          (if (not blink-matching-paren-distance)
--- 4505,4516 ----
                          (eq (syntax-class syntax) 4)
                          (cdr syntax)))))
        (cond
!        ((and blinkpos
!              (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 (1- oldpos)))))))
          (message "Mismatched parentheses"))
         ((not blinkpos)
          (if (not blink-matching-paren-distance)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]