unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Setting point
@ 2018-04-13 19:56 Lars Ingebrigtsen
  2018-04-13 20:32 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-13 19:56 UTC (permalink / raw)
  To: emacs-devel

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?

Anyway, how do you set point in buffers these days?  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-04-14  6:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-13 19:56 Setting point Lars Ingebrigtsen
2018-04-13 20:32 ` Eli Zaretskii
2018-04-13 20:39   ` Lars Ingebrigtsen
2018-04-13 20:41     ` Lars Ingebrigtsen
2018-04-13 21:40     ` Stefan Monnier
2018-04-13 21:52       ` Lars Ingebrigtsen
2018-04-13 22:14         ` Stefan Monnier
2018-04-13 22:24           ` Lars Ingebrigtsen
2018-04-14  6:17     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).