Function: ghostel--pixel-anchor
ghostel--pixel-anchor is a natively compiled function defined in
ghostel.el.
Signature
(ghostel--pixel-anchor WINDOW TARGET)
Documentation
Return (START VSCROLL HEIGHT) anchoring TARGET at WINDOW's bottom.
Ask Emacs redisplay for the exact pixel position that places TARGET at the bottom of WINDOW. HEIGHT is the pixel height of START..TARGET.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--pixel-anchor (window target)
"Return (START VSCROLL HEIGHT) anchoring TARGET at WINDOW's bottom.
Ask Emacs redisplay for the exact pixel position that places TARGET at
the bottom of WINDOW. HEIGHT is the pixel height of START..TARGET."
(when-let* ((body-height (window-body-height window t))
((> body-height 0))
(size (window-text-pixel-size
window (cons target (- body-height)) target nil nil))
(start (nth 2 size)))
(list start (max 0 (- (nth 1 size) body-height)) (nth 1 size))))