]> git.eshelyaron.com Git - emacs.git/commit
Fix follow-scroll-up/down, making them replacements for scroll-up/down.
authorAlan Mackenzie <acm@muc.de>
Sat, 26 Sep 2015 19:03:35 +0000 (19:03 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 26 Sep 2015 19:07:24 +0000 (19:07 +0000)
commit3d16ffb304f3026e9bcb10a9cf5a76976669b9b1
treef09046f002bb445abf6ea9188a2395ace9d535d6
parent2e775b43e0b092a958bb3d14347a20372ad2d4aa
Fix follow-scroll-up/down, making them replacements for scroll-up/down.

1. Allow point to move between follow windows in scroll operations.
2. Fix bug where `right-char' just before EOB caused spurious scrolling,
when EOB was isolated in the last follow window.

lisp/follow.el (follow-fixed-window): New variable.
(follow-get-scrolled-point): New function.
(follow-scrol-up, follow-scroll-down): Add autoload cookies.
Reformulate
the code.  Put `scroll-command' properties on the functions.  Correct
minor errors in ...-down's doc string and code.
(follow-calc-win-end): Amend incomplete doc string.  Use
`pos-visible-in-window-p' to check whether EOB is in the window.
(follow-estimate-first-window-start): Correct an off-by-1 error.
(follow-adjust-window): Add handling for explicit scrolling operations.
lisp/follow.el