Further progress making Isearch, Ispell, Replace work with Follow Mode.
commit3194f1ccd99cfd13ddaf621d6e7f1e1aa1645165
authorAlan Mackenzie <acm@muc.de>
Mon, 7 Dec 2015 15:12:15 +0000 (7 15:12 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 7 Dec 2015 15:12:15 +0000 (7 15:12 +0000)
tree3963195a29eea661a697516ad424567a05cfdfeb
parentf5c403d269f4f5079dc47853f16a51e9542ea238
Further progress making Isearch, Ispell, Replace work with Follow Mode.

* lisp/follow.el: (follow-mode): Remove references to sit*-for-function, which
no longer exists.  Add follow-post-command-hook to  three special purpose
hooks at setup, and remove them at tear down.

* lisp/isearch.el: (isearch-update): invoke isearch-update-post-hook before
isearch-lazy-highlight-new-loop.
(isearch-lazy-highlight-new-loop): Restore this function to what it previously
was, merging the functionality of isearch-lazy-highlight-maybe-new-loop into
it.
(isearch-lazy-highlight-maybe-new-loop): function removed.

* lisp/replace.el: (replace-update-post-hook): New hook variable.
(perform-replace): Add second (nil) argument to looking-back.  Invoke
replace-update-post-hook before calling replace-highlight.

* lisp/textmodes/ispell.el: (ispell-update-post-hook): New hook variable.
(ispell-command-loop): invoke ispell-update-post-hook.  Add GROUP argument to
call of pos-visible-in-window-p.
(ispell-display-buffer): Place *Choices* window at the top of the last window
in a window group.
lisp/follow.el
lisp/isearch.el
lisp/replace.el
lisp/textmodes/ispell.el