all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: How to debug this problem?
Date: Wed, 09 Sep 2009 23:21:30 -0400	[thread overview]
Message-ID: <jwv3a6vo5p2.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <xbaityzckky0.fsf@cam.ac.uk> (Leo's message of "Wed, 09 Sep 2009 19:54:47 +0100")

> 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))




  reply	other threads:[~2009-09-10  3:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-13 15:08 How to debug this problem? Leo
2009-09-04  2:15 ` Stefan Monnier
2009-09-04  8:24   ` Leo
2009-09-04 17:36     ` Stefan Monnier
2009-09-05  0:10       ` Leo
2009-09-08 16:03         ` Stefan Monnier
2009-09-08 21:28           ` Leo
2009-09-09  3:08             ` Stefan Monnier
2009-09-09  9:21               ` Leo
2009-09-09 14:26                 ` Stefan Monnier
2009-09-09 18:54                   ` Leo
2009-09-10  3:21                     ` Stefan Monnier [this message]
2009-09-10  9:21                       ` Leo
2009-09-10 15:00                       ` Richard Stallman
2009-09-11 16:46                         ` Andreas Schwab
2009-09-11 21:01                           ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv3a6vo5p2.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.