Function: follow-estimate-first-window-start

follow-estimate-first-window-start is a byte-compiled function defined in follow.el.gz.

Signature

(follow-estimate-first-window-start WINDOWS WIN START)

Documentation

Estimate the position of the first window.

The estimate is computed by assuming that the window WIN, which should be a member of WINDOWS, starts at position START.

Source Code

;; Defined in /usr/src/emacs/lisp/follow.el.gz
(defun follow-estimate-first-window-start (windows win start)
  "Estimate the position of the first window.
The estimate is computed by assuming that the window WIN, which
should be a member of WINDOWS, starts at position START."
  (let ((windows-before (car (follow-split-followers windows win))))
    (save-excursion
      (goto-char start)
      (vertical-motion 0 win)
      (dolist (w windows-before)
	(vertical-motion (- (window-text-height w)) w))
      (point))))