From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.bugs Subject: Re: parentheses matching failure on valid sexp Date: Tue, 11 Sep 2007 08:07:30 +0100 Message-ID: <863axlof2l.fsf@macs.hw.ac.uk> References: <86fy1lojua.fsf@macs.hw.ac.uk> <87zlzt2147.fsf@gmx.de> <86abrtof9p.fsf@macs.hw.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1189494461 10558 80.91.229.12 (11 Sep 2007 07:07:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 07:07:41 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Sven Joachim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 17:07:23 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IV7Kl-0000n5-2H for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 17:07:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUzqS-0007Ik-Q7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 03:07:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUzqQ-0007IV-8i for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2007 03:07:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUzqP-0007I9-2e for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2007 03:07:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUzqO-0007Hu-U6 for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2007 03:07:32 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IUzqO-00065M-Dh for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2007 03:07:32 -0400 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUzqN-000580-Lu for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2007 03:07:31 -0400 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:36219 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1IUzqN-0006Yh-5k; Tue, 11 Sep 2007 08:07:31 +0100 Original-Received: (nullmailer pid 13164 invoked by uid 1001); Tue, 11 Sep 2007 07:07:30 -0000 In-Reply-To: <86abrtof9p.fsf@macs.hw.ac.uk> (Joe Wells's message of "Tue\, 11 Sep 2007 08\:03\:14 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16536 Archived-At: Joe Wells writes: > Sven Joachim writes: > >> Joe Wells writes: >> >>> To reproduce this bug: >>> >>> 1. Save the attached file as foobar.el. >>> 2. Run =E2=80=9Cemacs -Q foobar.el=E2=80=9D. >>> 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 =E2=80=9CMismatc= hed >>> parentheses=E2=80=9D 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-dista= nce: > > 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. --=20 Joe