all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Scroll preserving point position - other meaning
Date: Thu, 15 Jan 2009 17:38:59 +0100	[thread overview]
Message-ID: <1232037604.197929@arno.fh-trier.de> (raw)
In-Reply-To: <mailman.4942.1232033132.26697.help-gnu-emacs@gnu.org>

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



  parent reply	other threads:[~2009-01-15 16:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15  7:29 Scroll preserving point position - other meaning volodyan
2009-01-15 15:25 ` Lennart Borgman
     [not found] ` <mailman.4942.1232033132.26697.help-gnu-emacs@gnu.org>
2009-01-15 16:38   ` Andreas Politz [this message]
2009-01-15 21:27     ` volodyan
2009-01-15 21:55 ` tyler
2009-01-15 23:14 ` Alan Mackenzie
2009-01-16  3:10   ` volodyan
     [not found] <mailman.4926.1232027586.26697.help-gnu-emacs@gnu.org>
2009-01-15 15:25 ` Xah Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1232037604.197929@arno.fh-trier.de \
    --to=politza@fh-trier.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.