From: Lars Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Setting point
Date: Fri, 13 Apr 2018 21:56:13 +0200 [thread overview]
Message-ID: <87lgdqubhe.fsf@mouse.gnus.org> (raw)
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
next reply other threads:[~2018-04-13 19:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-13 19:56 Lars Ingebrigtsen [this message]
2018-04-13 20:32 ` Setting point 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lgdqubhe.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).