From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#5122: Mismatched parentheses when dealing with hugebuffercontent Date: Sun, 6 Dec 2009 09:05:57 -0800 Message-ID: <3C515F3078FA4C4CB6AA413FC1BE8906@us.oracle.com> References: <87ocmdw33d.fsf@stupidchicken.com> <838wdhjdpj.fsf@gnu.org><87d42trs02.fsf@stupidchicken.com> <83638kkau1.fsf@gnu.org> <878wdgw25e.fsf@stupidchicken.com> Reply-To: Drew Adams , 5122@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1260120468 5754 80.91.229.12 (6 Dec 2009 17:27:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2009 17:27:48 +0000 (UTC) To: "'Chong Yidong'" , <5122@emacsbugs.donarmstrong.com>, "'Eli Zaretskii'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 06 18:27:40 2009 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 1NHKtY-0001br-4x for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Dec 2009 18:27:40 +0100 Original-Received: from localhost ([127.0.0.1]:33346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHKtX-0000Cz-PT for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Dec 2009 12:27:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHKtT-0000Cg-1i for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 12:27:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHKtN-0000AE-Ml for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 12:27:34 -0500 Original-Received: from [199.232.76.173] (port=32913 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHKtN-0000A1-HY for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 12:27:29 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60936) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHKtM-00087v-Ut for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 12:27:29 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB6HRPFx019552; Sun, 6 Dec 2009 09:27:27 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB6HA5Fu017585; Sun, 6 Dec 2009 09:10:05 -0800 Resent-Date: Sun, 6 Dec 2009 09:10:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 06 Dec 2009 17:10:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5122 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5122-submit@emacsbugs.donarmstrong.com id=B5122.126011916017329 (code B ref 5122); Sun, 06 Dec 2009 17:10:05 +0000 Original-Received: (at 5122) by emacsbugs.donarmstrong.com; 6 Dec 2009 17:06:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from acsinet12.oracle.com (acsinet12.oracle.com [141.146.126.234]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB6H5xx2017326 for <5122@emacsbugs.donarmstrong.com>; Sun, 6 Dec 2009 09:06:00 -0800 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nB6H5hZ5018406 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 6 Dec 2009 17:05:45 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nB6G0dfb011020; Sun, 6 Dec 2009 17:06:05 GMT Original-Received: from abhmt006.oracle.com by acsmt358.oracle.com with ESMTP id 827593451260119149; Sun, 06 Dec 2009 11:05:49 -0600 Original-Received: from dradamslap1 (/24.5.185.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 06 Dec 2009 09:05:48 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acp2i3PeDZ5QkK1lRtqtbpg/8RdeSQACnE4A In-Reply-To: <878wdgw25e.fsf@stupidchicken.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4B1BE46E.0046:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 06 Dec 2009 12:27:34 -0500 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:33316 Archived-At: > >> The circumstances in which the parenthesis are mismatched probably > >> vastly outweigh the circumstances in which the user wants to change > >> blink-matching-paren-distance. > > > > I suggested the modified message text _only_ for those > > cases where the search hits the limit. > > How do you distinguish this from the plain old "no mismatched > parenthesis" case? Like I said, if there is no matching parenthesis > within the search limit (which, btw, has been increased in > Emacs 22.3), in most cases the parentheses really are mismatched. The code lets you distinguish. It simply needs to DTRT when it knows that the arbitrary limit was reached. Look at the code in both simple.el and paren.el. The code knows when it is using the limit (narrowing etc.). Currently, it doesn't distinguish this case from the case where it simply hits bob/eob, but it certainly could. (No, I won't be sending a patch for this. If the will is there, you will see easily enough what needs to be done.)