[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parentheses matching failure on valid sexp
From: |
Joe Wells |
Subject: |
Re: parentheses matching failure on valid sexp |
Date: |
Tue, 11 Sep 2007 08:07:30 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
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.
--
Joe