1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-23 00:10:48 -08:00
Commit graph

485 commits

Author SHA1 Message Date
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
Richard M. Stallman
d99b4859a0 (Fspecial_display_p): Doc fix. 2004-10-16 14:51:39 +00:00
Kim F. Storm
cb639b8f7c (coordinates_in_window): Relax check for cursor
on vertial border between mode lines.
(Fset_window_fringes): Do not allow negative widths.
(Fset_window_scroll_bars): Likewise.
2004-10-04 13:46:19 +00:00
Richard M. Stallman
6cb4a89232 (Fset_window_buffer): Doc fix. 2004-09-09 02:10:48 +00:00
Stefan Monnier
1725a7c935 (window_list_1): YAILOM. 2004-08-07 21:07:57 +00:00
Kim F. Storm
ec2b66c4c2 (window_scroll_line_based): Let compute_motion
calculate actual window width.
2004-08-02 15:06:25 +00:00
Richard M. Stallman
6487f66967 (coordinates_in_window): Return ON_SCROLL_BAR
instead of ON_VERTICAL_BORDER, when on scroll bar.
(Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2004-07-25 17:43:57 +00:00
Richard M. Stallman
81159bb955 (Fcoordinates_in_window_p): Take account of FRAME_INTERNAL_BORDER_WIDTH. 2004-07-25 17:36:07 +00:00
Richard M. Stallman
2c77cf3b92 (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH. 2004-07-24 21:38:22 +00:00
Kim F. Storm
7a146de213 (make_window): Initialize nrows_scale_factor and
ncols_scale_factor members.
2004-07-21 21:08:45 +00:00
Luc Teirlinck
a0a37a6f54 (Fpos_visible_in_window_p, Fset_window_hscroll)
(Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
(Fset_window_start, Fscroll_up, Fscroll_down)
(Fother_window_for_scrolling, Fscroll_other_window)
(Fsave_window_excursion, Fset_window_vscroll)
(syms_of_window) <window-size-fixed>: Doc fixes.
2004-07-19 21:57:05 +00:00
Richard M. Stallman
403de3b40e (coordinates_in_window): Inside the window but outside
its box to the L or R, return ON_VERTICAL_BORDER.
(window_list_1): Rotate the list to start with WINDOW.
2004-07-17 14:59:02 +00:00
Luc Teirlinck
c275592693 (Fwindow_buffer, Fother_window, Fget_lru_window)
(Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
(Freplace_buffer_in_windows, Fset_window_buffer)
(Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
(syms_of_window): Expand docstring of `display-buffer-function'.
2004-07-11 01:20:03 +00:00
Richard M. Stallman
3cb7143cd8 (syms_of_window): Doc fix. 2004-06-21 03:23:27 +00:00
Richard M. Stallman
e963215c44 (Fselect_window): Doc fix. 2004-06-13 22:27:53 +00:00
Glenn Morris
876e266514 (Fdisplay_buffer, Fsplit_window, split-height-threshold): Doc fix. 2004-05-13 00:33:27 +00:00
Juanma Barranquero
ab80314baa (Fset_window_buffer): Fix docstring. 2004-05-07 00:45:53 +00:00
Kim F. Storm
0cc1039fe1 (Fpos_visible_in_window_p): Return pixel position if
PARTIALLY arg is non-nil.  Simplify.  Doc fix.
(Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
to return/set vscroll in pixels.
2004-04-20 22:18:33 +00:00
Nick Roberts
a899216fb7 (Fget_lru_window): Doc fix. 2004-04-14 20:03:42 +00:00
Richard M. Stallman
9a7e95f339 (Fdisplay_buffer): Doc fix. 2004-03-04 17:16:56 +00:00
Kim F. Storm
bf0a571d1f (make_window): Initialize overlay_arrow_bitmap. 2004-03-01 23:56:30 +00:00
Kim F. Storm
40c6ee742c (window_loop, Fforce_window_update): Force mode line
updates by setting prevent_redisplay_optimizations_p and
update_mode_lines.
2004-02-28 01:02:51 +00:00
Kim F. Storm
467e281a73 (Fwindow_fringes): Doc fix. 2004-02-12 12:12:41 +00:00
Luc Teirlinck
29a831f8ba (Fwindow_minibuffer_p): Doc fix. 2004-01-26 03:27:33 +00:00
Richard M. Stallman
e995d23a39 (decode_any_window): New function.
(Fwindow_height, Fwindow_width, Fwindow_edges)
(Fwindow_pixel_edges, Fwindow_inside_edges)
(Fwindow_inside_pixel_edges): Use decode_any_window.
2004-01-03 21:17:51 +00:00
Kim F. Storm
e661376d0b (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
(window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
(Fforce_window_update): New defun.
(syms_of_window): Defsubr it.
(Fset_window_margins, Fset_window_fringes): Doc fix.
2003-11-23 21:47:24 +00:00
Kim F. Storm
0de01dfe8a (coordinates_in_window): Remove redundant tests.
Fix returned X pixel value for left-margin.
2003-11-23 00:10:08 +00:00
Lute Kamstra
62c2f7593f (Fset_window_fringes): Clarify docstring. 2003-10-14 11:26:43 +00:00
Kim F. Storm
c2c3f20258 (Fset_window_margins): Simplify arg checking. 2003-10-14 09:33:09 +00:00
Richard M. Stallman
499858c56d (Fset_window_margins): Allow only integers as args.
(syms_of_window) <special-display-buffer-names, special-display-regexps>:
Doc fixes.
2003-10-13 18:44:22 +00:00
Lute Kamstra
154b6114a3 (Fset_window_fringes): Elaborate docstring. 2003-10-13 16:11:27 +00:00
Jan Djärv
0aa513ed13 * window.c (shrink_windows): New function.
(size_window): Call shrink_windows to calculate window sizes when
shrinking frame with more than one window.
2003-10-11 23:03:09 +00:00
Kim F. Storm
3834380d15 (set_window_buffer): Fix redisplay problems when
switching between buffers with different display margin widths.
2003-09-24 23:52:45 +00:00
Masatake YAMATO
2f71b5eae8 (Fset_window_scroll_bars): Validate the value of `vertical_type'. 2003-09-22 12:55:25 +00:00
Kim F. Storm
12853c5844 (Fwindow_scroll_bars): Doc fix. 2003-09-20 23:38:54 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
2d0834cc27 (Fset_window_dedicated_p): Simplify.
(display_buffer_1): Don't raise the win from which minibuf was entered.
(temp_output_buffer_show): Don't assume BEG == 1.  Simplify.
(Fminibuffer_selected_window): Simplify.
(delete_window): Update for new types.
2003-06-26 23:20:50 +00:00
Kim F. Storm
a530382071 (coordinates_in_window): Convert X and Y to window
relative coordinates inside mode-line and header-line parts.
Convert X and Y to margin area relative coordinates inside left
and right display margin parts.
2003-06-05 00:36:28 +00:00
Richard M. Stallman
c99a9eb33f (Fwindow_edges): Doc fix.
(Fwindow_pixel_edges, Fwindow_inside_edges)
(Fwindow_inside_pixel_edges): New functions.
(syms_of_window): defsubr them.
2003-06-03 11:12:48 +00:00
Stefan Monnier
56613f06dc (Fset_window_buffer): Add type of `keep_margins' argument.
(Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
2003-05-25 17:49:55 +00:00
Juanma Barranquero
79fd290eeb (Fset_window_scroll_bars): Fix typo in argument name.
(Fwindow_scroll_bars): Fix typo in docstring.
2003-05-25 02:11:24 +00:00
Kim F. Storm
949cf20fe5 Make (many) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
(make_window): Initialize new members
left_margin_cols, right_margin_cols, left_fringe_width,
right_fringe_width, fringes_outside_margins, scroll_bar_width,
and vertical_scroll_bar_type.
(coordinates_in_window): Adapted to new fringe/margin positions
and per-window fringes and scroll-bars.
Fix bug related to incorrectly adjusting coordinates by
frame's internal_border_width (the effect normally negible since
the internal_border_width is typically 0 or 1 pixel, but very
noticeable for an internal_border_width of e.g. 25 pixels).
Upon successful return (other than ON_NOTHING), the coordinates
are now always properly converted to window relative for the
given display element.
(window_from_coordinates): Add new parameters wx and wy to
return the window relative x and y position in the returned
window and part.  A null arg means, don't return the position.
All callers changed.
(adjust_window_margins): New function which may reduce the width
of the display margins if a window's text area is too small after
resizing or splitting windows.
(size_window): Fix bug that did not account for display margin
widths when checking the minimum width of a window; use
adjust_window_margins.
(set_window_buffer): Call Fset_window_fringes and
Fset_window_scroll_bars to setup per-window elements.
Add new arg KEEP_MARGINS_P.  Non-nil means to keep window's
existing display margin, fringe widths, and scroll bar settings
(e.g. after splitting a window or resizing the frame).  All
callers changed.
(Fset_window_buffer): New arg KEEP_MARGINS.  All callers changed.
(Fsplit_window): Duplicate original window's display margin,
fringe, and scroll-bar settings; then call Fset_window_buffer with
KEEP_MARGINS non-nil.  This fixes a bug which caused a split
window to only preserve the display margins in one of the windows.
When splitting horisontally, call adjust_window_margins	on both
windows to ensure that the text area of the new windows is non too
narrow.  This fixes a bug which could cause emacs to trap if the
width of the split window was less than the width of the display
margins.
(window_box_text_cols): Renamed from window_internal_width.  All
uses changed.  Adapt to per-window fringes and scroll bars.
Fix bug that caused vertical separator to be subtracted also on
window frames.  Fix another bug that did not reduce the returned
value by the columns used for display margins.
(window_scroll_line_based): Fix bug related to scrolling too much
when display margins are present (implicitly fixed by the fix to
window_box_text_cols).
(scroll_left, scroll_right): Fix bug related to scrolling too far
by default when display margins are present (implicitly fixed by
the fix to window_box_text_cols).
(struct saved_window): Rename members left to left_col, top to
top_line, width to total_cols, height to total_lines, orig_top to
orig_top_line, orig_height to orig_total_lines.  All uses changed.
New members left_margin_cols, right_margin_cols,
left_fringe_width, right_fringe_width, fringes_outside_margins,
scroll_bar_width, and vertical_scroll_bar_type for saving
per-window display elements.
(Fset_window_configuration): Restore display margins, fringes,
and scroll bar settings.  This fixes a bug which caused display
margins to be discarded when saving and restoring a window
configuration.
(save_window_save): Save display margins, fringes, and scroll bar
settings.  This fixes a bug which caused display margins to be
discarded when saving and restoring a window configuration.
(Fset_window_margins): Do nothing if display margins are not
really changed.  Otherwise, call adjust_window_margins to ensure
the text area doesn't get too narrow.  This fixes a bug which
could cause emacs to trap if setting display margins wider than
the width of the window.
(Fset_window_fringes): New defun to allow user to specifically set
this window's fringe widths and position vs. display margins.
(Fwindow_fringes): New defun to return window's actual fringe
settings.
(Fset_window_scroll_bars): New defun to allow user to specifically
set this window's scroll bar width and position.
(Fwindow_scroll_bars): New defun to return window's actual scroll
bar settings.
(compare_window_configurations): Also compare display margins,
fringes, and scroll bar settings.
(syms_of_window): Defsubr new defuns for fringe and scroll bars.
2003-05-24 22:07:51 +00:00
Stefan Monnier
14d87dc9ed (Fselect_window): Add optional `norecord' arg.
(select_window_1): Fold into Fselect_window.
(select_window_norecord): New function.
(temp_output_buffer_show): Use it.  Preserve current buffer.
(delete_window, Fother_window, Fset_window_configuration):
Pass nil as new arg to Fselect_window.
2003-05-17 21:19:55 +00:00
Kim F. Storm
cdbc7fec13 Remove extern decl for frame parameter vars.
(change_window_heights): New generic function;
replaces x_change_window_heights.  All users changed.
2003-03-31 20:35:51 +00:00
Kim F. Storm
341f385808 * window.c (enum window_part): Move to dispextern.h.
(coordinates_in_window): Use enum window_part member names
instead of numbers to describe return value.
(struct check_window_data): Change part member to window_part.
(check_window_containing): Return window_part unaltered.
(window_from_coordinates): Change part arg from int to enum
window_part.  Allow part arg to be null.  All users changed.
2003-03-21 13:52:06 +00:00
Andreas Schwab
e68def1e59 (window_scroll_pixel_based): Move outside a
multi-glyph character before setting new window start.
2003-02-18 00:18:04 +00:00