aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-02-20 21:54:26 +0000
committerGerd Moellmann2000-02-20 21:54:26 +0000
commit1d92afcdb4f94e02948d6914923221aa025dd00b (patch)
tree71ab6f367a30cd243b9d298a70d39195c42e179a /src
parent2be80b63e783039ddf68ec968ec7fab760a90b7c (diff)
downloademacs-1d92afcdb4f94e02948d6914923221aa025dd00b.tar.gz
emacs-1d92afcdb4f94e02948d6914923221aa025dd00b.zip
(Finsert_file_contents): Unbind the binding of
standard-output done by temp_output_buffer_setup.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fileio.c10
2 files changed, 14 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e7ba55229b8..01a86c89df1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,4 +1,7 @@
12000-02-19 Gerd Moellmann <gerd@gnu.org> 12000-02-20 Gerd Moellmann <gerd@gnu.org>
2
3 * fileio.c (Finsert_file_contents): Unbind the binding of
4 standard-output done by temp_output_buffer_setup.
2 5
3 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless 6 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
4 Vmocklisp_arguments is nil. Inline Fcar and Fcdr. 7 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
diff --git a/src/fileio.c b/src/fileio.c
index d693369ddfe..1d3da63ba5c 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3543,9 +3543,15 @@ actually used.")
3543 else if (nread > 0) 3543 else if (nread > 0)
3544 { 3544 {
3545 struct buffer *prev = current_buffer; 3545 struct buffer *prev = current_buffer;
3546 int count1;
3546 3547
3547 record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); 3548 record_unwind_protect (Fset_buffer, Fcurrent_buffer ());
3549
3550 /* The call to temp_output_buffer_setup binds
3551 standard-output. */
3552 count1 = specpdl_ptr - specpdl;
3548 temp_output_buffer_setup (" *code-converting-work*"); 3553 temp_output_buffer_setup (" *code-converting-work*");
3554
3549 set_buffer_internal (XBUFFER (Vstandard_output)); 3555 set_buffer_internal (XBUFFER (Vstandard_output));
3550 current_buffer->enable_multibyte_characters = Qnil; 3556 current_buffer->enable_multibyte_characters = Qnil;
3551 insert_1_both (read_buf, nread, nread, 0, 0, 0); 3557 insert_1_both (read_buf, nread, nread, 0, 0, 0);
@@ -3553,6 +3559,10 @@ actually used.")
3553 val = call2 (Vset_auto_coding_function, 3559 val = call2 (Vset_auto_coding_function,
3554 filename, make_number (nread)); 3560 filename, make_number (nread));
3555 set_buffer_internal (prev); 3561 set_buffer_internal (prev);
3562
3563 /* Remove the binding for standard-output. */
3564 unbind_to (count1, Qnil);
3565
3556 /* Discard the unwind protect for recovering the 3566 /* Discard the unwind protect for recovering the
3557 current buffer. */ 3567 current buffer. */
3558 specpdl_ptr--; 3568 specpdl_ptr--;