Commit graph

530 commits

Author SHA1 Message Date
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
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Juanma Barranquero
c10ce82e3c (Fset_window_margins, Fset_window_fringes):
Improve argument/docstring consistency.
2005-07-21 16:34:51 +00:00
Stefan Monnier
a4429c5b74 (Frecenter): Yet another int/Lisp_Object mixup (YAILOM). 2005-07-11 21:43:20 +00:00
Kim F. Storm
f567c48870 (Frecenter): Remove superfluous settings of iarg. 2005-07-07 09:36:18 +00:00
Kim F. Storm
ae12ecd756 (Frecenter): Fix last change (set iarg before use). 2005-07-07 09:33:29 +00:00
Richard M. Stallman
f6b434405b (Frecenter): When arg is inside the scroll margin, move it out of the margin. 2005-07-06 22:06:15 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Richard M. Stallman
7ad532392b (window_scroll_pixel_based): Take account of this_scroll_margin when
finding point when scrolling up.
2005-07-03 16:41:48 +00:00
Richard M. Stallman
bdf4ec93fd (window_scroll_pixel_based, window_scroll_line_based):
Handle `scroll-preserve-screen-position' non-nil, non-t specially.
(syms_of_window): <scroll-preserve-screen-position>: Doc fix.
2005-06-29 23:29:01 +00:00
Juanma Barranquero
6e0dca3d12 Fix typo in comment. 2005-06-21 11:29:47 +00:00
Luc Teirlinck
c869384d74 (Fselect_window): Adapt call to Fselect_frame. 2005-06-10 02:36:07 +00:00
Jan Djärv
5494d7bcdb * window.c (delete_window): Handle the case where a h/vchild has
a h/vchild.
2005-06-06 10:38:40 +00:00
Lute Kamstra
f3fbdb1f2d (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Correct the right value. 2005-05-20 11:18:22 +00:00
Richard M. Stallman
c019856ec3 (Fsame_window_p, Fspecial_display_p): Doc fixes.
(syms_of_window): Doc fixes.
2005-04-26 22:42:28 +00:00
Richard M. Stallman
c0e7ccd393 (window_size_fixed): Variable deleted.
(syms_of_window): Initialize window-size-fixed to nil.
But don't DEFVAR window_size_fixed.
2005-04-23 16:18:23 +00:00
Kim F. Storm
c21f77c70d (make_window): Don't initialize overlay_arrow_bitmap. 2005-04-18 14:09:47 +00:00
Stefan Monnier
203eb0aa1d (Fset_window_configuration): Be careful when you choose
among several possible points for the new_current_buffer.
2005-04-12 22:52:52 +00:00
Richard M. Stallman
a46c015333 Comment changes. 2005-04-10 22:02:41 +00:00
Kim F. Storm
aed328bfc3 (window_scroll_pixel_based): When scrolling backwards,
handle partial visible line at end of window even when we hit PT.
2005-02-21 22:34:34 +00:00
Kim F. Storm
e856c2162b (window_scroll_pixel_based): Fix scrolling in the wrong
direction if window height was smaller than next-screen-context-lines.
Now always scroll at least one line in the requested direction.
Ensure that we actually do scroll backwards when requested to do so.
2005-01-24 13:22:29 +00:00
Kim F. Storm
5b1ba1e330 * window.c (Fpos_visible_in_window_p): Simplify return value for
partially visible rows.
(window_scroll_pixel_based): Adapt to that change.
2005-01-23 13:13:03 +00:00
Kim F. Storm
bed83ee4dd (window_scroll_pixel_based): Force moving to next line
if scrolling doesn't move start point, e.g. if looking at tall image.
2005-01-23 00:50:24 +00:00
Kim F. Storm
e56263e526 (auto_window_vscroll_p): New boolean.
(syms_of_window): DEFVAR_BOOL it.
(Fpos_visible_in_window_p): Extend return value to include RTOP
and RBOT values if FULLY is nil.
(window_scroll_pixel_based): Adjust vscroll for partially visible
rows if auto_window_vscroll_p is set.
(Fset_window_vscroll): Do nothing if vscroll is not modified.
2005-01-22 01:41:47 +00:00
Richard M. Stallman
fa3c342659 (window_scroll_pixel_based): Don't correct preserve_y
for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
2005-01-04 03:00:21 +00:00
Richard M. Stallman
940f53e5f8 (window_scroll_pixel_based): Only look at
Vscroll_preserve_screen_position if the old PT can't be kept.
(syms_of_window) <scroll-preserve-screen-position>: Doc fix.
2004-12-31 15:07:48 +00:00
Richard M. Stallman
0c2cb7536e (Fget_lru_window, Fget_largest_window): Doc fixes. 2004-12-02 23:24:43 +00:00
Stefan Monnier
0f8fe9a26f (Fset_window_scroll_bars): Don't use XINT if it isn't int.
(decode_next_window_args, window_loop): Don't use XFASTINT blindly.
2004-11-23 05:05:34 +00:00
Kim F. Storm
c49a049515 (set_window_buffer): Clear display_error_modiff. 2004-11-22 23:26:13 +00:00
Stefan Monnier
2a1893f46c Avoid side-effects inside XSETFASTINT's arguments. 2004-11-16 15:35:14 +00:00
Jan Djärv
ef614e04c3 * window.c (shrink_windows): Handle special case of one window left
when trying to shrink the final reminder.  Grow windows if
total_removed is less than total_shrink.
2004-11-14 11:59:21 +00:00
Kim F. Storm
f204989e2e (window_scroll_pixel_based, Frecenter): Use
move_it_vertically_backward directly.
(Frecenter): Fix calculation of new start pos for negative arg.
Before, the new start pos was sometimes chosen too far back, so
the last line became only partially visible, and thus would be
either only semi-visible or automatically scrolled to the middle
of the window by redisplay.
2004-11-12 14:26:53 +00:00
Kim F. Storm
d0c38d631d Fix commentary. 2004-11-09 11:16:32 +00:00
Andreas Schwab
a93563fdf6 (Fscroll_right): Fix last change. 2004-11-02 14:42:40 +00:00
Richard M. Stallman
dc297565e7 (window_scroll_pixel_based): Update preserve_y for header line if any.
(Fscroll_left, Fscroll_right): Don't call interactive_p;
use a new second argument instead.
2004-11-02 09:06:06 +00:00