Add the `scroll-command' property.
authorJuri Linkov <juri@jurta.org>
Thu, 15 Apr 2010 23:51:12 +0000 (02:51 +0300)
committerJuri Linkov <juri@jurta.org>
Thu, 15 Apr 2010 23:51:12 +0000 (02:51 +0300)
commita4b000fb3dc67a7eedc388acf47c2002b4918665
treecde30031369835c89e5729e877e6a86bf81456af
parent4874f5e6d6a2d6d121814cb1638d78e5f1cd3b83
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.
etc/NEWS
lisp/ChangeLog
lisp/isearch.el
lisp/mwheel.el
lisp/simple.el
src/ChangeLog
src/window.c