Mercurial > emacs
diff src/xdisp.c @ 104904:9d2e34daf3ab
(display_mode_element): Move list length limit from 50 to
5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 10 Sep 2009 03:20:51 +0000 |
parents | 3fea2465f700 |
children | eee8cf0c23f0 |
line wrap: on
line diff
--- a/src/xdisp.c Thu Sep 10 03:03:27 2009 +0000 +++ b/src/xdisp.c Thu Sep 10 03:20:51 2009 +0000 @@ -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))