aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/print.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/print.c b/src/print.c
index 4937660e5e6..6abad4f7c61 100644
--- a/src/print.c
+++ b/src/print.c
@@ -660,15 +660,16 @@ buffer and calling the hook. It gets one argument, the buffer to display.")
660 660
661 GCPRO1(args); 661 GCPRO1(args);
662 name = Feval (Fcar (args)); 662 name = Feval (Fcar (args));
663 UNGCPRO;
664
665 CHECK_STRING (name, 0); 663 CHECK_STRING (name, 0);
666 temp_output_buffer_setup (XSTRING (name)->data); 664 temp_output_buffer_setup (XSTRING (name)->data);
667 buf = Vstandard_output; 665 buf = Vstandard_output;
666 UNGCPRO;
668 667
669 val = Fprogn (Fcdr (args)); 668 val = Fprogn (XCDR (args));
670 669
670 GCPRO1 (val);
671 temp_output_buffer_show (buf); 671 temp_output_buffer_show (buf);
672 UNGCPRO;
672 673
673 return unbind_to (count, val); 674 return unbind_to (count, val);
674} 675}
@@ -1247,8 +1248,8 @@ print_preprocess (obj)
1247 { 1248 {
1248 case Lisp_String: 1249 case Lisp_String:
1249 /* A string may have text properties, which can be circular. */ 1250 /* A string may have text properties, which can be circular. */
1250 traverse_intervals (XSTRING (obj)->intervals, 0, 0, 1251 traverse_intervals_noorder (XSTRING (obj)->intervals,
1251 print_preprocess_string, Qnil); 1252 print_preprocess_string, Qnil);
1252 break; 1253 break;
1253 1254
1254 case Lisp_Cons: 1255 case Lisp_Cons:
@@ -1467,7 +1468,7 @@ print_object (obj, printcharfun, escapeflag)
1467 if (!NULL_INTERVAL_P (XSTRING (obj)->intervals)) 1468 if (!NULL_INTERVAL_P (XSTRING (obj)->intervals))
1468 { 1469 {
1469 traverse_intervals (XSTRING (obj)->intervals, 1470 traverse_intervals (XSTRING (obj)->intervals,
1470 0, 0, print_interval, printcharfun); 1471 0, print_interval, printcharfun);
1471 PRINTCHAR (')'); 1472 PRINTCHAR (')');
1472 } 1473 }
1473 1474