emacs-devel
[Top][All Lists]
Advanced

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

Re: Pushing the mark from a primitive like goto-char


From: Philipp Stephani
Subject: Re: Pushing the mark from a primitive like goto-char
Date: Mon, 28 Dec 2020 16:32:10 +0100

Am Mo., 28. Dez. 2020 um 15:56 Uhr schrieb Stefan Kangas
<stefankangas@gmail.com>:
>
> Philipp Stephani <p.stephani2@gmail.com> writes:
>
> >> goto-char is an interactive function that has the potential to take you
> >> long distances, so it might be a good idea, for user convenience, to
> >> push the mark as a documented side effect (is it a good idea?).
> >
> > goto-char is a low-level primitive that's used pervasively in Emacs
> > Lisp code. I think that pushing the mark would be a way too drastic
> > change.
>
> Agreed.
>
> But would it perhaps make sense to push the mark only when it is called
> interactively?

I don't think we should have functions that behave significantly
differently when called interactively - too much confusion.

>  Or to replace `M-g c' with a new command that also
> pushes mark?

That sounds feasible. Maybe we should then also introduce a
customization option to control the behavior.



reply via email to

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