[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Pushing the mark from a primitive like goto-char
From: |
Daniel Martín |
Subject: |
Pushing the mark from a primitive like goto-char |
Date: |
Mon, 28 Dec 2020 13:14:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) |
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?).
If it's a good idea, what's the cleanest and simplest way to do that?
goto-char is implemented in C, so it'd need to call push-mark, which is
implemented in ELisp. Should it call push-mark via eval_sub or Feval,
or is there an alternative C primitive to push the mark into the mark
ring correctly?
TIA
- Pushing the mark from a primitive like goto-char,
Daniel Martín <=
- Re: Pushing the mark from a primitive like goto-char, Philipp Stephani, 2020/12/28
- Re: Pushing the mark from a primitive like goto-char, Daniel Martín, 2020/12/28
- Re: Pushing the mark from a primitive like goto-char, Eli Zaretskii, 2020/12/28
- Re: Pushing the mark from a primitive like goto-char, Stefan Kangas, 2020/12/28
- Re: Pushing the mark from a primitive like goto-char, Philipp Stephani, 2020/12/28
- Re: Pushing the mark from a primitive like goto-char, martin rudalics, 2020/12/28
- Re: Pushing the mark from a primitive like goto-char, Juri Linkov, 2020/12/28
- Re: Pushing the mark from a primitive like goto-char, martin rudalics, 2020/12/29
- Re: Pushing the mark from a primitive like goto-char, Stefan Kangas, 2020/12/29
- Re: Pushing the mark from a primitive like goto-char, martin rudalics, 2020/12/29