elisp: posn-at-point returns nil after goto-char. How to update the display before posn-at-point?
- by Cheeso
In emacs lisp, posn-at-point is documented as:
posn-at-point is a built-in function in C source code.
(posn-at-point &optional POS WINDOW)
.
Return position information for buffer POS in WINDOW.
POS defaults to point in WINDOW; WINDOW defaults to the selected window.
.
Return nil if position is not visible in window. …