all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Scroll preserving point position - other meaning
Date: Thu, 15 Jan 2009 07:25:41 -0800 (PST)	[thread overview]
Message-ID: <c5a913b4-d9b3-45b5-a5db-aa95b177c7b6@w24g2000prd.googlegroups.com> (raw)
In-Reply-To: mailman.4926.1232027586.26697.help-gnu-emacs@gnu.org

On Jan 14, 11:29 pm, volodyan <volod...@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.
>
> 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. 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?


emacs has the concept of markers, which basically means you can save
positions in the buffer and go back to any saved position anytime. (as
opposed to other editors, which effective has 1 single marker)

The short answer to your question is: type Ctrl+Space to mark a
position. Then, later when you want to jump back to the last marked
position, press Ctrl+x Ctrl+x. Press that again to go back to last
cursor position.

The saved positions is called the mark ring.
One should be able to mark multiple positions and cycle them...
despite me using emacs for 10 years and attempted to read the marker
cycle usage documentation a few times but never really understand it
exactly to actually use it ...

You might try to read the doc yourself. Type Alt+x info, then node
“(emacs)Mark”.

  Xah
∑ http://xahlee.org/

       reply	other threads:[~2009-01-15 15:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4926.1232027586.26697.help-gnu-emacs@gnu.org>
2009-01-15 15:25 ` Xah Lee [this message]
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
2009-01-15 23:14 ` Alan Mackenzie
2009-01-16  3:10   ` volodyan

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=c5a913b4-d9b3-45b5-a5db-aa95b177c7b6@w24g2000prd.googlegroups.com \
    --to=xahlee@gmail.com \
    --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.