help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scroll preserving point position - other meaning


From: Xah Lee
Subject: Re: Scroll preserving point position - other meaning
Date: Thu, 15 Jan 2009 07:25:41 -0800 (PST)
User-agent: G2/1.0

On Jan 14, 11:29 pm, volodyan <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]