Function: org-src--goto-coordinates
org-src--goto-coordinates is a byte-compiled function defined in
org-src.el.gz.
Signature
(org-src--goto-coordinates COORD BEG END)
Documentation
Move to coordinates COORD relatively to BEG and END.
COORD are coordinates, as returned by org-src--coordinates,
which see. BEG and END are buffer positions.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defun org-src--goto-coordinates (coord beg end)
"Move to coordinates COORD relatively to BEG and END.
COORD are coordinates, as returned by `org-src--coordinates',
which see. BEG and END are buffer positions."
(goto-char
(if (eq coord 'end) (max (1- end) beg)
;; If BEG happens to be located outside of the narrowed part of
;; the buffer, widen it first.
(org-with-wide-buffer
(goto-char beg)
(forward-line (car coord))
(max (point)
(+ (min end (line-end-position))
(cdr coord)))))))