|
From: | Andreas Politz |
Subject: | Re: Scroll preserving point position - other meaning |
Date: | Thu, 15 Jan 2009 17:38:59 +0100 |
User-agent: | Mozilla-Thunderbird 2.0.0.17 (X11/20081018) |
Lennart Borgman wrote:
On Thu, Jan 15, 2009 at 8:29 AM, volodyan <volodyan@gmail.com> wrote:Hi, I am using Emacs with X and struggling to do the following. How can I preserve point's position while scrolling IN TEXT? I spent hours roaming through Internet/searched the forum, but everyone seems to be interested in preserving point's position on screen. I want to be able to use scroll bar with a mouse or PageUp/Down to look something up and then return, but the point insists on staying on screen.I think that can't be done. If I remember correctly this was discussed on Emacs devel a while ago.
I think one could write something like a modal scrolling, like in this pseudo elisp. (defun scroll-modal-pre-command-hook () "Pseudocode!" (when (eq this-command 'scroll-bar-command) (save-window-excursion (while (scroll-bar-command-p) (apply 'scroll-command) (read-event))))) I don't know if that's what eveybody has in mind here. -ap
[Prev in Thread] | Current Thread | [Next in Thread] |