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: Re: mouse scroll and caret position Date: Thu, 17 Sep 2009 02:07:08 +0300 Message-ID: <1253142428.7540.4.camel@jay> References: 1253014063.8381.26.camel@jay <4AB09F02.5070901@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253142494 17138 80.91.229.12 (16 Sep 2009 23:08:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 23:08:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: martin rudalics Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 17 01:08:06 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 1Mo3ba-0003vG-Be for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Sep 2009 01:08:06 +0200 Original-Received: from localhost ([127.0.0.1]:53025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mo3bZ-00021y-JH for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 19:08:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mo3an-0001ix-TL for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 19:07:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mo3aj-0001fO-BR for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 19:07:17 -0400 Original-Received: from [199.232.76.173] (port=37366 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mo3aj-0001fJ-3n for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 19:07:13 -0400 Original-Received: from mail-fx0-f226.google.com ([209.85.220.226]:50934) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mo3ai-00073f-Hq for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 19:07:12 -0400 Original-Received: by fxm26 with SMTP id 26so4072539fxm.42 for ; Wed, 16 Sep 2009 16:07:10 -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:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=GldpfL0zh5Xy5lnyijNx+EP6GPxG5Oo640kPQTZ6dZk=; b=W4XrutaWB3+qujNfPvGB8UWH1IxzHRlzHwmUdR/ypkbj9PcljoEeF6yJVyLOl6C4Lz p5P5ORoOjTEROPMzfE27svnyqzRO3AV5vlBn8zZiuTV8/E31NUKXguH0DMPEuE5Vq2td pwRbRA8mwfSuedAU4U9NdtBfbOCgqlbcNLYV4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=ZcpqkpyoKfQWkTsE7MNqVri8m4RWYq0/42gmd818gpCqCuyEl8/Ixosc2+TotfcHd0 OZjY2Q4oki8WRDXAQprtksCepHMjXvMnXYQgh+INrCoKqwJoV0UYqsZe4QUKQbRy9xDZ lyp5UJslHo1WAyo49+LhHQPNhiPDMpZ2RH4Eo= Original-Received: by 10.204.15.7 with SMTP id i7mr7814276bka.126.1253142430722; Wed, 16 Sep 2009 16:07:10 -0700 (PDT) Original-Received: from ?192.168.1.100? (17.122.221.62.dyn.idknet.com [62.221.122.17]) by mx.google.com with ESMTPS id 21sm10420360fkx.4.2009.09.16.16.07.08 (version=SSLv3 cipher=RC4-MD5); Wed, 16 Sep 2009 16:07:09 -0700 (PDT) In-Reply-To: <4AB09F02.5070901@gmx.at> X-Mailer: Evolution 2.27.91 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:68220 Archived-At: thanks martin. seems to be exactly what i need. i give it a try tomorrow. jay On Wed, 2009-09-16 at 10:17 +0200, martin rudalics wrote: > > 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