From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How to debug this problem? Date: Wed, 09 Sep 2009 23:21:30 -0400 Message-ID: References: <20a0c1020909041710j216381cbj313e4400ce02a940@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252554636 4574 80.91.229.12 (10 Sep 2009 03:50:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2009 03:50:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 10 05:50:29 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mlag1-00026X-CG for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2009 05:50:29 +0200 Original-Received: from localhost ([127.0.0.1]:55131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mlag0-0004ka-Ri for ged-emacs-devel@m.gmane.org; Wed, 09 Sep 2009 23:50:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mlafv-0004kB-8E for emacs-devel@gnu.org; Wed, 09 Sep 2009 23:50:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mlafq-0004jt-Oo for emacs-devel@gnu.org; Wed, 09 Sep 2009 23:50:22 -0400 Original-Received: from [199.232.76.173] (port=43740 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mlafq-0004jq-AU for emacs-devel@gnu.org; Wed, 09 Sep 2009 23:50:18 -0400 Original-Received: from [206.248.154.183] (port=29519 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mlafp-0008Fn-WE for emacs-devel@gnu.org; Wed, 09 Sep 2009 23:50:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAPMNqEpFpZBe/2dsb2JhbACBU9xvhBgFh20 X-IronPort-AV: E=Sophos;i="4.44,361,1249272000"; d="scan'208";a="45492216" Original-Received: from 69-165-144-94.dsl.teksavvy.com (HELO pastel.home) ([69.165.144.94]) by ironport2-out.pppoe.ca with ESMTP; 09 Sep 2009 23:20:02 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 5122E941B; Wed, 9 Sep 2009 23:21:30 -0400 (EDT) In-Reply-To: (Leo's message of "Wed, 09 Sep 2009 19:54:47 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-Greylist: delayed 1726 seconds by postgrey-1.27 at monty-python; Wed, 09 Sep 2009 23:50:17 EDT X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115169 Archived-At: > This is the smallest list I can reproduce the problem. If I delete any > of them, it returns " Paredit Ovwrt". I see: your list has 50 entries. And indeed the C code says: [...] else if (STRINGP (car) || CONSP (car)) { register int limit = 50; /* Limit is to protect against circular lists. */ [...] so it looks like you bumped into a hard-coded limit. I've just installed the patch below which should move the hard limit far enough for now. Stefan --- xdisp.c.~1.1297.~ 2009-09-08 21:20:35.000000000 -0400 +++ xdisp.c 2009-09-09 23:17:16.000000000 -0400 @@ -17750,8 +17750,12 @@ } else if (STRINGP (car) || CONSP (car)) { - register int limit = 50; - /* Limit is to protect against circular lists. */ + register int limit = 5000; + /* Limit is to protect against circular lists. + The limit used to be 50, but if you use enough minor modes, + minor-mode-alist will easily grow past 50. Circular lists + are rather unlikely, so it's better for the limit to be + "too large" rather than "too small". */ while (CONSP (elt) && --limit > 0 && (precision <= 0 || n < precision))