# HG changeset patch # User Kim F. Storm # Date 1091460637 0 # Node ID eb864aaf90b0d4a30fa7236090ed2863ece21bd9 # Parent 79a8fffd55e9dc9e16f84c6cbaa1684e49d9714d *** empty log message *** diff -r 79a8fffd55e9 -r eb864aaf90b0 etc/NEWS --- a/etc/NEWS Mon Aug 02 15:20:18 2004 +0000 +++ b/etc/NEWS Mon Aug 02 15:30:37 2004 +0000 @@ -2187,6 +2187,10 @@ * Lisp Changes in Emacs 21.4 +** Function `compute-motion' now calculates the usable window +width if the WIDTH argument is nil. If the TOPOS argument is nil, +the usable window height and width is used. + +++ ** `visited-file-modtime' and `calendar-time-from-absolute' now return a list of two integers, instead of a cons. diff -r 79a8fffd55e9 -r eb864aaf90b0 lisp/ChangeLog --- a/lisp/ChangeLog Mon Aug 02 15:20:18 2004 +0000 +++ b/lisp/ChangeLog Mon Aug 02 15:30:37 2004 +0000 @@ -1,3 +1,14 @@ +2004-08-02 Kim F. Storm + + * avoid.el (mouse-avoidance-point-position): Use window-inside-edges + and call compute-motion with nil for topos and width to get proper + usable width and height for both window and non-window systems. + + * windmove.el (windmove-coordinates-of-position): Let compute-motion + calculate usable window width and height. + + * window.el (window-buffer-height): Call compute-motion with nil width. + 2004-08-01 David Kastrup * replace.el (query-replace-read-from): Use diff -r 79a8fffd55e9 -r eb864aaf90b0 src/ChangeLog --- a/src/ChangeLog Mon Aug 02 15:20:18 2004 +0000 +++ b/src/ChangeLog Mon Aug 02 15:30:37 2004 +0000 @@ -1,3 +1,15 @@ +2004-08-02 Kim F. Storm + + * indent.c (compute_motion): Use actual window width if WIDTH is -1, + properly accounting for continuation glyph on non-window systems. + (Fcompute_motion): Use actual window width if WIDTH is nil, and + actual window width/height if TOPOS is nil, properly accounting for + continuation glyphs on non-window systems, and optional header lines. + (vmotion): Let compute_motion calculate actual window width. + + * window.c (window_scroll_line_based): Let compute_motion + calculate actual window width. + 2004-08-02 Kim F. Storm * process.c (read_process_output): Use whole read buffer.