Function: pixel-point-at-bottom-p

pixel-point-at-bottom-p is a byte-compiled function defined in pixel-scroll.el.gz.

Signature

(pixel-point-at-bottom-p AMT)

Documentation

Return if point is located at bottom of window on coming scroll of AMT pixels.

When location of point was not obtained, this returns nil.

Source Code

;; Defined in /usr/src/emacs/lisp/pixel-scroll.el.gz
(defun pixel-point-at-bottom-p (amt)
  "Return if point is located at bottom of window on coming scroll of AMT pixels.
When location of point was not obtained, this returns nil."
  (let* ((edges (window-inside-pixel-edges))
         (height (- (nth 3 edges) (nth 1 edges))) ; (- bottom top)
         (y (pixel-posn-y-at-point))
         bottom-margin)
    (when y
      (setq bottom-margin (- height (+ y (pixel-visual-line-height))))
      (< bottom-margin amt)))) ; coming unseen line