[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
https://dataswamp.org/~incal
- RE: [External] : Re: Making a function than can only be used interactively, (continued)
- RE: [External] : Re: Making a function than can only be used interactively, Drew Adams, 2022/07/08
- RE: [External] : Re: Making a function than can only be used interactively, carlmarcos, 2022/07/08
- RE: [External] : Re: Making a function than can only be used interactively, Drew Adams, 2022/07/08
- RE: [External] : Re: Making a function than can only be used interactively, carlmarcos, 2022/07/08
- RE: [External] : Re: Making a function than can only be used interactively, Drew Adams, 2022/07/09
- Re: [External] : Re: Making a function than can only be used interactively, Emanuel Berg, 2022/07/08
- Re: [External] : Re: Making a function than can only be used interactively, Emanuel Berg, 2022/07/08
- RE: [External] : Re: Making a function than can only be used interactively, Drew Adams, 2022/07/04
- no difference between interactive and "from Lisp" (was: Re: Making a function than can only be used interactively), Emanuel Berg, 2022/07/05
- Re: no difference between interactive and "from Lisp", Stefan Monnier, 2022/07/05
- Re: no difference between interactive and "from Lisp",
Emanuel Berg <=
- Re: Making a function than can only be used interactively, Po Lu, 2022/07/03
Re: Making a function than can only be used interactively, Christopher Dimech, 2022/07/04
Re: Making a function than can only be used interactively, Christopher Dimech, 2022/07/04
Re: Making a function than can only be used interactively, Christopher Dimech, 2022/07/04