diff options
| author | Tom Tromey | 2013-07-26 14:02:53 -0600 |
|---|---|---|
| committer | Tom Tromey | 2013-07-26 14:02:53 -0600 |
| commit | cc231cbe45d27a1906d268fb72d3b4105a2e9c65 (patch) | |
| tree | c011828e2a3a18e77eaa8849e3cccb805d798f42 /src/window.c | |
| parent | b34a529f177a6ea32da5cb1254f91bf9d71838db (diff) | |
| parent | fec9206062b420aca84f53d05a72c3ee43244022 (diff) | |
| download | emacs-cc231cbe45d27a1906d268fb72d3b4105a2e9c65.tar.gz emacs-cc231cbe45d27a1906d268fb72d3b4105a2e9c65.zip | |
merge from trunk
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 ba9728f09af..bf4ce1dbe39 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3086,18 +3086,18 @@ run_funs (Lisp_Object funs) | |||
| 3086 | call0 (XCAR (funs)); | 3086 | call0 (XCAR (funs)); |
| 3087 | } | 3087 | } |
| 3088 | 3088 | ||
| 3089 | static Lisp_Object | 3089 | static void |
| 3090 | select_window_norecord (Lisp_Object window) | 3090 | select_window_norecord (Lisp_Object window) |
| 3091 | { | 3091 | { |
| 3092 | return WINDOW_LIVE_P (window) | 3092 | if (WINDOW_LIVE_P (window)) |
| 3093 | ? Fselect_window (window, Qt) : selected_window; | 3093 | Fselect_window (window, Qt); |
| 3094 | } | 3094 | } |
| 3095 | 3095 | ||
| 3096 | static Lisp_Object | 3096 | static void |
| 3097 | select_frame_norecord (Lisp_Object frame) | 3097 | select_frame_norecord (Lisp_Object frame) |
| 3098 | { | 3098 | { |
| 3099 | return FRAME_LIVE_P (XFRAME (frame)) | 3099 | if (FRAME_LIVE_P (XFRAME (frame))) |
| 3100 | ? Fselect_frame (frame, Qt) : selected_frame; | 3100 | Fselect_frame (frame, Qt); |
| 3101 | } | 3101 | } |
| 3102 | 3102 | ||
| 3103 | void | 3103 | void |
| @@ -3410,7 +3410,7 @@ temp_output_buffer_show (register Lisp_Object buf) | |||
| 3410 | Note: Both Fselect_window and select_window_norecord may | 3410 | Note: Both Fselect_window and select_window_norecord may |
| 3411 | set-buffer to the buffer displayed in the window, | 3411 | set-buffer to the buffer displayed in the window, |
| 3412 | so we need to save the current buffer. --stef */ | 3412 | so we need to save the current buffer. --stef */ |
| 3413 | record_unwind_protect (Fset_buffer, prev_buffer); | 3413 | record_unwind_protect (restore_buffer, prev_buffer); |
| 3414 | record_unwind_protect (select_window_norecord, prev_window); | 3414 | record_unwind_protect (select_window_norecord, prev_window); |
| 3415 | Fselect_window (window, Qt); | 3415 | Fselect_window (window, Qt); |
| 3416 | Fset_buffer (w->contents); | 3416 | Fset_buffer (w->contents); |
| @@ -5873,6 +5873,12 @@ the return value is nil. Otherwise the value is t. */) | |||
| 5873 | return (FRAME_LIVE_P (f) ? Qt : Qnil); | 5873 | return (FRAME_LIVE_P (f) ? Qt : Qnil); |
| 5874 | } | 5874 | } |
| 5875 | 5875 | ||
| 5876 | void | ||
| 5877 | restore_window_configuration (Lisp_Object configuration) | ||
| 5878 | { | ||
| 5879 | Fset_window_configuration (configuration); | ||
| 5880 | } | ||
| 5881 | |||
| 5876 | 5882 | ||
| 5877 | /* If WINDOW is an internal window, recursively delete all child windows | 5883 | /* If WINDOW is an internal window, recursively delete all child windows |
| 5878 | reachable via the next and contents slots of WINDOW. Otherwise setup | 5884 | reachable via the next and contents slots of WINDOW. Otherwise setup |