1

As @NickD pointed out and per the documentation: This variable needs to be set before org.el is loaded. If you need to make a change while Emacs is running, use the customize interface or run the following code after updating it: ‘M-x org-element-update-syntax’


1

I've figured it out! You can use save-excursion to get the position of the n-th visual line (defun get-visual-line-start (n) "Get the character position of the 'nth' visual line, serving as the visual line number." (save-excursion (goto-line 1) (vertical-motion n) ; (end-of-visual-line) ; for the end of the line instead (point)))...


Only top voted, non community-wiki answers of a minimum length are eligible