* scroll without moving the point
@ 2005-03-29 11:49 Olive
2005-03-29 14:00 ` Joe Corneli
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Olive @ 2005-03-29 11:49 UTC (permalink / raw)
Hello,
Is there a way to configure emacs in order that when I scroll (usually
with the mouse wheel), the point (the cursor position) stay at the same
position in the buffer, even if this point is not in the visible part
anymore? this could be usefull to see a matching parenthesis or the
beginning of a region, etc...
Olive
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: scroll without moving the point
2005-03-29 11:49 scroll without moving the point Olive
@ 2005-03-29 14:00 ` Joe Corneli
[not found] ` <mailman.502.1112106059.28103.help-gnu-emacs@gnu.org>
2005-03-29 15:06 ` Daniel Wright
2 siblings, 0 replies; 4+ messages in thread
From: Joe Corneli @ 2005-03-29 14:00 UTC (permalink / raw)
Is there a way to configure emacs in order that when I scroll (usually
with the mouse wheel), the point (the cursor position) stay at the same
position in the buffer, even if this point is not in the visible part
anymore? this could be usefull to see a matching parenthesis or the
beginning of a region, etc...
For finding a matching parenthesis, I'd recommend using `forward-sexp'
or `backward-sexp'. These commands should be bound to some convenient
keystroke, since they are just so useful.
In general, I think the answer is probably either "no" or "there's a
better way"... but using a trick I just learned from David Kastrup
here, how about C-SPC C-g <navigate to wherever you want>, then C-u
C-SPC (or alternatively C-x C-x), to return to where you set the mark?
(C-g is only inserted in this sequence to prevent the region from
being highlighted in `transient-mark-mode').
(Sorry that this advice has nothing to do with your mouse wheel, but
you could probably set things up to set/restore the mark etc. all with
the mouse - then you'd be totally set!)
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.502.1112106059.28103.help-gnu-emacs@gnu.org>]
* Re: scroll without moving the point
2005-03-29 11:49 scroll without moving the point Olive
2005-03-29 14:00 ` Joe Corneli
[not found] ` <mailman.502.1112106059.28103.help-gnu-emacs@gnu.org>
@ 2005-03-29 15:06 ` Daniel Wright
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Wright @ 2005-03-29 15:06 UTC (permalink / raw)
Olive wrote:
> Hello,
>
> Is there a way to configure emacs in order that when I scroll (usually
> with the mouse wheel), the point (the cursor position) stay at the same
> position in the buffer, even if this point is not in the visible part
> anymore? this could be usefull to see a matching parenthesis or the
> beginning of a region, etc...
>
> Olive
Hi Olive,
You should find this thread interesting: "Emacs text cursor position"
from 23/01/2005, in which a very similar question was asked. Although,
unfortunately, no (ready-to-use) solution was provided.
<URL:http://lists.gnu.org/archive/html/help-gnu-emacs/2005-01/msg00464.html>
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-29 15:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29 11:49 scroll without moving the point Olive
2005-03-29 14:00 ` Joe Corneli
[not found] ` <mailman.502.1112106059.28103.help-gnu-emacs@gnu.org>
2005-03-29 15:03 ` Stefan Monnier
2005-03-29 15:06 ` Daniel Wright
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).