aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c
index 5c5d2b8e138..f66099c1b9b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3089,18 +3089,18 @@ run_funs (Lisp_Object funs)
3089 call0 (XCAR (funs)); 3089 call0 (XCAR (funs));
3090} 3090}
3091 3091
3092static Lisp_Object 3092static void
3093select_window_norecord (Lisp_Object window) 3093select_window_norecord (Lisp_Object window)
3094{ 3094{
3095 return WINDOW_LIVE_P (window) 3095 if (WINDOW_LIVE_P (window))
3096 ? Fselect_window (window, Qt) : selected_window; 3096 Fselect_window (window, Qt);
3097} 3097}
3098 3098
3099static Lisp_Object 3099static void
3100select_frame_norecord (Lisp_Object frame) 3100select_frame_norecord (Lisp_Object frame)
3101{ 3101{
3102 return FRAME_LIVE_P (XFRAME (frame)) 3102 if (FRAME_LIVE_P (XFRAME (frame)))
3103 ? Fselect_frame (frame, Qt) : selected_frame; 3103 Fselect_frame (frame, Qt);
3104} 3104}
3105 3105
3106void 3106void
@@ -3413,7 +3413,7 @@ temp_output_buffer_show (register Lisp_Object buf)
3413 Note: Both Fselect_window and select_window_norecord may 3413 Note: Both Fselect_window and select_window_norecord may
3414 set-buffer to the buffer displayed in the window, 3414 set-buffer to the buffer displayed in the window,
3415 so we need to save the current buffer. --stef */ 3415 so we need to save the current buffer. --stef */
3416 record_unwind_protect (Fset_buffer, prev_buffer); 3416 record_unwind_protect (restore_buffer, prev_buffer);
3417 record_unwind_protect (select_window_norecord, prev_window); 3417 record_unwind_protect (select_window_norecord, prev_window);
3418 Fselect_window (window, Qt); 3418 Fselect_window (window, Qt);
3419 Fset_buffer (w->contents); 3419 Fset_buffer (w->contents);
@@ -5879,6 +5879,12 @@ the return value is nil. Otherwise the value is t. */)
5879 return (FRAME_LIVE_P (f) ? Qt : Qnil); 5879 return (FRAME_LIVE_P (f) ? Qt : Qnil);
5880} 5880}
5881 5881
5882void
5883restore_window_configuration (Lisp_Object configuration)
5884{
5885 Fset_window_configuration (configuration);
5886}
5887
5882 5888
5883/* If WINDOW is an internal window, recursively delete all child windows 5889/* If WINDOW is an internal window, recursively delete all child windows
5884 reachable via the next and contents slots of WINDOW. Otherwise setup 5890 reachable via the next and contents slots of WINDOW. Otherwise setup