Function: eca-editor--goto-position
eca-editor--goto-position is a natively compiled function defined in
eca-editor.el.
Signature
(eca-editor--goto-position POSITION)
Documentation
Move point to the 1-based POSITION in the current buffer.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-editor.el
(defun eca-editor--goto-position (position)
"Move point to the 1-based POSITION in the current buffer."
(widen)
(goto-char (point-min))
(forward-line (max 0 (1- (or (plist-get position :line) 1))))
(forward-char (min (max 0 (1- (or (plist-get position :character) 1)))
(- (line-end-position) (point)))))