[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no difference between interactive and "from Lisp"

From: Emanuel Berg
Subject: Re: no difference between interactive and "from Lisp"
Date: Wed, 06 Jul 2022 05:42:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier via Users list for the GNU Emacs text editor wrote:

>> 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).

OK, thanks! I'll get back to you, God willing :)

(defun bob ...

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]