From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: mouse scroll and caret position Date: Wed, 16 Sep 2009 10:17:06 +0200 Message-ID: <4AB09F02.5070901@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253089068 29716 80.91.229.12 (16 Sep 2009 08:17:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 08:17:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: jay.27182818@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 16 10:17:41 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 1Mnphs-0003iS-Lm for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 10:17:40 +0200 Original-Received: from localhost ([127.0.0.1]:51004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mnphr-0001pr-QK for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 04:17:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnphV-0001lS-FO for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 04:17:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnphQ-0001hq-DZ for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 04:17:16 -0400 Original-Received: from [199.232.76.173] (port=32928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnphP-0001hW-W2 for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 04:17:12 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:57391) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MnphP-0001b4-Dj for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 04:17:11 -0400 Original-Received: (qmail invoked by alias); 16 Sep 2009 08:17:09 -0000 Original-Received: from 62-47-34-33.adsl.highway.telekom.at (EHLO [62.47.34.33]) [62.47.34.33] by mail.gmx.net (mp021) with SMTP; 16 Sep 2009 10:17:09 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18dgFQIaEIdUEQfXn90Xa3h8YQlFYdLLhKsjef4E7 8waR85ye/c3zGs User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) Original-References: 1253014063.8381.26.camel@jay X-Y-GMX-Trusted: 0 X-FuHaFi: 0.78 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:68201 Archived-At: > hi, guys. how can i preserve caret position when scrolling the window? i > got used to the following technique - when i have to shoot a glance at a > piece of code in the same file but a couple of pages above/under my > current position i scroll the window with mouse wheel or scrollbar then > look at the code and hit either an arrow key or just start entering new > code based on what i've seen and my ide/editor brings my current > position into view automatically. when i do it in emacs if i scroll the > window too much the caret changes its position to stay on the screen. Have a look at http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg01892.html martin