diff options
| author | Joakim Verona | 2015-01-11 18:40:21 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-11 18:40:21 +0100 |
| commit | cc7cb20d6abc0f862e5513b24831bba0eaecaa5f (patch) | |
| tree | afc2fc05401504aa0c28699dc3bc155c5b0d7f58 /src/window.c | |
| parent | d972b504f30ff4300ba368940751e8736dddf0b4 (diff) | |
| parent | 9a57bda31569294ecaf8138a06e5edda9c0d87e3 (diff) | |
| download | emacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.tar.gz emacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.zip | |
merge master, fix conflicts
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/src/window.c b/src/window.c index 4da33501323..4dec9768e2c 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -48,20 +48,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 48 | #include "xwidget.h" | 48 | #include "xwidget.h" |
| 49 | #endif | 49 | #endif |
| 50 | 50 | ||
| 51 | Lisp_Object Qwindowp, Qwindow_live_p; | ||
| 52 | static Lisp_Object Qwindow_valid_p; | ||
| 53 | static Lisp_Object Qwindow_configuration_p; | ||
| 54 | static Lisp_Object Qrecord_window_buffer; | ||
| 55 | static Lisp_Object Qwindow_deletable_p, Qdelete_window, Qdisplay_buffer; | ||
| 56 | static Lisp_Object Qreplace_buffer_in_windows, Qget_mru_window; | ||
| 57 | static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically; | ||
| 58 | static Lisp_Object Qwindow_sanitize_window_sizes; | ||
| 59 | static Lisp_Object Qwindow_pixel_to_total; | ||
| 60 | static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; | ||
| 61 | static Lisp_Object Qsafe, Qabove, Qbelow, Qwindow_size, Qclone_of; | ||
| 62 | static Lisp_Object Qfloor, Qceiling; | ||
| 63 | static Lisp_Object Qwindow_point_insertion_type; | ||
| 64 | |||
| 65 | static int displayed_window_lines (struct window *); | 51 | static int displayed_window_lines (struct window *); |
| 66 | static int count_windows (struct window *); | 52 | static int count_windows (struct window *); |
| 67 | static int get_leaf_windows (struct window *, struct window **, int); | 53 | static int get_leaf_windows (struct window *, struct window **, int); |
| @@ -118,15 +104,9 @@ Lisp_Object minibuf_window; | |||
| 118 | shown as the selected window when the minibuffer is selected. */ | 104 | shown as the selected window when the minibuffer is selected. */ |
| 119 | Lisp_Object minibuf_selected_window; | 105 | Lisp_Object minibuf_selected_window; |
| 120 | 106 | ||
| 121 | /* Hook run at end of temp_output_buffer_show. */ | ||
| 122 | static Lisp_Object Qtemp_buffer_show_hook; | ||
| 123 | |||
| 124 | /* Incremented for each window created. */ | 107 | /* Incremented for each window created. */ |
| 125 | static int sequence_number; | 108 | static int sequence_number; |
| 126 | 109 | ||
| 127 | /* Hook to run when window config changes. */ | ||
| 128 | static Lisp_Object Qwindow_configuration_change_hook; | ||
| 129 | |||
| 130 | /* Used by the function window_scroll_pixel_based. */ | 110 | /* Used by the function window_scroll_pixel_based. */ |
| 131 | static int window_scroll_pixel_based_preserve_x; | 111 | static int window_scroll_pixel_based_preserve_x; |
| 132 | static int window_scroll_pixel_based_preserve_y; | 112 | static int window_scroll_pixel_based_preserve_y; |
| @@ -997,7 +977,10 @@ or scroll bars. | |||
| 997 | If PIXELWISE is nil, return the largest integer smaller than WINDOW's | 977 | If PIXELWISE is nil, return the largest integer smaller than WINDOW's |
| 998 | pixel width divided by the character width of WINDOW's frame. This | 978 | pixel width divided by the character width of WINDOW's frame. This |
| 999 | means that if a column at the right of the text area is only partially | 979 | means that if a column at the right of the text area is only partially |
| 1000 | visible, that column is not counted. */) | 980 | visible, that column is not counted. |
| 981 | |||
| 982 | Note that the returned value includes the column reserved for the | ||
| 983 | continuation glyph. */) | ||
| 1001 | (Lisp_Object window, Lisp_Object pixelwise) | 984 | (Lisp_Object window, Lisp_Object pixelwise) |
| 1002 | { | 985 | { |
| 1003 | return make_number (window_body_width (decode_live_window (window), | 986 | return make_number (window_body_width (decode_live_window (window), |
| @@ -3656,7 +3639,7 @@ temp_output_buffer_show (register Lisp_Object buf) | |||
| 3656 | record_unwind_protect (select_window_norecord, prev_window); | 3639 | record_unwind_protect (select_window_norecord, prev_window); |
| 3657 | Fselect_window (window, Qt); | 3640 | Fselect_window (window, Qt); |
| 3658 | Fset_buffer (w->contents); | 3641 | Fset_buffer (w->contents); |
| 3659 | Frun_hooks (1, &Qtemp_buffer_show_hook); | 3642 | run_hook (Qtemp_buffer_show_hook); |
| 3660 | unbind_to (count, Qnil); | 3643 | unbind_to (count, Qnil); |
| 3661 | } | 3644 | } |
| 3662 | } | 3645 | } |