aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorJoakim Verona2015-01-11 18:40:21 +0100
committerJoakim Verona2015-01-11 18:40:21 +0100
commitcc7cb20d6abc0f862e5513b24831bba0eaecaa5f (patch)
treeafc2fc05401504aa0c28699dc3bc155c5b0d7f58 /src/window.c
parentd972b504f30ff4300ba368940751e8736dddf0b4 (diff)
parent9a57bda31569294ecaf8138a06e5edda9c0d87e3 (diff)
downloademacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.tar.gz
emacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.zip
merge master, fix conflicts
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c27
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
51Lisp_Object Qwindowp, Qwindow_live_p;
52static Lisp_Object Qwindow_valid_p;
53static Lisp_Object Qwindow_configuration_p;
54static Lisp_Object Qrecord_window_buffer;
55static Lisp_Object Qwindow_deletable_p, Qdelete_window, Qdisplay_buffer;
56static Lisp_Object Qreplace_buffer_in_windows, Qget_mru_window;
57static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically;
58static Lisp_Object Qwindow_sanitize_window_sizes;
59static Lisp_Object Qwindow_pixel_to_total;
60static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command;
61static Lisp_Object Qsafe, Qabove, Qbelow, Qwindow_size, Qclone_of;
62static Lisp_Object Qfloor, Qceiling;
63static Lisp_Object Qwindow_point_insertion_type;
64
65static int displayed_window_lines (struct window *); 51static int displayed_window_lines (struct window *);
66static int count_windows (struct window *); 52static int count_windows (struct window *);
67static int get_leaf_windows (struct window *, struct window **, int); 53static 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. */
119Lisp_Object minibuf_selected_window; 105Lisp_Object minibuf_selected_window;
120 106
121/* Hook run at end of temp_output_buffer_show. */
122static Lisp_Object Qtemp_buffer_show_hook;
123
124/* Incremented for each window created. */ 107/* Incremented for each window created. */
125static int sequence_number; 108static int sequence_number;
126 109
127/* Hook to run when window config changes. */
128static 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. */
131static int window_scroll_pixel_based_preserve_x; 111static int window_scroll_pixel_based_preserve_x;
132static int window_scroll_pixel_based_preserve_y; 112static int window_scroll_pixel_based_preserve_y;
@@ -997,7 +977,10 @@ or scroll bars.
997If PIXELWISE is nil, return the largest integer smaller than WINDOW's 977If PIXELWISE is nil, return the largest integer smaller than WINDOW's
998pixel width divided by the character width of WINDOW's frame. This 978pixel width divided by the character width of WINDOW's frame. This
999means that if a column at the right of the text area is only partially 979means that if a column at the right of the text area is only partially
1000visible, that column is not counted. */) 980visible, that column is not counted.
981
982Note that the returned value includes the column reserved for the
983continuation 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 }