From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3889: 23.1.50; [PATCH] Increase blink-matching-paren-distance Date: Mon, 20 Jul 2009 13:49:46 -0700 Message-ID: Reply-To: Ian Eure , 3889@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: multipart/mixed; boundary=Apple-Mail-3--767152792 X-Trace: ger.gmane.org 1248123469 6434 80.91.229.12 (20 Jul 2009 20:57:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jul 2009 20:57:49 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 20 22:57:42 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 1MSzvZ-0004Dc-AH for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jul 2009 22:57:41 +0200 Original-Received: from localhost ([127.0.0.1]:52498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSzvY-0004qI-Kp for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jul 2009 16:57:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MSzvS-0004q2-Vq for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2009 16:57:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MSzvQ-0004pn-2E for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2009 16:57:34 -0400 Original-Received: from [199.232.76.173] (port=52805 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSzvP-0004pk-Rj for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2009 16:57:31 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55848) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MSzvP-0007mO-9j for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2009 16:57:31 -0400 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 n6KKvTG3019609; Mon, 20 Jul 2009 13:57:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6KKt4O3018947; Mon, 20 Jul 2009 13:55:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Ian Eure Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 20 Jul 2009 20:55:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3889 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124812299718054 (code B ref -1); Mon, 20 Jul 2009 20:55:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 20 Jul 2009 20:49:57 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 20 Jul 2009 16:57:34 -0400 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:29526 gmane.emacs.pretest.bugs:24822 Archived-At: --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--