[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parentheses matching failure on valid sexp
From: |
Andreas Röhler |
Subject: |
Re: parentheses matching failure on valid sexp |
Date: |
Thu, 13 Sep 2007 08:40:56 +0200 |
User-agent: |
KMail/1.8.2 |
Am Dienstag, 11. September 2007 09:07 schrieb Joe Wells:
> Joe Wells <jbw@macs.hw.ac.uk> writes:
> > Sven Joachim <svenjoac@gmx.de> writes:
> >> Joe Wells <jbw@macs.hw.ac.uk> writes:
> >>> To reproduce this bug:
> >>>
> >>> 1. Save the attached file as foobar.el.
> >>> 2. Run “emacs -Q foobar.el”.
> >>> 3. Delete the trailing right parenthesis on line 435.
> >>> 4. Type a right parenthesis.
> >>>
> >>> The correct behavior would be to match the leading left parenthesis on
> >>> line 1. The actual buggy behavior is that the message “Mismatched
> >>> parentheses” is given.
> >>>
> >>> This bug is sensitive to the size of the input. If you delete much of
> >>> the input, then the bug goes away.
> >>
> >> This is documented behavior, see the variable
> >> blink-matching-paren-distance:
> >
> > Thank you for pointing this out!
>
> I suggest there should be a different error message ("Could not find
> matching parentheses within %d characters") if the failure is due to
> exceeding the blink-matching-paren-distance limit. The current
> message of "Mismatched parentheses" in this case makes one think the
> error is due to a bracket matching a brace, or something like that.
Meanwhile this might be helpful:
http://www.emacswiki.org/cgi-bin/wiki/MatchParenthesis
Andreas Röhler