Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
19f48442
Commit
19f48442
authored
Sep 10, 2009
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(display_mode_element): Move list length limit from 50 to
5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
parent
72d83b26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/xdisp.c
src/xdisp.c
+6
-2
No files found.
src/ChangeLog
View file @
19f48442
2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
* xdisp.c (display_mode_element): Move list length limit from 50 to
5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
* nsfont.m (ns_get_family): Don't force first letter to uppercase.
* nsfont.m (ns_get_family): Don't force first letter to uppercase.
...
...
src/xdisp.c
View file @
19f48442
...
@@ -17750,8 +17750,12 @@ display_mode_element (it, depth, field_width, precision, elt, props, risky)
...
@@ -17750,8 +17750,12 @@ display_mode_element (it, depth, field_width, precision, elt, props, risky)
}
}
else if (STRINGP (car) || CONSP (car))
else if (STRINGP (car) || CONSP (car))
{
{
register int limit = 50;
register int limit = 5000;
/* Limit is to protect against circular lists. */
/* 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)
while (CONSP (elt)
&& --limit > 0
&& --limit > 0
&& (precision <= 0 || n < precision))
&& (precision <= 0 || n < precision))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment