all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to scroll while keeping the position of the point with respect to the text?
@ 2007-09-05 19:08 Yevgeniy Makarov
  2007-09-05 19:33 ` Ekkehard Görlach
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yevgeniy Makarov @ 2007-09-05 19:08 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I am looking for a way to scroll text vertically without moving the
position of point with respect to the text. I'd like to do this
frequently when I am prepared to edit something and would like to see
a bit more of the context without moving the point from the selected
position.

I know that this is what the recenter function does; however, it asks
for the screen line number where to put the point, and I would like
for this to be determined automatically by adding or subtracting 1
from the current line number.

If the point is on the top window line, it would be natural to do
(scroll-up 1) instead of recenter, and similarly for the bottom line.
In this case, of course, the position of the point with respect to the
text would change.

If there is no such standard command, I could one myself, but with
changing line height I found a little tricky to figure out whether the
point is on the bottom or top line in the window. Is there a
convenient way to do this?

Thank you,
Yevgeniy

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

end of thread, other threads:[~2007-09-06 11:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-05 19:08 How to scroll while keeping the position of the point with respect to the text? Yevgeniy Makarov
2007-09-05 19:33 ` Ekkehard Görlach
2007-09-05 19:49   ` Yevgeniy Makarov
2007-09-05 20:38 ` Ph. Ivaldi
2007-09-05 21:42 ` Peter Dyballa
2007-09-06 11:34   ` Yevgeniy Makarov

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.