From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Scroll preserving point position - other meaning Date: Thu, 15 Jan 2009 07:25:41 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232055963 27942 80.91.229.12 (15 Jan 2009 21:46:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2009 21:46:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 15 22:47:15 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LNa3O-0005zF-1j for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2009 22:47:06 +0100 Original-Received: from localhost ([127.0.0.1]:54952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNa27-0002Iy-By for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2009 16:45:47 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!w24g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1232033141 23944 127.0.0.1 (15 Jan 2009 15:25:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 15 Jan 2009 15:25:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w24g2000prd.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166034 X-Mailman-Approved-At: Thu, 15 Jan 2009 16:35:55 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61379 Archived-At: On Jan 14, 11:29 pm, volodyan 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 ba= r > 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 f= its > 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 wa= y > 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 =E2=80=9C(emacs)Mark=E2=80=9D. Xah =E2=88=91 http://xahlee.org/ =E2=98=84