From unknown Sat Jun 21 10:43:59 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3889: 23.1.50; [PATCH] Increase blink-matching-paren-distance Reply-To: Ian Eure , 3889@debbugs.gnu.org Resent-From: Ian Eure Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 20 Jul 2009 20:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3889 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124812299718054 (code B ref -1); Mon, 20 Jul 2009 20:55:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Jul 2009 20:49:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6KKnoIG018029 for ; Mon, 20 Jul 2009 13:49:52 -0700 Received: from mx10.gnu.org ([199.232.76.166]:59547) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MSzny-00010q-1T for emacs-pretest-bug@gnu.org; Mon, 20 Jul 2009 16:49:50 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MSznw-0006Vy-UM for emacs-pretest-bug@gnu.org; Mon, 20 Jul 2009 16:49:49 -0400 Received: from mail.digg.com ([64.191.203.36]:58350) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MSznw-0006Vg-Jc for emacs-pretest-bug@gnu.org; Mon, 20 Jul 2009 16:49:48 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id CDC74A8538B for ; Mon, 20 Jul 2009 13:49:47 -0700 (PDT) X-Virus-Scanned: amavisd-new at d242.digg.internal Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VGRYbLkUbJof for ; Mon, 20 Jul 2009 13:49:47 -0700 (PDT) Received: from [10.2.16.50] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id 3E919A85129 for ; Mon, 20 Jul 2009 13:49:47 -0700 (PDT) Message-Id: From: Ian Eure To: emacs-pretest-bug@gnu.org Content-Type: multipart/mixed; boundary=Apple-Mail-3--767152792 Mime-Version: 1.0 (Apple Message framework v935.3) Date: Mon, 20 Jul 2009 13:49:46 -0700 X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) --Apple-Mail-3--767152792 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit A user came into #emacs today complaining that his paren matching was not working with a large file, and that font-locking broke as a result. I found that this is controlled by blink-matching-paren-distance, which was increased to 25kb around 1997. Attached is a patch which doubles this to 50kb, as this should be fine for modern machines. I think that we should seriously consider setting the default to nil, but this seems like a more conservative approach to the matter. --Apple-Mail-3--767152792 Content-Disposition: attachment; filename=blink-matching-paren.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="blink-matching-paren.patch" Content-Transfer-Encoding: 7bit Index: simple.el =================================================================== RCS file: /sources/emacs/emacs/lisp/simple.el,v retrieving revision 1.998 diff -u -u -r1.998 simple.el --- simple.el 19 Jul 2009 00:33:11 -0000 1.998 +++ simple.el 20 Jul 2009 20:45:21 -0000 @@ -5254,7 +5254,7 @@ :type 'boolean :group 'paren-blinking) -(defcustom blink-matching-paren-distance (* 25 1024) +(defcustom blink-matching-paren-distance (* 50 1024) "If non-nil, maximum distance to search backwards for matching open-paren. If nil, search stops at the beginning of the accessible portion of the buffer." :type '(choice (const nil) integer) --Apple-Mail-3--767152792 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-3--767152792-- From unknown Sat Jun 21 10:43:59 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3889: 23.1.50; [PATCH] Increase blink-matching-paren-distance Reply-To: martin rudalics , 3889@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 21 Jul 2009 09:50:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3889 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3889-submit@emacsbugs.donarmstrong.com id=B3889.124816957019416 (code B ref 3889); Tue, 21 Jul 2009 09:50:07 +0000 Received: (at 3889) by emacsbugs.donarmstrong.com; 21 Jul 2009 09:46:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.5 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n6L9juxt019398 for <3889@emacsbugs.donarmstrong.com>; Tue, 21 Jul 2009 02:45:58 -0700 Received: (qmail invoked by alias); 21 Jul 2009 09:39:10 -0000 Received: from 62-47-50-31.adsl.highway.telekom.at (EHLO [62.47.50.31]) [62.47.50.31] by mail.gmx.net (mp021) with SMTP; 21 Jul 2009 11:39:10 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/ypDlxNTLyjLdJbgqSmIbM+VWcl9s7YThw97qK/d mk3sYTRvwfFxft Message-ID: <4A658CBE.1030009@gmx.at> Date: Tue, 21 Jul 2009 11:39:10 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Ian Eure , 3889@debbugs.gnu.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.78 > A user came into #emacs today complaining that his paren matching was > not working with a large file, and that font-locking broke as a result. > > I found that this is controlled by blink-matching-paren-distance, which > was increased to 25kb around 1997. How can `blink-matching-paren-distance' affect font-locking? If I understand correctly all `blink-matching-open' can do is slow down typing. martin From unknown Sat Jun 21 10:43:59 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3889: 23.1.50; [PATCH] Increase blink-matching-paren-distance Reply-To: Ian Eure , 3889@debbugs.gnu.org Resent-From: Ian Eure Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 21 Jul 2009 16:25:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3889 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3889-submit@emacsbugs.donarmstrong.com id=B3889.124819305825028 (code B ref 3889); Tue, 21 Jul 2009 16:25:06 +0000 Received: (at 3889) by emacsbugs.donarmstrong.com; 21 Jul 2009 16:17:38 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.8 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.digg.com (mail.digg.com [64.191.203.36]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6LGHYc5025022 for <3889@emacsbugs.donarmstrong.com>; Tue, 21 Jul 2009 09:17:35 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id 105A9A85062; Tue, 21 Jul 2009 09:17:29 -0700 (PDT) X-Virus-Scanned: amavisd-new at d242.digg.internal Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aHPaOSG8tXyS; Tue, 21 Jul 2009 09:17:28 -0700 (PDT) Received: from [10.2.16.50] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id C4C66A85014; Tue, 21 Jul 2009 09:17:28 -0700 (PDT) Cc: 3889@debbugs.gnu.org Message-Id: From: Ian Eure To: martin rudalics In-Reply-To: <4A658CBE.1030009@gmx.at> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Tue, 21 Jul 2009 09:17:27 -0700 References: <4A658CBE.1030009@gmx.at> X-Mailer: Apple Mail (2.935.3) On Jul 21, 2009, at 2:39 AM, martin rudalics wrote: > > A user came into #emacs today complaining that his paren matching > was > > not working with a large file, and that font-locking broke as a > result. > > > > I found that this is controlled by blink-matching-paren-distance, > which > > was increased to 25kb around 1997. > > How can `blink-matching-paren-distance' affect font-locking? If I > understand correctly all `blink-matching-open' can do is slow down > typing. > I don't know, as I couldn't reproduce that aspect of the issue. Perhaps their `show-paren-style' was set to 'expression. The paren matching definitely breaks, though. You get a message saying that you have mismatched parens, and they're highlighted incorrectly. - Ian From unknown Sat Jun 21 10:43:59 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3889: 23.1.50; [PATCH] Increase blink-matching-paren-distance Reply-To: Stefan Monnier , 3889@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 21 Jul 2009 16:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3889 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124819336325854 (code B ref -1); Tue, 21 Jul 2009 16:30:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Jul 2009 16:22:43 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6LGMdwC025848 for ; Tue, 21 Jul 2009 09:22:40 -0700 Received: from mx10.gnu.org ([199.232.76.166]:55987) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MTI6w-0001qP-I5 for emacs-pretest-bug@gnu.org; Tue, 21 Jul 2009 12:22:38 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MTI6v-0008Fg-4n for emacs-pretest-bug@gnu.org; Tue, 21 Jul 2009 12:22:38 -0400 Received: from tomts43-srv.bellnexxia.net ([209.226.175.110]:58022) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTI6u-0008FQ-Jl for emacs-pretest-bug@gnu.org; Tue, 21 Jul 2009 12:22:36 -0400 Received: from toip4.srvr.bell.ca ([209.226.175.87]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20090721162220.PIO14846.tomts43-srv.bellnexxia.net@toip4.srvr.bell.ca> for ; Tue, 21 Jul 2009 12:22:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsgEAKSCZUpBXrWz/2dsb2JhbACBUdFGhAwF Received: from bas1-montreal02-1096725939.dsl.bell.ca (HELO ceviche.home) ([65.94.181.179]) by toip4.srvr.bell.ca with ESMTP; 21 Jul 2009 12:37:32 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 75E42B41BF; Tue, 21 Jul 2009 12:22:20 -0400 (EDT) From: Stefan Monnier To: Ian Eure Cc: 3889@debbugs.gnu.org, emacs-pretest-bug@gnu.org Message-ID: References: Date: Tue, 21 Jul 2009 12:22:20 -0400 In-Reply-To: (Ian Eure's message of "Mon, 20 Jul 2009 13:49:46 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) > Attached is a patch which doubles this to 50kb, as this should be fine for > modern machines. 100kB should be fine, indeed. > I think that we should seriously consider setting the default to nil, > but this seems like a more conservative approach to the matter. Maybe when you're browsing a 200MB log file, you'll find it painful, so a lower limit would still seem to make sense. 100kB is probably very conservative (even when running on my poor cell-phone, it should be fast enough). Stefan From unknown Sat Jun 21 10:43:59 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3889: 23.1.50; [PATCH] Increase blink-matching-paren-distance Reply-To: martin rudalics , 3889@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 21 Jul 2009 17:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3889 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3889-submit@emacsbugs.donarmstrong.com id=B3889.12481970324569 (code B ref 3889); Tue, 21 Jul 2009 17:30:03 +0000 Received: (at 3889) by emacsbugs.donarmstrong.com; 21 Jul 2009 17:23:52 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.5 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n6LHNloo004563 for <3889@emacsbugs.donarmstrong.com>; Tue, 21 Jul 2009 10:23:48 -0700 Received: (qmail invoked by alias); 21 Jul 2009 17:23:41 -0000 Received: from 62-47-56-251.adsl.highway.telekom.at (EHLO [62.47.56.251]) [62.47.56.251] by mail.gmx.net (mp046) with SMTP; 21 Jul 2009 19:23:41 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18Vxnw+4O8VhsmGWQ1IM/b7OjWGA34KVbktmt88mg c8+aUyyWOt6MC6 Message-ID: <4A65F99B.6090400@gmx.at> Date: Tue, 21 Jul 2009 19:23:39 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Ian Eure CC: 3889@debbugs.gnu.org References: <4A658CBE.1030009@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.78 > I don't know, as I couldn't reproduce that aspect of the issue. Perhaps > their `show-paren-style' was set to 'expression. Could you try to get back to them? Font-locking should never be affected by this. > The paren matching definitely breaks, though. You get a message saying > that you have mismatched parens, and they're highlighted incorrectly. That's normal. martin From unknown Sat Jun 21 10:43:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Ian Eure Subject: bug#3889 closed by Glenn Morris (Re: bug#3889: 23.1.50; [PATCH] Increase blink-matching-paren-distance) Message-ID: References: X-Emacs-PR-Message: they-closed 3889 X-Emacs-PR-Package: emacs Reply-To: 3889@debbugs.gnu.org Date: Wed, 22 Jul 2009 02:40:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1248230405-3066-1" This is a multi-part message in MIME format... ------------=_1248230405-3066-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #3889: 23.1.50; [PATCH] Increase blink-matching-paren-distance It has been closed by Glenn Morris . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Glenn Morris by replying to this email. --=20 3889: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3889 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1248230405-3066-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3889-done) by emacsbugs.donarmstrong.com; 22 Jul 2009 02:35:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-8.0 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6M2ZpXT002639 for <3889-done@emacsbugs.donarmstrong.com>; Tue, 21 Jul 2009 19:35:52 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MTRgM-0004HX-Oe; Tue, 21 Jul 2009 22:35:50 -0400 From: Glenn Morris To: 3889-done@debbugs.gnu.org Subject: Re: bug#3889: 23.1.50; [PATCH] Increase blink-matching-paren-distance References: X-Spook: FBI nitrate Marxist ASLET Mahmoud Ahmadinejad subversive X-Ran: ~c+CtB User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier wrote: >> Attached is a patch which doubles this to 50kb, as this should be fine for >> modern machines. > > 100kB should be fine, indeed. So increased. ------------=_1248230405-3066-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 20 Jul 2009 20:49:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6KKnoIG018029 for ; Mon, 20 Jul 2009 13:49:52 -0700 Received: from mx10.gnu.org ([199.232.76.166]:59547) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MSzny-00010q-1T for emacs-pretest-bug@gnu.org; Mon, 20 Jul 2009 16:49:50 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MSznw-0006Vy-UM for emacs-pretest-bug@gnu.org; Mon, 20 Jul 2009 16:49:49 -0400 Received: from mail.digg.com ([64.191.203.36]:58350) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MSznw-0006Vg-Jc for emacs-pretest-bug@gnu.org; Mon, 20 Jul 2009 16:49:48 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id CDC74A8538B for ; Mon, 20 Jul 2009 13:49:47 -0700 (PDT) X-Virus-Scanned: amavisd-new at d242.digg.internal Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VGRYbLkUbJof for ; Mon, 20 Jul 2009 13:49:47 -0700 (PDT) Received: from [10.2.16.50] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id 3E919A85129 for ; Mon, 20 Jul 2009 13:49:47 -0700 (PDT) Message-Id: From: Ian Eure To: emacs-pretest-bug@gnu.org Content-Type: multipart/mixed; boundary=Apple-Mail-3--767152792 Mime-Version: 1.0 (Apple Message framework v935.3) Subject: 23.1.50; [PATCH] Increase blink-matching-paren-distance Date: Mon, 20 Jul 2009 13:49:46 -0700 X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) --Apple-Mail-3--767152792 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit A user came into #emacs today complaining that his paren matching was not working with a large file, and that font-locking broke as a result. I found that this is controlled by blink-matching-paren-distance, which was increased to 25kb around 1997. Attached is a patch which doubles this to 50kb, as this should be fine for modern machines. I think that we should seriously consider setting the default to nil, but this seems like a more conservative approach to the matter. --Apple-Mail-3--767152792 Content-Disposition: attachment; filename=blink-matching-paren.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="blink-matching-paren.patch" Content-Transfer-Encoding: 7bit Index: simple.el =================================================================== RCS file: /sources/emacs/emacs/lisp/simple.el,v retrieving revision 1.998 diff -u -u -r1.998 simple.el --- simple.el 19 Jul 2009 00:33:11 -0000 1.998 +++ simple.el 20 Jul 2009 20:45:21 -0000 @@ -5254,7 +5254,7 @@ :type 'boolean :group 'paren-blinking) -(defcustom blink-matching-paren-distance (* 25 1024) +(defcustom blink-matching-paren-distance (* 50 1024) "If non-nil, maximum distance to search backwards for matching open-paren. If nil, search stops at the beginning of the accessible portion of the buffer." :type '(choice (const nil) integer) --Apple-Mail-3--767152792 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-3--767152792-- ------------=_1248230405-3066-1--