Function: follow-maximize-region
follow-maximize-region is a byte-compiled function defined in
follow.el.gz.
Signature
(follow-maximize-region WIN WINDOWS WIN-START-END)
Documentation
Make a highlighted region stretching multiple windows look good.
Source Code
;; Defined in /usr/src/emacs/lisp/follow.el.gz
;;; The region
;; Tries to make the highlighted area representing the region look
;; good when spanning several windows.
;;
;; Not perfect, as point can't be placed at window end, only at
;; end-1. This will highlight a little bit in windows above
;; the current.
(defun follow-maximize-region (win windows win-start-end)
"Make a highlighted region stretching multiple windows look good."
(let* ((all (follow-split-followers windows win))
(pred (car all))
(succ (cdr all))
data)
(while pred
(setq data (assq (car pred) win-start-end))
(set-window-point (car pred) (max (nth 1 data) (- (nth 2 data) 1)))
(setq pred (cdr pred)))
(while succ
(set-window-point (car succ) (nth 1 (assq (car succ) win-start-end)))
(setq succ (cdr succ)))))