emacs-devel
[Top][All Lists]
Advanced

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



reply via email to

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