Commit graph

564 commits

Author SHA1 Message Date
Juanma Barranquero
473d3c06d8 (Fdisplay_buffer): Fix typo in docstring. 2006-10-28 22:03:51 +00:00
Kim F. Storm
68e67a4ed1 (Fpos_visible_in_window_p): Doc fix. 2006-09-20 10:14:46 +00:00
Kim F. Storm
120b778160 (Fset_window_hscroll, Fpos_visible_in_window_p):
Doc fix.  Use "off-window" instead of "off-screen".
(Fpos_visible_in_window_p): Likewise.
If POS is t, return info for last visible glyph in window.
2006-09-20 09:43:25 +00:00
Stefan Monnier
31790df395 (Fwindow_end): Fix recent change. 2006-09-19 16:32:07 +00:00
Kim F. Storm
7bbc67d20f (Fset_window_hscroll, Fpos_visible_in_window_p):
Doc fix.  Use "off-screen" instead of "invisible".
(Fwindow_line_height): Make line numbers 0-based.  Make line arg
optional; if nil, use current cursor row.  Handle text terminals
properly.  Return nil if non-interactive or pseudo-window.
2006-09-19 13:12:26 +00:00
Kim F. Storm
536833ab88 (Fwindow_line_visibility): Remove.
(Fwindow_line_height): New defun replacing it.
(syms_of_window): Defsubr it.
2006-09-18 11:11:23 +00:00
Kim F. Storm
b3a1034515 (Fwindow_line_visibility): New defun for line-move-partial.
(syms_of_window): Defsubr it.
(Fwindow_end): Use window's buffer rather than current buffer.
2006-09-15 21:04:28 +00:00
Kim F. Storm
5a857365b5 (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
Return row height and row number for partially visible rows.
Modify return value to a 2 element list for fully visible rows
and 6 for partially visible row.
(window_scroll_pixel_based): Use pos_visible_p directly instead of
Fpos_visible_in_window_p.  Fix auto vscrolling for partially visible lines.
Only vscroll backwards if already vscrolled forwards.  Unconditionally
vscroll forwards if PT is first (and only) line.  Set new window start
instead of scrolling at start/end of tall line.
2006-09-05 22:49:43 +00:00
Eli Zaretskii
bdbae5b870 (syms_of_window) <split-height-threshold>:
<window-min-height, window-min-width>: Doc fix.
2006-09-02 21:19:21 +00:00
Richard M. Stallman
017e297ea9 Comment change. 2006-08-18 01:52:19 +00:00
Nick Roberts
d46c6df554 (Fset_window_fringes): Do nothing on a tty.
(Fwindow_fringes): Put ? operator after the line break.
2006-08-17 21:00:44 +00:00
Kim F. Storm
ba96a5cfd4 (window_scroll_pixel_based, window_scroll_line_based):
Use xsignal0.
2006-07-18 13:29:55 +00:00
Kim F. Storm
663fbbba4d (Fwindow_configuration_frame, Fset_window_configuration):
(compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
2006-07-12 13:22:00 +00:00
Kim F. Storm
5a1048a548 (Fforce_window_update): Doc fix. 2006-07-08 22:28:49 +00:00
Richard M. Stallman
5fe0b054a2 (size_window): New arg FIRST_ONLY. All callers changed.
(adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
for the case of a top-level window and the following minibuffer.
Don't exit because of no `next' when there is a parent.
Use the FIRST_ONLY feature when resizing following windows.
2006-06-19 21:59:30 +00:00
Richard M. Stallman
c32de52a4f (adjust_window_trailing_edge): Don't break out of the loop
because there's no next window, if there are parallel windows.
Do break out when WINDOW is nil.
2006-06-13 23:07:56 +00:00
Eli Zaretskii
cf402f3fd4 (window_scroll_pixel_based): Signal "Beginning of buffer" when scroll-down
at the beginning of an empty buffer.
2006-06-09 09:05:17 +00:00
Richard M. Stallman
19ca94ce90 (Fsplit_window): Doc fix. 2006-06-02 02:12:45 +00:00
Stefan Monnier
6ad0381ce1 (struct saved_window): Add `dedicated'.
(Fset_window_configuration, save_window_save): Save/restore the
`dedicated' flag.
2006-05-29 01:05:24 +00:00
YAMAMOTO Mitsuharu
76fb556f52 (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)). 2006-05-19 09:12:26 +00:00
Eli Zaretskii
9297079e2d (Fdisplay_buffer): Doc fix. 2006-04-21 11:55:17 +00:00
Richard M. Stallman
bd99e2429e (adjust_window_trailing_edge): Correctly distinguish
series vs parallel cases, even when window has no parent.
2006-04-18 20:56:31 +00:00
Kim F. Storm
3f489dc760 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
(window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
2006-04-17 21:50:59 +00:00
Nick Roberts
f8c62b7037 (coordinates_in_window): On the vertical border, calculate the row number
measured from the top of the window, not the top of the frame.
2006-04-17 00:24:50 +00:00
Stefan Monnier
7d6194544e (window_scroll_pixel_based): Yet another int/Lisp_Object mixup (YAILOM). 2006-03-20 22:22:25 +00:00
Luc Teirlinck
66fe93d1c2 Rename preserve_y to window_scroll_pixel_based_preserve_y.
(window_scroll_pixel_based, syms_of_window): Adapt to above change.
2006-03-11 16:46:38 +00:00
Luc Teirlinck
66d43aea54 Declare preserve_y as a static global variable.
(window_scroll_pixel_based): No longer declare preserve_y; it is global now.
(syms_of_window): set preserve_y to -1.
2006-03-09 03:43:23 +00:00
Chong Yidong
c525d842f8 * xselect.c (x_catch_errors_unwind): New function.
(x_reply_selection_request): Put x_uncatch_errors in an unwind.
	(Fx_get_atom_name): Call x_uncatch_errors earlier.

	* window.c (Qscroll_up, Qscroll_down): New syms.
	(window_scroll_pixel_based): Make preserve_y static to avoid
	getting point stuck when scrolling 1 line.
2006-02-28 14:52:46 +00:00
Stefan Monnier
acc6289a44 (Fwindow_list): Check `window' before doing XWINDOW.
The default `window' should not be "on a different frame".
2006-02-22 21:01:34 +00:00
Chong Yidong
da7520dea4 * window.c (window_min_size_1): Ensure room for the scroll bar and
fringes.
2006-02-18 22:17:09 +00:00
Juanma Barranquero
a53d44a857 (Fset_window_scroll_bars): Doc fix. 2006-02-17 15:02:30 +00:00
Jan Djärv
e99c752190 * window.c (adjust_window_trailing_edge): Check that shrinking
does not set a window to size zero or less.
2006-02-08 13:39:52 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Juanma Barranquero
8cd0d6614d (Fother_window, Fwindow_vscroll, Fset_window_vscroll): Fix typos in docstrings. 2006-01-30 16:11:29 +00:00
Richard M. Stallman
56ebfae2ca (enlarge_window): Eliminate arg preserve_before.
Assume it is 0.  All callers changed.
(Fenlarge_window, Fshrink_window): Likewise.
2005-12-06 02:03:23 +00:00
Stefan Monnier
e67a1dea3e (Fset_window_configuration): Don't accidentally copy the
window-point of one window to another.
2005-12-01 16:25:15 +00:00
Richard M. Stallman
0d384044c4 (adjust_window_trailing_edge): New function.
(Fadjust_window_trailing_edge): New function.
(syms_of_window): defsubr it.
(window_deletion_count): New variable.
(delete_window): Update window_deletion_count.
2005-11-27 19:16:28 +00:00
Stefan Monnier
20b69789f3 (Fget_lru_window, Fget_largest_window, window_loop):
Don't abuse the `mini' arg.  Use the `obj' arg instead.
2005-11-04 21:37:03 +00:00
Richard M. Stallman
5afc696a37 (Fenlarge_window): Rename SIDE to HORIZONTAL.
(enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
(CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
2005-11-03 21:13:57 +00:00
Stefan Monnier
49e993450c (Fdisplay_buffer): Fix last change to not use a dedicated window. 2005-11-03 17:14:11 +00:00
Stefan Monnier
3cbb13c82d (window_loop): For LRU and LARGEST, let the `mini' argument
determine whether to consider dedicated windows as well.
(Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
(Fdisplay_buffer): Do consider dedicated windows in those cases where
we will split the window rather than reuse it.
Don't try to use windows on other displays.
2005-11-01 08:01:40 +00:00
Kim F. Storm
e58e5c503f (Fwindow_tree): Remove unused var alist. 2005-10-20 15:04:05 +00:00
Kim F. Storm
66d41723c5 (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
Fix x position for ON_TEXT when left margin width > 0.
2005-10-11 22:21:50 +00:00
Kim F. Storm
4d1add72eb (coordinates_in_window): Fix returned y position when
ON_SCROLL_BAR.
2005-10-11 15:07:07 +00:00
Juanma Barranquero
008171a4e0 (Fwindow_tree): Fix spelling. 2005-10-10 13:41:06 +00:00
Romain Francoise
41791a20d7 (Fwindow_end): Don't try to redisplay if non-interactive. 2005-10-09 16:53:35 +00:00
Kim F. Storm
c16e1cc347 (window_tree, Fwindow_tree): Rename fns added 2005-10-04. 2005-10-07 22:17:05 +00:00
Kim F. Storm
94e16dd575 (window_split_tree): New function.
(Fwindow_split_tree): New defun.
(syms_of_window): Defsubr it.
2005-10-04 14:14:05 +00:00
Andreas Schwab
3df0580e89 (make_window): Don't initialize height_fixed_p.
(window_fixed_size_p): Don't use it.
2005-09-18 16:28:53 +00:00
Kim F. Storm
8a450f0a7e (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
(Fcurrent_window_configuration): Use VECSIZE macro instead.
2005-08-16 14:58:33 +00:00