Mercurial > emacs
comparison etc/NEWS @ 107852:4abde609aac9
Add variable `scroll-preserve-screen-position-commands'.
http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00403.html
* window.c (Vscroll_preserve_screen_position_commands): New variable
with the default value as the list of Qscroll_down and Qscroll_up.
(window_scroll_pixel_based, window_scroll_line_based): Search the
last command in the list Vscroll_preserve_screen_position_commands
instead of comparing with Qscroll_up and Qscroll_down.
* mwheel.el (scroll-preserve-screen-position-commands):
Add mwheel-scroll to this list of commands.
* simple.el (scroll-preserve-screen-position-commands):
Add scroll-up-command, scroll-down-command, scroll-up-line,
scroll-down-line to this list of commands.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Wed, 14 Apr 2010 03:11:21 +0300 |
parents | c35518fa0d56 |
children | 6ebc01c309bf |
comparison
equal
deleted
inserted
replaced
107851:2a74858bccc0 | 107852:4abde609aac9 |
---|---|
72 (bound to [next] and [prior]) does not signal errors at top/bottom | 72 (bound to [next] and [prior]) does not signal errors at top/bottom |
73 of buffer at first key-press (instead moves to top/bottom of buffer). | 73 of buffer at first key-press (instead moves to top/bottom of buffer). |
74 | 74 |
75 ** New scrolling commands `scroll-up-line' and `scroll-down-line' | 75 ** New scrolling commands `scroll-up-line' and `scroll-down-line' |
76 scroll a line instead of full screen. | 76 scroll a line instead of full screen. |
77 | |
78 ** New variable `scroll-preserve-screen-position-commands' defines | |
79 a list of scroll command affected by `scroll-preserve-screen-position. | |
77 | 80 |
78 | 81 |
79 * Editing Changes in Emacs 24.1 | 82 * Editing Changes in Emacs 24.1 |
80 | 83 |
81 | 84 |