Function: artist-coord-win-to-buf
artist-coord-win-to-buf is a byte-compiled function defined in
artist.el.gz.
Signature
(artist-coord-win-to-buf COORD)
Documentation
Convert a window-relative coordinate COORD to a buffer-relative coordinate.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
(defun artist-coord-win-to-buf (coord)
"Convert a window-relative coordinate COORD to a buffer-relative coordinate."
(let ((window-x (car coord))
(window-y (cdr coord))
(window-start-x (window-hscroll))
(window-start-y (save-excursion (goto-char (window-start))
(artist-current-line))))
(cons (+ window-x window-start-x)
(+ window-y window-start-y))))