changeset 19627:c6343f7a9c6c

(change_frame_size_1): Save current buffer around calling Fset_window_buffer.
author Richard M. Stallman <rms@gnu.org>
date Sat, 30 Aug 1997 17:51:22 +0000
parents a9f87afd5ac6
children 3be882bc0211
files src/dispnew.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Sat Aug 30 16:20:02 1997 +0000
+++ b/src/dispnew.c	Sat Aug 30 17:51:22 1997 +0000
@@ -2126,6 +2126,7 @@
 {
   int new_frame_window_width;
   unsigned int total_glyphs;
+  int count = specpdl_ptr - specpdl;
 
   /* If we can't deal with the change now, queue it for later.  */
   if (delay)
@@ -2232,9 +2233,13 @@
 
   UNBLOCK_INPUT;
 
+  record_unwind_protect (Fset_buffer, Fcurrent_buffer ());
+
   /* This isn't quite a no-op: it runs window-configuration-change-hook.  */
   Fset_window_buffer (FRAME_SELECTED_WINDOW (frame),
 		      XWINDOW (FRAME_SELECTED_WINDOW (frame))->buffer);
+
+  unbind_to (count, Qnil);
 }
 
 DEFUN ("send-string-to-terminal", Fsend_string_to_terminal,