]> code.delx.au - gnu-emacs/commit
Replace GROUP argument in six window primitives by new functions.
authorAlan Mackenzie <acm@muc.de>
Mon, 14 Dec 2015 16:38:07 +0000 (16:38 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 14 Dec 2015 16:38:07 +0000 (16:38 +0000)
commite8937de5547a687b6d03199368645f168cb8ad37
tree7b974d1ed2470576d1f7649a25b0a0af76eaf4c8
parent3194f1ccd99cfd13ddaf621d6e7f1e1aa1645165
Replace GROUP argument in six window primitives by new functions.

* doc/lispref/windows.texi (Window Start and End, Textual Scrolling)
* doc/lispref/positions.texi (Screen Lines): Remove optional GROUP argument
from description of six window functions.  Add in description of new functions
window-group-start, window-group-end, set-window-group-start,
pos-visible-in-window-group-p, recenter-group and move-to-window-group-line,
together with the six variables indirecting to the pertinent group
functions.

* src/window.c
* src/keyboard.c: Revert the commit from 2015-11-11 12:02:48, in so far as it
applies to these two files, which added the GROUP argument to six window
primitives.

* lisp/follow.el (follow-mode): Use updated variable names for the indirected
functions.

* lisp/isearch.el (isearch-update, isearch-done, isearch-string-out-of-window)
(isearch-back-into-window, isearch-lazy-highlight-new-loop)
(isearch-lazy-highlight-search, isearch-lazy-highlight-update): Replace calls
to window primitives (e.g. window-start) with a GROUP argument by calls to
new functions (e.g. window-group-start).

* lisp/ispell.el (ispell-command-loop): Replace call to
pos-visible-in-window-p with pos-visible-in-window-group-p.

* lisp/window.el (window-group-start, window-group-end)
(set-window-group-start, recenter-group, pos-visible-in-window-group-p)
(selected-window-group, move-to-window-group-line): New functions.
(window-group-start-function, window-group-end-function)
(set-window-group-start-function, recenter-group-function)
(pos-visible-in-window-group-p-function, selected-window-group-function)
(move-to-window-group-line-function): New variables.
doc/lispref/positions.texi
doc/lispref/windows.texi
lisp/follow.el
lisp/isearch.el
lisp/textmodes/ispell.el
lisp/window.el
src/keyboard.c
src/window.c