|
From: | Stefan Monnier |
Subject: | Re: no difference between interactive and "from Lisp" |
Date: | Tue, 05 Jul 2022 22:28:48 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> That's because `beginning-of-buffer' is in Elisp and > `goto-char' is in C, right? No. It's because `beginning-of-buffer' is meant for interactive use, so it messes with the mark, for example. Messing with the mark is a bad idea when some piece of ELisp code goes to BOB just as part of doing something else (e.g. just to go see what the first line looks like in order to decide how to perform some local operation elsewhere in the buffer). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |