diff options
| author | Chong Yidong | 2005-12-17 15:51:00 +0000 |
|---|---|---|
| committer | Chong Yidong | 2005-12-17 15:51:00 +0000 |
| commit | 04df9646f2cc5a6c4a9b5e1e071cbd69c50e6dde (patch) | |
| tree | 5928a35e725bd8aa8de9028c7b502c39b2d3bef7 /src | |
| parent | 2173b582522155b300df30749ebc93ff91565261 (diff) | |
| download | emacs-04df9646f2cc5a6c4a9b5e1e071cbd69c50e6dde.tar.gz emacs-04df9646f2cc5a6c4a9b5e1e071cbd69c50e6dde.zip | |
Revert last change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/print.c | 10 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 97c51956cf7..d3fb40197b3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,8 +1,3 @@ | |||
| 1 | 2005-12-17 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * print.c (print_preprocess): Just signal an error if print_depth | ||
| 4 | is exceeded. | ||
| 5 | |||
| 6 | 2005-12-17 Eli Zaretskii <eliz@gnu.org> | 1 | 2005-12-17 Eli Zaretskii <eliz@gnu.org> |
| 7 | 2 | ||
| 8 | * .gdbinit: Set a breakpoint on w32_abort. | 3 | * .gdbinit: Set a breakpoint on w32_abort. |
diff --git a/src/print.c b/src/print.c index 20c359f9b69..ed6b402763a 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -1313,8 +1313,14 @@ print_preprocess (obj) | |||
| 1313 | 1313 | ||
| 1314 | /* Give up if we go so deep that print_object will get an error. */ | 1314 | /* Give up if we go so deep that print_object will get an error. */ |
| 1315 | /* See similar code in print_object. */ | 1315 | /* See similar code in print_object. */ |
| 1316 | if (print_depth >= PRINT_CIRCLE) | 1316 | /* Because print_preprocess "follows" nested lists in a slightly |
| 1317 | error ("Apparently circular structure being printed"); | 1317 | different order from print_object, there is a risk of giving up |
| 1318 | too soon. In that case, a deeply nested circular list may cause | ||
| 1319 | print_object to loop. Using 3 * PRINT_CIRCLE should make this | ||
| 1320 | possibility negligible, but at some point someone will have to | ||
| 1321 | sit down and do a more careful analysis. -- cyd */ | ||
| 1322 | if (print_depth >= 3 * PRINT_CIRCLE) | ||
| 1323 | return; | ||
| 1318 | 1324 | ||
| 1319 | /* Avoid infinite recursion for circular nested structure | 1325 | /* Avoid infinite recursion for circular nested structure |
| 1320 | in the case where Vprint_circle is nil. */ | 1326 | in the case where Vprint_circle is nil. */ |