unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joe Corneli <jcorneli@math.utexas.edu>
Subject: Re: scroll without moving the point
Date: Tue, 29 Mar 2005 08:00:56 -0600	[thread overview]
Message-ID: <E1DGHH6-0003VX-00@lab45.ma.utexas.edu> (raw)
In-Reply-To: <42494147_1@x-privat.org> (message from Olive on Tue, 29 Mar 2005 13:49:13 +0200)

   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!)

  reply	other threads:[~2005-03-29 14:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-29 11:49 scroll without moving the point Olive
2005-03-29 14:00 ` Joe Corneli [this message]
     [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

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1DGHH6-0003VX-00@lab45.ma.utexas.edu \
    --to=jcorneli@math.utexas.edu \
    /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.
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).