all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tyler <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Scroll preserving point position - other meaning
Date: Thu, 15 Jan 2009 17:55:14 -0400	[thread overview]
Message-ID: <87iqogkzel.fsf@blackbart.sedgenet> (raw)
In-Reply-To: 21472671.post@talk.nabble.com

volodyan <volodyan@gmail.com> writes:
> I am using Emacs with X and struggling to do the following. How can I
> preserve point's position while scrolling IN TEXT? 

Others have sent you code that maybe can solve this problem, although
I'm not sure it's possible. Another approach that might be simpler is to
use the mark. If you set the mark before you start scrolling (C-spc),
you can then return to the spot you started at with C-x C-x.

> Another, I think related issue, if I want to find a matching parentheses, I
> click on one and the region between the two is selected. If this region fits
> the screen - fine. But if not, when I try scrolling using a mouse to find
> another end of the region, the region gets unselected. 

If you want to find the matching parenthesis, put the cursor/point on
the first one and use M-C-n to jump to the closing parenthesis. Or put
point on the closing bracket and use M-C-p to jump to the opening
parenthesis.

> In all other graphical editors scrolling with a mouse doesn't move
> point/unselects region. I just "upgraded" to Emacs from Eclipse and I
> guess there is a way to get such behavior in Emacs. How?

I'm not sure if you can actually get the specific behaviour you want
with Emacs, but if you experiment a bit you might find keyboard
shortcuts that achieve the same objective. Most of the time I've found
that things that seem really dumb/painful in Emacs are that way because
there is a more sensible alternative. Finding those alternatives is part
of the fun of Emacs.  

Cheers,

Tyler

-- 
Saint Mary's - they do science there!





  parent reply	other threads:[~2009-01-15 21:55 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
2009-01-15 21:27     ` volodyan
2009-01-15 21:55 ` tyler [this message]
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=87iqogkzel.fsf@blackbart.sedgenet \
    --to=tyler.smith@mail.mcgill.ca \
    --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.