* follow.el (follow-calc-win-end): Use with-selected-window.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 30 Dec 2008 13:25:52 +0000 (13:25 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 30 Dec 2008 13:25:52 +0000 (13:25 +0000)
commitb4c79e7b015f149d170a39eb4e0b9acd8d0ef030
treed8f6c7895e2dd5f686b9e38c667f4a320d89a225
parentd9569a55d8301cc67f760db82ae41b4469ab1871
* follow.el (follow-calc-win-end): Use with-selected-window.
(follow-windows-start-end, follow-pos-visible)
(follow-windows-aligned-p): Code cleanup.
(follow-select-if-visible): Try to avoid partially-visible lines.
(follow-select-if-visible-from-first): Call follow-redisplay and
move point to destination.
(follow-redisplay): New arg, to keep selected window unchanged.
(follow-post-command-hook): In final check for destination
visibility, use window-start and window-end instead of the less
accurate follow-pos-visible.  If the selected window is redrawn,
tell follow-redisplay to preserve it.
lisp/ChangeLog