diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/src/window.c b/src/window.c index a8a6fceaaee..5d059535614 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -50,10 +50,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 50 | #include "nsterm.h" | 50 | #include "nsterm.h" |
| 51 | #endif | 51 | #endif |
| 52 | 52 | ||
| 53 | Lisp_Object Qwindowp, Qwindow_live_p, Qwindow_configuration_p; | 53 | Lisp_Object Qwindowp, Qwindow_live_p; |
| 54 | Lisp_Object Qdisplay_buffer; | 54 | static Lisp_Object Qwindow_configuration_p; |
| 55 | Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; | 55 | static Lisp_Object Qdisplay_buffer; |
| 56 | Lisp_Object Qwindow_size_fixed; | 56 | static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; |
| 57 | static Lisp_Object Qwindow_size_fixed; | ||
| 57 | 58 | ||
| 58 | static int displayed_window_lines (struct window *); | 59 | static int displayed_window_lines (struct window *); |
| 59 | static struct window *decode_window (Lisp_Object); | 60 | static struct window *decode_window (Lisp_Object); |
| @@ -116,7 +117,7 @@ Lisp_Object minibuf_selected_window; | |||
| 116 | 117 | ||
| 117 | /* Hook run at end of temp_output_buffer_show. */ | 118 | /* Hook run at end of temp_output_buffer_show. */ |
| 118 | 119 | ||
| 119 | Lisp_Object Qtemp_buffer_show_hook; | 120 | static Lisp_Object Qtemp_buffer_show_hook; |
| 120 | 121 | ||
| 121 | /* Incremented for each window created. */ | 122 | /* Incremented for each window created. */ |
| 122 | 123 | ||
| @@ -131,7 +132,7 @@ static int window_initialized; | |||
| 131 | static Lisp_Object Qwindow_configuration_change_hook; | 132 | static Lisp_Object Qwindow_configuration_change_hook; |
| 132 | /* Incremented by 1 whenever a window is deleted. */ | 133 | /* Incremented by 1 whenever a window is deleted. */ |
| 133 | 134 | ||
| 134 | int window_deletion_count; | 135 | static int window_deletion_count; |
| 135 | 136 | ||
| 136 | /* Used by the function window_scroll_pixel_based */ | 137 | /* Used by the function window_scroll_pixel_based */ |
| 137 | 138 | ||
| @@ -235,7 +236,8 @@ used by that frame. */) | |||
| 235 | return FRAME_MINIBUF_WINDOW (XFRAME (frame)); | 236 | return FRAME_MINIBUF_WINDOW (XFRAME (frame)); |
| 236 | } | 237 | } |
| 237 | 238 | ||
| 238 | DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p, Swindow_minibuffer_p, 0, 1, 0, | 239 | DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p, |
| 240 | Swindow_minibuffer_p, 0, 1, 0, | ||
| 239 | doc: /* Return non-nil if WINDOW is a minibuffer window. | 241 | doc: /* Return non-nil if WINDOW is a minibuffer window. |
| 240 | WINDOW defaults to the selected window. */) | 242 | WINDOW defaults to the selected window. */) |
| 241 | (Lisp_Object window) | 243 | (Lisp_Object window) |
| @@ -2336,6 +2338,7 @@ window_loop (enum window_loop type, Lisp_Object obj, int mini, Lisp_Object frame | |||
| 2336 | 2338 | ||
| 2337 | /* Used for debugging. Abort if any window has a dead buffer. */ | 2339 | /* Used for debugging. Abort if any window has a dead buffer. */ |
| 2338 | 2340 | ||
| 2341 | extern void check_all_windows (void) EXTERNALLY_VISIBLE; | ||
| 2339 | void | 2342 | void |
| 2340 | check_all_windows (void) | 2343 | check_all_windows (void) |
| 2341 | { | 2344 | { |
| @@ -3275,8 +3278,12 @@ change_window_heights (Lisp_Object window, int n) | |||
| 3275 | 3278 | ||
| 3276 | int window_select_count; | 3279 | int window_select_count; |
| 3277 | 3280 | ||
| 3278 | EXFUN (Fset_window_fringes, 4); | 3281 | static Lisp_Object Fset_window_margins (Lisp_Object, Lisp_Object, Lisp_Object); |
| 3279 | EXFUN (Fset_window_scroll_bars, 4); | 3282 | static Lisp_Object Fset_window_fringes (Lisp_Object, Lisp_Object, Lisp_Object, |
| 3283 | Lisp_Object); | ||
| 3284 | static Lisp_Object Fset_window_scroll_bars (Lisp_Object, Lisp_Object, | ||
| 3285 | Lisp_Object, Lisp_Object); | ||
| 3286 | static Lisp_Object Fset_window_vscroll (Lisp_Object, Lisp_Object, Lisp_Object); | ||
| 3280 | 3287 | ||
| 3281 | static void | 3288 | static void |
| 3282 | run_funs (Lisp_Object funs) | 3289 | run_funs (Lisp_Object funs) |
| @@ -6607,8 +6614,8 @@ Value is a list of the form (LEFT-WIDTH RIGHT-WIDTH OUTSIDE-MARGINS). */) | |||
| 6607 | Scroll bars | 6614 | Scroll bars |
| 6608 | ***********************************************************************/ | 6615 | ***********************************************************************/ |
| 6609 | 6616 | ||
| 6610 | DEFUN ("set-window-scroll-bars", Fset_window_scroll_bars, Sset_window_scroll_bars, | 6617 | DEFUN ("set-window-scroll-bars", Fset_window_scroll_bars, |
| 6611 | 2, 4, 0, | 6618 | Sset_window_scroll_bars, 2, 4, 0, |
| 6612 | doc: /* Set width and type of scroll bars of window WINDOW. | 6619 | doc: /* Set width and type of scroll bars of window WINDOW. |
| 6613 | If window is nil, set scroll bars of the currently selected window. | 6620 | If window is nil, set scroll bars of the currently selected window. |
| 6614 | Second parameter WIDTH specifies the pixel width for the scroll bar; | 6621 | Second parameter WIDTH specifies the pixel width for the scroll bar; |