Function: pixel-point-at-top-p
pixel-point-at-top-p is a byte-compiled function defined in
pixel-scroll.el.gz.
Signature
(pixel-point-at-top-p AMT)
Documentation
Return if point is located at top of a window on coming scroll of AMT pixels.
When location of point was not obtained, this returns if point is at top of window.
Source Code
;; Defined in /usr/src/emacs/lisp/pixel-scroll.el.gz
(defun pixel-point-at-top-p (amt)
"Return if point is located at top of a window on coming scroll of AMT pixels.
When location of point was not obtained, this returns if point is at top
of window."
(let ((y (pixel-posn-y-at-point))
top-margin)
(cond
(y
(setq top-margin y)
(< top-margin amt))
(t
(<= (count-lines (window-start) (point)) 1)))))