From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tyler Newsgroups: gmane.emacs.help Subject: Re: Scroll preserving point position - other meaning Date: Thu, 15 Jan 2009 17:55:14 -0400 Message-ID: <87iqogkzel.fsf@blackbart.sedgenet> References: <21472671.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232058068 2803 80.91.229.12 (15 Jan 2009 22:21:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2009 22:21:08 +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 23:22:21 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 1LNabF-00025J-KD for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2009 23:22:10 +0100 Original-Received: from localhost ([127.0.0.1]:35949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNaZw-0007wo-3b for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2009 17:20:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNaBf-0006tq-Cv for help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 16:55:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNaBc-0006sP-LZ for help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 16:55:38 -0500 Original-Received: from [199.232.76.173] (port=39096 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNaBc-0006sJ-CF for help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 16:55:36 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:42676 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNaBb-000216-UH for help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 16:55:36 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LNaBU-0004LH-Nn for help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 21:55:28 +0000 Original-Received: from hlfxns0169w-142068146117.pppoe-dynamic.ns.aliant.net ([142.68.146.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Jan 2009 21:55:28 +0000 Original-Received: from tyler.smith by hlfxns0169w-142068146117.pppoe-dynamic.ns.aliant.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Jan 2009 21:55:28 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: hlfxns0169w-142068146117.pppoe-dynamic.ns.aliant.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:hMLe1kflsGLNLaLZ5NtH82KN2+g= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:61382 Archived-At: volodyan 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!