From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jay I." Newsgroups: gmane.emacs.help Subject: mouse scroll and caret position Date: Tue, 15 Sep 2009 14:27:43 +0300 Message-ID: <1253014063.8381.26.camel@jay> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253076315 31465 80.91.229.12 (16 Sep 2009 04:45:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 04:45:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 16 06:45:08 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 1MnmOC-0003aW-9L for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 06:45:08 +0200 Original-Received: from localhost ([127.0.0.1]:47690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnmOB-0006IN-Qs for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 00:45:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnWCO-00027Z-LF for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:27:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnWCK-00027M-4q for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:27:52 -0400 Original-Received: from [199.232.76.173] (port=57976 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnWCK-00027J-0B for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:27:48 -0400 Original-Received: from mail-bw0-f220.google.com ([209.85.218.220]:45400) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnWCJ-0000VA-9I for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:27:47 -0400 Original-Received: by bwz20 with SMTP id 20so2831588bwz.42 for ; Tue, 15 Sep 2009 04:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=khLMKPgWzCCR1got0l9JqNf+0DWzgHiVDSeWQDdCRzE=; b=j82rUENjvx5QmDIefLGfFulSr5n2v3CTDSXM2hi6+GYIJwfLZ5D55TXRXJrTimrozF KOH1JiSx6MBOPH3TuSOXKUeL1mhfkKNFfGRh11vVJya88nVtOLFv2FZEFNGVr28KyQRf Ys2+Rama2L69FwchRjCzMX4/Vnqn38OpJaOWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=VpOkbvnF1zHFHXoXDI5+NZHHdlrzh6mtjp0seiYbA1ux9LyTPoveG/DOfX5l9xA5Lu ULacbpCIANYMcqFwpuwJSejw1Jumx3Q3F3gPqa5fb9AXR7GPprTZGNPcqAPi8tykmul/ fUx8R77rId7T4MbXaMY8cgtjD7N4NCvs/qhBs= Original-Received: by 10.204.32.209 with SMTP id e17mr6199673bkd.84.1253014065510; Tue, 15 Sep 2009 04:27:45 -0700 (PDT) Original-Received: from ?192.168.1.100? (180.109.235.77.dyn.idknet.com [77.235.109.180]) by mx.google.com with ESMTPS id z15sm7238006fkz.28.2009.09.15.04.27.44 (version=SSLv3 cipher=RC4-MD5); Tue, 15 Sep 2009 04:27:45 -0700 (PDT) X-Mailer: Evolution 2.27.91 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 16 Sep 2009 00:41:26 -0400 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:68176 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. p.s. i'm using emacs-gtk-22.2.1 regards, jay