diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/src/window.c b/src/window.c index 7f4714ba17e..e6840a0ebe7 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -177,10 +177,10 @@ WINDOW can be any window and defaults to the selected one. */) | |||
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | DEFUN ("frame-root-window", Fframe_root_window, Sframe_root_window, 0, 1, 0, | 179 | DEFUN ("frame-root-window", Fframe_root_window, Sframe_root_window, 0, 1, 0, |
| 180 | doc: /* Return the root window of FRAME_OR_WINDOW. | 180 | doc: /* Return the root window of FRAME-OR-WINDOW. |
| 181 | If omitted, FRAME_OR_WINDOW defaults to the currently selected frame. | 181 | If omitted, FRAME-OR-WINDOW defaults to the currently selected frame. |
| 182 | Else if FRAME_OR_WINDOW denotes any window, return the root window of | 182 | Else if FRAME-OR-WINDOW denotes any window, return the root window of |
| 183 | that window's frame. If FRAME_OR_WINDOW denotes a live frame, return | 183 | that window's frame. If FRAME-OR-WINDOW denotes a live frame, return |
| 184 | the root window of that frame. */) | 184 | the root window of that frame. */) |
| 185 | (Lisp_Object frame_or_window) | 185 | (Lisp_Object frame_or_window) |
| 186 | { | 186 | { |
| @@ -222,10 +222,10 @@ WINDOW can be any window and defaults to the selected one. */) | |||
| 222 | 222 | ||
| 223 | /* Don't move this to window.el - this must be a safe routine. */ | 223 | /* Don't move this to window.el - this must be a safe routine. */ |
| 224 | DEFUN ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0, | 224 | DEFUN ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0, |
| 225 | doc: /* Return the topmost, leftmost live window on FRAME_OR_WINDOW. | 225 | doc: /* Return the topmost, leftmost live window on FRAME-OR-WINDOW. |
| 226 | If omitted, FRAME_OR_WINDOW defaults to the currently selected frame. | 226 | If omitted, FRAME-OR-WINDOW defaults to the currently selected frame. |
| 227 | Else if FRAME_OR_WINDOW denotes any window, return the first window of | 227 | Else if FRAME-OR-WINDOW denotes any window, return the first window of |
| 228 | that window's frame. If FRAME_OR_WINDOW denotes a live frame, return | 228 | that window's frame. If FRAME-OR-WINDOW denotes a live frame, return |
| 229 | the first window of that frame. */) | 229 | the first window of that frame. */) |
| 230 | (Lisp_Object frame_or_window) | 230 | (Lisp_Object frame_or_window) |
| 231 | { | 231 | { |
| @@ -256,10 +256,10 @@ the first window of that frame. */) | |||
| 256 | 256 | ||
| 257 | DEFUN ("frame-selected-window", Fframe_selected_window, | 257 | DEFUN ("frame-selected-window", Fframe_selected_window, |
| 258 | Sframe_selected_window, 0, 1, 0, | 258 | Sframe_selected_window, 0, 1, 0, |
| 259 | doc: /* Return the selected window of FRAME_OR_WINDOW. | 259 | doc: /* Return the selected window of FRAME-OR-WINDOW. |
| 260 | If omitted, FRAME_OR_WINDOW defaults to the currently selected frame. | 260 | If omitted, FRAME-OR-WINDOW defaults to the currently selected frame. |
| 261 | Else if FRAME_OR_WINDOW denotes any window, return the selected window | 261 | Else if FRAME-OR-WINDOW denotes any window, return the selected window |
| 262 | of that window's frame. If FRAME_OR_WINDOW denotes a live frame, return | 262 | of that window's frame. If FRAME-OR-WINDOW denotes a live frame, return |
| 263 | the selected window of that frame. */) | 263 | the selected window of that frame. */) |
| 264 | (Lisp_Object frame_or_window) | 264 | (Lisp_Object frame_or_window) |
| 265 | { | 265 | { |
| @@ -1299,7 +1299,7 @@ WINDOW must be a live window and defaults to the selected one. | |||
| 1299 | This is updated by redisplay, when it runs to completion. | 1299 | This is updated by redisplay, when it runs to completion. |
| 1300 | Simply changing the buffer text or setting `window-start' | 1300 | Simply changing the buffer text or setting `window-start' |
| 1301 | does not update this value. | 1301 | does not update this value. |
| 1302 | Return nil if there is no recorded value. \(This can happen if the | 1302 | Return nil if there is no recorded value. (This can happen if the |
| 1303 | last redisplay of WINDOW was preempted, and did not finish.) | 1303 | last redisplay of WINDOW was preempted, and did not finish.) |
| 1304 | If UPDATE is non-nil, compute the up-to-date position | 1304 | If UPDATE is non-nil, compute the up-to-date position |
| 1305 | if it isn't already recorded. */) | 1305 | if it isn't already recorded. */) |
| @@ -1690,7 +1690,7 @@ DEFUN ("window-parameters", Fwindow_parameters, Swindow_parameters, | |||
| 1690 | 0, 1, 0, | 1690 | 0, 1, 0, |
| 1691 | doc: /* Return the parameters of WINDOW and their values. | 1691 | doc: /* Return the parameters of WINDOW and their values. |
| 1692 | WINDOW defaults to the selected window. The return value is a list of | 1692 | WINDOW defaults to the selected window. The return value is a list of |
| 1693 | elements of the form (PARAMETER . VALUE). */) | 1693 | elements of the form (PARAMETER . VALUE). */) |
| 1694 | (Lisp_Object window) | 1694 | (Lisp_Object window) |
| 1695 | { | 1695 | { |
| 1696 | return Fcopy_alist (decode_any_window (window)->window_parameters); | 1696 | return Fcopy_alist (decode_any_window (window)->window_parameters); |
| @@ -2195,7 +2195,7 @@ next_window (Lisp_Object window, Lisp_Object minibuf, Lisp_Object all_frames, in | |||
| 2195 | 2195 | ||
| 2196 | DEFUN ("next-window", Fnext_window, Snext_window, 0, 3, 0, | 2196 | DEFUN ("next-window", Fnext_window, Snext_window, 0, 3, 0, |
| 2197 | doc: /* Return window following WINDOW in cyclic ordering of windows. | 2197 | doc: /* Return window following WINDOW in cyclic ordering of windows. |
| 2198 | WINDOW must be a live window and defaults to the selected one. The | 2198 | WINDOW must be a live window and defaults to the selected one. The |
| 2199 | optional arguments MINIBUF and ALL-FRAMES specify the set of windows to | 2199 | optional arguments MINIBUF and ALL-FRAMES specify the set of windows to |
| 2200 | consider. | 2200 | consider. |
| 2201 | 2201 | ||
| @@ -3226,7 +3226,7 @@ temp_output_buffer_show (register Lisp_Object buf) | |||
| 3226 | DEFUN ("internal-temp-output-buffer-show", | 3226 | DEFUN ("internal-temp-output-buffer-show", |
| 3227 | Ftemp_output_buffer_show, Stemp_output_buffer_show, | 3227 | Ftemp_output_buffer_show, Stemp_output_buffer_show, |
| 3228 | 1, 1, 0, | 3228 | 1, 1, 0, |
| 3229 | doc: /* Internal function for `with-output-to-temp-buffer''. */) | 3229 | doc: /* Internal function for `with-output-to-temp-buffer'. */) |
| 3230 | (Lisp_Object buf) | 3230 | (Lisp_Object buf) |
| 3231 | { | 3231 | { |
| 3232 | temp_output_buffer_show (buf); | 3232 | temp_output_buffer_show (buf); |
| @@ -3322,6 +3322,7 @@ make_window (void) | |||
| 3322 | memset (&w->phys_cursor, 0, sizeof (w->phys_cursor)); | 3322 | memset (&w->phys_cursor, 0, sizeof (w->phys_cursor)); |
| 3323 | w->phys_cursor_type = -1; | 3323 | w->phys_cursor_type = -1; |
| 3324 | w->phys_cursor_width = -1; | 3324 | w->phys_cursor_width = -1; |
| 3325 | w->phys_cursor_on_p = 0; | ||
| 3325 | w->last_cursor_off_p = w->cursor_off_p = 0; | 3326 | w->last_cursor_off_p = w->cursor_off_p = 0; |
| 3326 | w->must_be_updated_p = 0; | 3327 | w->must_be_updated_p = 0; |
| 3327 | w->pseudo_window_p = 0; | 3328 | w->pseudo_window_p = 0; |
| @@ -3847,8 +3848,8 @@ set correctly. See the code of `split-window' for how this is done. */) | |||
| 3847 | 3848 | ||
| 3848 | DEFUN ("delete-window-internal", Fdelete_window_internal, Sdelete_window_internal, 1, 1, 0, | 3849 | DEFUN ("delete-window-internal", Fdelete_window_internal, Sdelete_window_internal, 1, 1, 0, |
| 3849 | doc: /* Remove WINDOW from its frame. | 3850 | doc: /* Remove WINDOW from its frame. |
| 3850 | WINDOW defaults to the selected window. Return nil. Signal an error | 3851 | WINDOW defaults to the selected window. Return nil. |
| 3851 | when WINDOW is the only window on its frame. */) | 3852 | Signal an error when WINDOW is the only window on its frame. */) |
| 3852 | (register Lisp_Object window) | 3853 | (register Lisp_Object window) |
| 3853 | { | 3854 | { |
| 3854 | register Lisp_Object parent, sibling, frame, root; | 3855 | register Lisp_Object parent, sibling, frame, root; |
| @@ -5230,8 +5231,8 @@ any partial-height lines in the text display area. */) | |||
| 5230 | DEFUN ("move-to-window-line", Fmove_to_window_line, Smove_to_window_line, | 5231 | DEFUN ("move-to-window-line", Fmove_to_window_line, Smove_to_window_line, |
| 5231 | 1, 1, "P", | 5232 | 1, 1, "P", |
| 5232 | doc: /* Position point relative to window. | 5233 | doc: /* Position point relative to window. |
| 5233 | With no argument, position point at center of window. | 5234 | ARG nil means position point at center of window. |
| 5234 | An argument specifies vertical position within the window; | 5235 | Else, ARG specifies vertical position within the window; |
| 5235 | zero means top of window, negative means relative to bottom of window. */) | 5236 | zero means top of window, negative means relative to bottom of window. */) |
| 5236 | (Lisp_Object arg) | 5237 | (Lisp_Object arg) |
| 5237 | { | 5238 | { |