diff options
| author | David Ponce | 2004-05-19 07:38:57 +0000 |
|---|---|---|
| committer | David Ponce | 2004-05-19 07:38:57 +0000 |
| commit | 9a6a4c407912354dec8722ff58fc0dc0e6633af7 (patch) | |
| tree | 724386fcf3a5a24ce9bbfb003335d378fbb2fe64 /src | |
| parent | 15aa77901c5a249717dbac8a26ed6990d1e895bd (diff) | |
| download | emacs-9a6a4c407912354dec8722ff58fc0dc0e6633af7.tar.gz emacs-9a6a4c407912354dec8722ff58fc0dc0e6633af7.zip | |
(print): Reset print_depth before to call print_object.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/print.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 736358ee951..386a346afa0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2004-05-18 David Ponce <david@dponce.com> | ||
| 2 | |||
| 3 | * print.c (print): Reset print_depth before to call print_object. | ||
| 4 | |||
| 1 | 2004-05-18 Jason Rumney <jasonr@gnu.org> | 5 | 2004-05-18 Jason Rumney <jasonr@gnu.org> |
| 2 | 6 | ||
| 3 | * w32console.c: Prefix RIF functions with w32con_ to avoid | 7 | * w32console.c: Prefix RIF functions with w32con_ to avoid |
diff --git a/src/print.c b/src/print.c index 74f8fad8d15..0e07cd6fdd3 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -1220,7 +1220,6 @@ print (obj, printcharfun, escapeflag) | |||
| 1220 | register Lisp_Object printcharfun; | 1220 | register Lisp_Object printcharfun; |
| 1221 | int escapeflag; | 1221 | int escapeflag; |
| 1222 | { | 1222 | { |
| 1223 | print_depth = 0; | ||
| 1224 | old_backquote_output = 0; | 1223 | old_backquote_output = 0; |
| 1225 | 1224 | ||
| 1226 | /* Reset print_number_index and Vprint_number_table only when | 1225 | /* Reset print_number_index and Vprint_number_table only when |
| @@ -1240,6 +1239,7 @@ print (obj, printcharfun, escapeflag) | |||
| 1240 | start = index = print_number_index; | 1239 | start = index = print_number_index; |
| 1241 | /* Construct Vprint_number_table. | 1240 | /* Construct Vprint_number_table. |
| 1242 | This increments print_number_index for the objects added. */ | 1241 | This increments print_number_index for the objects added. */ |
| 1242 | print_depth = 0; | ||
| 1243 | print_preprocess (obj); | 1243 | print_preprocess (obj); |
| 1244 | 1244 | ||
| 1245 | /* Remove unnecessary objects, which appear only once in OBJ; | 1245 | /* Remove unnecessary objects, which appear only once in OBJ; |
| @@ -1264,6 +1264,7 @@ print (obj, printcharfun, escapeflag) | |||
| 1264 | print_number_index = index; | 1264 | print_number_index = index; |
| 1265 | } | 1265 | } |
| 1266 | 1266 | ||
| 1267 | print_depth = 0; | ||
| 1267 | print_object (obj, printcharfun, escapeflag); | 1268 | print_object (obj, printcharfun, escapeflag); |
| 1268 | } | 1269 | } |
| 1269 | 1270 | ||