diff options
| author | Joakim Verona | 2013-07-20 01:44:36 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-07-20 01:44:36 +0200 |
| commit | 759dbb1aebe68fb392f7ed53eba4b460ae6b83be (patch) | |
| tree | 1becc0cc6d676589eb274cb2c457e4256e908010 /src/window.c | |
| parent | 6c1769c85ecb61b40a1f9a3b56b61cdd6c1f8992 (diff) | |
| parent | 3f5bef16fab0ba83cb2298f8137fec831af1aec4 (diff) | |
| download | emacs-759dbb1aebe68fb392f7ed53eba4b460ae6b83be.tar.gz emacs-759dbb1aebe68fb392f7ed53eba4b460ae6b83be.zip | |
Merge branch 'trunk' into xwidget
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 20 |
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 | ||
| 3092 | static Lisp_Object | 3092 | static void |
| 3093 | select_window_norecord (Lisp_Object window) | 3093 | select_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 | ||
| 3099 | static Lisp_Object | 3099 | static void |
| 3100 | select_frame_norecord (Lisp_Object frame) | 3100 | select_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 | ||
| 3106 | void | 3106 | void |
| @@ -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 | ||
| 5882 | void | ||
| 5883 | restore_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 |