diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-09-10 03:20:51 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-09-10 03:20:51 +0000 |
commit | 19f48442c84ae8c3b615d0ac834643b88c657e1c (patch) | |
tree | 930c7fdec48ccb75895f2d0889802860d8bae18b /src/xdisp.c | |
parent | 72d83b260c2a63b300c6587c85183e42e6df2526 (diff) | |
download | emacs-19f48442c84ae8c3b615d0ac834643b88c657e1c.tar.gz |
(display_mode_element): Move list length limit from 50 to
5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
Diffstat (limited to 'src/xdisp.c')
-rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index f67081a959d..9108ab6bf72 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -17750,8 +17750,12 @@ display_mode_element (it, depth, field_width, precision, elt, props, risky) } 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)) |