Mercurial > emacs
comparison src/xdisp.c @ 42981:a57f4686f16b
(try_scrolling): Exchange uses of scroll_down_aggressively
and scroll_up_aggressively.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 26 Jan 2002 23:02:00 +0000 |
parents | f50b1207e03c |
children | b3c0fc949524 |
comparison
equal
deleted
inserted
replaced
42980:6134751ae11f | 42981:a57f4686f16b |
---|---|
9556 CANON_Y_UNIT (f) * max (scroll_step, temp_scroll_step)); | 9556 CANON_Y_UNIT (f) * max (scroll_step, temp_scroll_step)); |
9557 else if (scroll_step || temp_scroll_step) | 9557 else if (scroll_step || temp_scroll_step) |
9558 amount_to_scroll = scroll_max; | 9558 amount_to_scroll = scroll_max; |
9559 else | 9559 else |
9560 { | 9560 { |
9561 aggressive = current_buffer->scroll_down_aggressively; | 9561 aggressive = current_buffer->scroll_up_aggressively; |
9562 height = (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE (w) | 9562 height = (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE (w) |
9563 - WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w)); | 9563 - WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w)); |
9564 if (NUMBERP (aggressive)) | 9564 if (NUMBERP (aggressive)) |
9565 amount_to_scroll = XFLOATINT (aggressive) * height; | 9565 amount_to_scroll = XFLOATINT (aggressive) * height; |
9566 } | 9566 } |
9610 max (dy, CANON_Y_UNIT (f) * max (scroll_step, temp_scroll_step)); | 9610 max (dy, CANON_Y_UNIT (f) * max (scroll_step, temp_scroll_step)); |
9611 else if (scroll_step || temp_scroll_step) | 9611 else if (scroll_step || temp_scroll_step) |
9612 amount_to_scroll = scroll_max; | 9612 amount_to_scroll = scroll_max; |
9613 else | 9613 else |
9614 { | 9614 { |
9615 aggressive = current_buffer->scroll_up_aggressively; | 9615 aggressive = current_buffer->scroll_down_aggressively; |
9616 height = (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE (w) | 9616 height = (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE (w) |
9617 - WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w)); | 9617 - WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w)); |
9618 if (NUMBERP (aggressive)) | 9618 if (NUMBERP (aggressive)) |
9619 amount_to_scroll = XFLOATINT (aggressive) * height; | 9619 amount_to_scroll = XFLOATINT (aggressive) * height; |
9620 } | 9620 } |