aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-24 04:18:02 +0000
committerRichard M. Stallman1994-07-24 04:18:02 +0000
commit0ab39c81aec378bfc18f9b6d9731f3fe018073c2 (patch)
tree212a573e1116b049287e3c1ee25c93c345edf228 /src
parent486cc7fb6a16ef059bde9167606742950e5af5c8 (diff)
downloademacs-0ab39c81aec378bfc18f9b6d9731f3fe018073c2.tar.gz
emacs-0ab39c81aec378bfc18f9b6d9731f3fe018073c2.zip
(internal_with_output_to_temp_buffer): gcpro things.
Diffstat (limited to 'src')
-rw-r--r--src/print.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c
index 4d1db9fe3e5..f6c7d9a3ef3 100644
--- a/src/print.c
+++ b/src/print.c
@@ -399,14 +399,19 @@ internal_with_output_to_temp_buffer (bufname, function, args)
399{ 399{
400 int count = specpdl_ptr - specpdl; 400 int count = specpdl_ptr - specpdl;
401 Lisp_Object buf, val; 401 Lisp_Object buf, val;
402 struct gcpro gcpro1;
402 403
404 GCPRO1 (args);
403 record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); 405 record_unwind_protect (Fset_buffer, Fcurrent_buffer ());
404 temp_output_buffer_setup (bufname); 406 temp_output_buffer_setup (bufname);
405 buf = Vstandard_output; 407 buf = Vstandard_output;
408 UNGCPRO;
406 409
407 val = (*function) (args); 410 val = (*function) (args);
408 411
412 GCPRO1 (val);
409 temp_output_buffer_show (buf); 413 temp_output_buffer_show (buf);
414 UNGCPRO;
410 415
411 return unbind_to (count, val); 416 return unbind_to (count, val);
412} 417}