From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: Emacs text cursor position Date: Sun, 23 Jan 2005 15:48:12 +0100 Organization: sometimes Message-ID: <7e1xcc5hhv.fsf@ada2.unipv.it> References: <56c3c0f6.0501221905.233bd40c@posting.google.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1106491969 22116 80.91.229.6 (23 Jan 2005 14:52:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Jan 2005 14:52:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 23 15:52:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Csj6Z-0002sG-00 for ; Sun, 23 Jan 2005 15:52:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CsjIj-0007SX-Kj for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Jan 2005 10:05:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!in.100proofnews.com!in.100proofnews.com!npeer.de.kpn-eurorings.net!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 193.204.44.145 Original-X-Trace: quimby.gnus.org 1106491691 31558 193.204.44.145 (23 Jan 2005 14:48:11 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Sun, 23 Jan 2005 14:48:11 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:RliuWmmYzYA1g/qJKq2S5Dk8Moc= Original-Xref: shelby.stanford.edu gnu.emacs.help:128069 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:23561 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23561 ummajera@yahoo.ca (AM) writes: > How can I set "mouse > scroll" not to affect the position of the cursor? probably you can remember the point on first mouse scroll event and jump to it later. you can hide display of the cursor during scrolling. rough sketch: - advise scrolling commands to save point unless last-command is a scrolling command - advise scrolling commands to hide cursor - advise all other commands (or maybe just C-l) to show the cursor - advise C-l to jump to the saved point - make all this advising into a minor mode feel free to post code when you find/write it! thi