aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-01 13:19:36 -0700
committerPaul Eggert2011-04-01 13:19:36 -0700
commit6ddae4efd9e8a3035eb610c39fb2c8f79e7f9893 (patch)
tree1b704b34e4f2f2bd4a6f13e4d1dd058c61c8a6ff /src/window.c
parent0b918413f336dbfa9a9c266ae857bce103556c57 (diff)
parent034086489cff2a23cb4d9f8c536e18456be617ef (diff)
downloademacs-6ddae4efd9e8a3035eb610c39fb2c8f79e7f9893.tar.gz
emacs-6ddae4efd9e8a3035eb610c39fb2c8f79e7f9893.zip
Merge from mainline.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c34
1 files changed, 11 insertions, 23 deletions
diff --git a/src/window.c b/src/window.c
index 0d299b7cd93..5ca46dd3316 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3705,6 +3705,16 @@ temp_output_buffer_show (register Lisp_Object buf)
3705 } 3705 }
3706 } 3706 }
3707} 3707}
3708
3709DEFUN ("internal-temp-output-buffer-show",
3710 Ftemp_output_buffer_show, Stemp_output_buffer_show,
3711 1, 1, 0,
3712 doc: /* Internal function for `with-output-to-temp-buffer''. */)
3713 (Lisp_Object buf)
3714{
3715 temp_output_buffer_show (buf);
3716 return Qnil;
3717}
3708 3718
3709static void 3719static void
3710make_dummy_parent (Lisp_Object window) 3720make_dummy_parent (Lisp_Object window)
@@ -6390,28 +6400,6 @@ redirection (see `redirect-frame-focus'). */)
6390 return (tem); 6400 return (tem);
6391} 6401}
6392 6402
6393DEFUN ("save-window-excursion", Fsave_window_excursion, Ssave_window_excursion,
6394 0, UNEVALLED, 0,
6395 doc: /* Execute BODY, preserving window sizes and contents.
6396Return the value of the last form in BODY.
6397Restore which buffer appears in which window, where display starts,
6398and the value of point and mark for each window.
6399Also restore the choice of selected window.
6400Also restore which buffer is current.
6401Does not restore the value of point in current buffer.
6402usage: (save-window-excursion BODY...) */)
6403 (Lisp_Object args)
6404{
6405 register Lisp_Object val;
6406 register int count = SPECPDL_INDEX ();
6407
6408 record_unwind_protect (Fset_window_configuration,
6409 Fcurrent_window_configuration (Qnil));
6410 val = Fprogn (args);
6411 return unbind_to (count, val);
6412}
6413
6414
6415 6403
6416/*********************************************************************** 6404/***********************************************************************
6417 Window Split Tree 6405 Window Split Tree
@@ -7167,6 +7155,7 @@ frame to be redrawn only if it is a tty frame. */);
7167 defsubr (&Sset_window_buffer); 7155 defsubr (&Sset_window_buffer);
7168 defsubr (&Sselect_window); 7156 defsubr (&Sselect_window);
7169 defsubr (&Sforce_window_update); 7157 defsubr (&Sforce_window_update);
7158 defsubr (&Stemp_output_buffer_show);
7170 defsubr (&Ssplit_window); 7159 defsubr (&Ssplit_window);
7171 defsubr (&Senlarge_window); 7160 defsubr (&Senlarge_window);
7172 defsubr (&Sshrink_window); 7161 defsubr (&Sshrink_window);
@@ -7185,7 +7174,6 @@ frame to be redrawn only if it is a tty frame. */);
7185 defsubr (&Swindow_configuration_frame); 7174 defsubr (&Swindow_configuration_frame);
7186 defsubr (&Sset_window_configuration); 7175 defsubr (&Sset_window_configuration);
7187 defsubr (&Scurrent_window_configuration); 7176 defsubr (&Scurrent_window_configuration);
7188 defsubr (&Ssave_window_excursion);
7189 defsubr (&Swindow_tree); 7177 defsubr (&Swindow_tree);
7190 defsubr (&Sset_window_margins); 7178 defsubr (&Sset_window_margins);
7191 defsubr (&Swindow_margins); 7179 defsubr (&Swindow_margins);