all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* allowing scroll to move point off screen
@ 2004-03-10 17:36 Vincent A. Fiano
  2004-03-14  6:07 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent A. Fiano @ 2004-03-10 17:36 UTC (permalink / raw)


I've been using emacs for many years, but I really like the way that the
simple GUI editors scroll - they leave the cursor at the same buffer
position even if it is off screen.  This has the advantage of being able
to look at another part of the buffer, but snap back to your current
buffer position by typing or moving the point.

It seems that keeping the point on the screen is hard coded into the
redisplay function of emacs, but is there any way to allow the scroll bar
and mouse wheel to move the point off the screen?

Unfortunately, from what I can tell redisplay automatically adjusts
window-start and window-end and the point to keep the point on the screen,
and it does not know if I am scrolling via a scrollbar or page up/down
key.  Is there a variable I can set that controls whether redisplay
recenters the point or not?  Given this I think that I can manage the rest
myself.

- Vincent

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Vincent Fiano    /          ynniv@cc.gatech.edu
------ - -  -    `--------------> www.ynniv.com
       M          o         o         F

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

* Re: allowing scroll to move point off screen
  2004-03-10 17:36 allowing scroll to move point off screen Vincent A. Fiano
@ 2004-03-14  6:07 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2004-03-14  6:07 UTC (permalink / raw)


> Date: Wed, 10 Mar 2004 12:36:39 -0500 (EST)
> From: "Vincent A. Fiano" <ynniv@cc.gatech.edu>
> 
> I've been using emacs for many years, but I really like the way that the
> simple GUI editors scroll - they leave the cursor at the same buffer
> position even if it is off screen.  This has the advantage of being able
> to look at another part of the buffer, but snap back to your current
> buffer position by typing or moving the point.
> 
> It seems that keeping the point on the screen is hard coded into the
> redisplay function of emacs

Right.

> but is there any way to allow the scroll bar and mouse wheel to move
> the point off the screen?

No.  Keeping point visible at all times is one of the most important
design goals of the Emacs redisplay engine.

See the variable scroll-preserve-screen-position for something that
might help you.

Also, in Emacs you can have more than one window looking at the same
buffer, each window with its own value of point.

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

end of thread, other threads:[~2004-03-14  6:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-10 17:36 allowing scroll to move point off screen Vincent A. Fiano
2004-03-14  6:07 ` Eli Zaretskii

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.