help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to scroll while keeping the position of the point with respect t


From: Peter Dyballa
Subject: Re: How to scroll while keeping the position of the point with respect to the text?
Date: Wed, 5 Sep 2007 23:42:01 +0200


Am 05.09.2007 um 21:08 schrieb Yevgeniy Makarov:

I am looking for a way to scroll text vertically without moving the
position of point with respect to the text.

I have these two functions from Jeff Peck:

        (defun scroll-down-in-place (n)
          (interactive "p")
          (previous-line n)
          (scroll-down n))
        (defun scroll-up-in-place (n)
          (interactive "p")
          (next-line n)
          (scroll-up n))

--
Greetings

  Pete

The human brain operates at only 10% of its capacity. The rest is overhead for the operating system.






reply via email to

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