* Inconsistent recentering around arbitrary point
@ 2021-01-21 15:56 Vasilii Kolobkov
0 siblings, 0 replies; only message in thread
From: Vasilii Kolobkov @ 2021-01-21 15:56 UTC (permalink / raw)
To: help-gnu-emacs
Hello Emacs folks!
I'm trying to display a file at particular position along my current
window like this:
(let ((file "~/somewaht-big.org")
(pos 10000))
(with-selected-window
(display-buffer (find-file-noselect file))
(goto-char pos)
(recenter)))
Yet i don't get consistent results. E.g. if i have a buffer visiting
that file burried, then i'm likely to get point set before the expected
value. That doesn't happen if i try it on large plain text files.
What am i missing here?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-21 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-21 15:56 Inconsistent recentering around arbitrary point Vasilii Kolobkov
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).