# HG changeset patch # User Kim F. Storm # Date 1157496737 0 # Node ID 93d475a647a14223d45edd3169b08b22392f0aab # Parent 17130b0d42694ed3de13f0e5fcda88df4d857311 *** empty log message *** diff -r 17130b0d4269 -r 93d475a647a1 lisp/ChangeLog --- a/lisp/ChangeLog Tue Sep 05 22:49:51 2006 +0000 +++ b/lisp/ChangeLog Tue Sep 05 22:52:17 2006 +0000 @@ -1,3 +1,10 @@ +2006-09-06 Kim F. Storm + + * simple.el (line-move-partial): New function to do vscrolling for + partially visible images / tall lines. Rewrite based on code + previously in line-move. Simplify backwards vscrolling. + (line-move): Use it. Simplify. + 2006-09-05 Kim F. Storm * emulation/cua-base.el (cua--pre-command-handler-1): Rewrite. diff -r 17130b0d4269 -r 93d475a647a1 src/ChangeLog --- a/src/ChangeLog Tue Sep 05 22:49:51 2006 +0000 +++ b/src/ChangeLog Tue Sep 05 22:52:17 2006 +0000 @@ -1,3 +1,24 @@ +2006-09-06 Kim F. Storm + + * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg; + so always calculate heights even when pos-visible-in-window-p is + called with partially = t. Don't overshoot last_visible_y in move_it_to. + Return row height and row number in new rowh and vpos args. + (cursor_row_fully_visible_p): First line is always "fully visible". + (try_window): Don't clear matrix if vscrolled. + + * lisp.h (pos_visible_p): Update prototype. + + * window.c (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 YAMAMOTO Mitsuharu * macterm.c (install_window_handler, mac_handle_window_event)