From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?utf-8?q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: Re: parentheses matching failure on valid sexp Date: Thu, 13 Sep 2007 08:40:56 +0200 Message-ID: <200709130840.57227.andreas.roehler@online.de> References: <86fy1lojua.fsf@macs.hw.ac.uk> <86abrtof9p.fsf@macs.hw.ac.uk> <863axlof2l.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 1189665537 31407 80.91.229.12 (13 Sep 2007 06:38:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2007 06:38:57 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 08:38:54 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 1IViLl-0000d8-H8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Sep 2007 08:38:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IViLl-0001q3-7H for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Sep 2007 02:38:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IViLi-0001lD-It for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2007 02:38:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IViLg-0001ha-Jv for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2007 02:38:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IViLg-0001hL-Db for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2007 02:38:48 -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 1IViLf-0003dK-Qa for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2007 02:38:48 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IViLe-0001Kz-F6 for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2007 02:38:46 -0400 Original-Received: from p54BE88A6.dip0.t-ipconnect.de [84.190.136.166] (helo=karton) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis), id 0ML2xA-1IViLb2ix0-0002XN; Thu, 13 Sep 2007 08:38:44 +0200 User-Agent: KMail/1.8.2 In-Reply-To: <863axlof2l.fsf@macs.hw.ac.uk> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX1/MikMOTSRKNIb3bYF8pmQskQKAUw3d7syvSIp Us7BpIEJSuAJe3a4mv/2kcq2qnEsafX6LoXF4IWn2Lyw5F8IlQ wctsWrMAslRThrcpDhiSQ== X-detected-kernel: Linux 2.6? (barebone, rare!) 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:16548 Archived-At: Am Dienstag, 11. September 2007 09:07 schrieb Joe Wells: > 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=9CMisma= tched > >>> 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-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=C3=B6hler