aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2010-04-16 02:51:12 +0300
committerJuri Linkov2010-04-16 02:51:12 +0300
commita4b000fb3dc67a7eedc388acf47c2002b4918665 (patch)
treecde30031369835c89e5729e877e6a86bf81456af /etc
parent4874f5e6d6a2d6d121814cb1638d78e5f1cd3b83 (diff)
downloademacs-a4b000fb3dc67a7eedc388acf47c2002b4918665.tar.gz
emacs-a4b000fb3dc67a7eedc388acf47c2002b4918665.zip
Add the `scroll-command' property.
* window.c: Add Qscroll_command. Remove Vscroll_preserve_screen_position_commands. (window_scroll_pixel_based, window_scroll_line_based): Check the `scroll-command' property on the last command instead of searching the last command in Vscroll_preserve_screen_position_commands. (syms_of_window): Initialize and staticpro `Qscroll_command'. Put Qscroll_command property on Qscroll_up and Qscroll_down. (scroll-preserve-screen-position): Doc fix. (Vscroll_preserve_screen_position_commands): Remove variable. * simple.el (scroll-up-command, scroll-down-command) (scroll-up-line, scroll-down-line): Put `scroll-command' property on the these symbols. Remove them from `scroll-preserve-screen-position-commands'. * mwheel.el (mwheel-scroll): Put `scroll-command' and `isearch-scroll' properties on the `mwheel-scroll' symbol. Remove it from `scroll-preserve-screen-position-commands'. * isearch.el (isearch-allow-scroll): Doc fix.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 6bb48fe59b0..e08dabbea1e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -76,8 +76,8 @@ when a new variable `scroll-error-top-bottom' is non-nil.
76** New scrolling commands `scroll-up-line' and `scroll-down-line' 76** New scrolling commands `scroll-up-line' and `scroll-down-line'
77scroll a line instead of full screen. 77scroll a line instead of full screen.
78 78
79** New variable `scroll-preserve-screen-position-commands' defines 79** New property `scroll-command' should be set on a command's symbol to
80a list of scroll command affected by `scroll-preserve-screen-position. 80define it as a scroll command affected by `scroll-preserve-screen-position.
81 81
82 82
83* Editing Changes in Emacs 24.1 83* Editing Changes in Emacs 24.1