[Top][All Lists]

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

Re: Scroll preserving point position - other meaning

From: Andreas Politz
Subject: Re: Scroll preserving point position - other meaning
Date: Thu, 15 Jan 2009 17:38:59 +0100
User-agent: Mozilla-Thunderbird (X11/20081018)

Lennart Borgman wrote:
On Thu, Jan 15, 2009 at 8:29 AM, volodyan <address@hidden> wrote:
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 ()
  (when (eq this-command 'scroll-bar-command)
      (while (scroll-bar-command-p)
        (apply 'scroll-command)

I don't know if that's what eveybody has in mind here.


reply via email to

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