[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting point
From: |
Eli Zaretskii |
Subject: |
Re: Setting point |
Date: |
Fri, 13 Apr 2018 23:32:25 +0300 |
> From: Lars Ingebrigtsen <address@hidden>
> Date: Fri, 13 Apr 2018 21:56:13 +0200
>
> If you're in an Emacs with *scratch* not displayed, this is a noop:
>
> (progn (set-buffer (get-buffer "*scratch*")) (goto-char (point-max)))
>
> When you switch to *scratch*, point will be wherever it used to be.
>
> I don't think Emacs has always behaved this way? It changed perhaps
> 5-10 years ago?
That's switch-to-buffer-preserve-window-point in action.
- Setting point, Lars Ingebrigtsen, 2018/04/13
- Re: Setting point,
Eli Zaretskii <=
- Re: Setting point, Lars Ingebrigtsen, 2018/04/13
- Re: Setting point, Lars Ingebrigtsen, 2018/04/13
- Re: Setting point, Stefan Monnier, 2018/04/13
- Re: Setting point, Lars Ingebrigtsen, 2018/04/13
- Re: Setting point, Stefan Monnier, 2018/04/13
- Re: Setting point, Lars Ingebrigtsen, 2018/04/13
- Re: Setting point, Eli Zaretskii, 2018/04/14