From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.help Subject: Re: scroll without moving the point Date: Tue, 29 Mar 2005 08:00:56 -0600 Message-ID: References: <42494147_1@x-privat.org> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1112105106 18282 80.91.229.2 (29 Mar 2005 14:05:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2005 14:05:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 16:05:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGHKh-0007jL-6L for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Mar 2005 16:04:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGHb0-0002FG-1O for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Mar 2005 09:21:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGHaE-00024P-PU for help-gnu-emacs@gnu.org; Tue, 29 Mar 2005 09:20:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGHa5-000211-RG for help-gnu-emacs@gnu.org; Tue, 29 Mar 2005 09:20:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGHa5-0001y1-LA for help-gnu-emacs@gnu.org; Tue, 29 Mar 2005 09:20:33 -0500 Original-Received: from [146.6.139.124] (helo=dell3.ma.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DGHH8-0001MC-Pg for help-gnu-emacs@gnu.org; Tue, 29 Mar 2005 09:00:59 -0500 Original-Received: from lab45.ma.utexas.edu (mail@lab45.ma.utexas.edu [128.83.133.159]) by dell3.ma.utexas.edu (8.11.0.Beta3/8.10.2) with ESMTP id j2TE0uC08594; Tue, 29 Mar 2005 08:00:56 -0600 Original-Received: from jcorneli by lab45.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 1DGHH6-0003VX-00; Tue, 29 Mar 2005 08:00:56 -0600 Original-To: help-gnu-emacs@gnu.org In-reply-to: <42494147_1@x-privat.org> (message from Olive on Tue, 29 Mar 2005 13:49:13 +0200) 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:25260 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25260 Is there a way to configure emacs in order that when I scroll (usually with the mouse wheel), the point (the cursor position) stay at the same position in the buffer, even if this point is not in the visible part anymore? this could be usefull to see a matching parenthesis or the beginning of a region, etc... For finding a matching parenthesis, I'd recommend using `forward-sexp' or `backward-sexp'. These commands should be bound to some convenient keystroke, since they are just so useful. In general, I think the answer is probably either "no" or "there's a better way"... but using a trick I just learned from David Kastrup here, how about C-SPC C-g , then C-u C-SPC (or alternatively C-x C-x), to return to where you set the mark? (C-g is only inserted in this sequence to prevent the region from being highlighted in `transient-mark-mode'). (Sorry that this advice has nothing to do with your mouse wheel, but you could probably set things up to set/restore the mark etc. all with the mouse - then you'd be totally set!)