diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 34 |
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 | |||
| 3709 | DEFUN ("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 | ||
| 3709 | static void | 3719 | static void |
| 3710 | make_dummy_parent (Lisp_Object window) | 3720 | make_dummy_parent (Lisp_Object window) |
| @@ -6390,28 +6400,6 @@ redirection (see `redirect-frame-focus'). */) | |||
| 6390 | return (tem); | 6400 | return (tem); |
| 6391 | } | 6401 | } |
| 6392 | 6402 | ||
| 6393 | DEFUN ("save-window-excursion", Fsave_window_excursion, Ssave_window_excursion, | ||
| 6394 | 0, UNEVALLED, 0, | ||
| 6395 | doc: /* Execute BODY, preserving window sizes and contents. | ||
| 6396 | Return the value of the last form in BODY. | ||
| 6397 | Restore which buffer appears in which window, where display starts, | ||
| 6398 | and the value of point and mark for each window. | ||
| 6399 | Also restore the choice of selected window. | ||
| 6400 | Also restore which buffer is current. | ||
| 6401 | Does not restore the value of point in current buffer. | ||
| 6402 | usage: (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); |