diff options
| author | Noam Postavsky | 2016-08-28 16:38:04 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-02-02 21:19:52 -0500 |
| commit | d17e92da064cabf376597f5de2a8d5a6484bfea6 (patch) | |
| tree | b608581cb4e883357a753c12e4526cac53066427 /src/alloc.c | |
| parent | 53c16c75a57aa486dfc1f46ef5aa538264e6ad47 (diff) | |
| download | emacs-d17e92da064cabf376597f5de2a8d5a6484bfea6.tar.gz emacs-d17e92da064cabf376597f5de2a8d5a6484bfea6.zip | |
Refactor uses of scroll_margin to a function
Its effective range needs to be clamped between 0 and (window height /
4), so it's better to have this constraint in a single place.
* src/window.c (window_scroll_margin): New function.
(window_scroll_pixel_based, window_scroll_line_based):
(Frecenter, Fmove_to_window_line):
* src/xdisp.c (try_scrolling, try_cursor_movement):
(redisplay_window, try_window, try_window_id): Use it.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions