In the description of the function
goto-line in the built-in emacs documentation, I found the following at the end:
This function is usually the wrong thing to use in a Lisp program. What you probably want instead is something like: (goto-char (point-min)) (forward-line (1- N)) If at all possible, an even better solution is to use char counts rather than line counts.
switch-to-buffer function's documentation says:
WARNING: This is NOT the way to work on another buffer temporarily within a Lisp program! Use `set-buffer' instead. That avoids messing with the window-buffer correspondences.
Is it possible to know the non-interactive versions of frequent interactive functions like
kill-line etc. or that these are efficient and do not have a non-interactive equivalent?
I did not find any relevant information about the two specific commands
kill-line in the built-in documentation, so I would also like to know if that implies that these are okay for non-interactive use.