From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.bugs Subject: bug#18739: 24.3; Request for a hook to be provided when scrolling will move the cursor Date: Wed, 15 Oct 2014 14:01:34 -0700 Message-ID: References: <83wq813vyx.fsf@gnu.org> Reply-To: josh+gnu@nispio.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1413406948 1279 80.91.229.3 (15 Oct 2014 21:02:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2014 21:02:28 +0000 (UTC) Cc: 18739@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 23:02:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XeVi8-000872-HE for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Oct 2014 23:02:20 +0200 Original-Received: from localhost ([::1]:46813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeVi7-0007pl-UX for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Oct 2014 17:02:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeVhx-0007pM-OO for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 17:02:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeVhq-0003ZE-8K for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 17:02:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeVhq-0003ZA-5r for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 17:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XeVhp-0002SG-Ov for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 17:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Josh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Oct 2014 21:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18739 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18739-submit@debbugs.gnu.org id=B18739.14134068999397 (code B ref 18739); Wed, 15 Oct 2014 21:02:01 +0000 Original-Received: (at 18739) by debbugs.gnu.org; 15 Oct 2014 21:01:39 +0000 Original-Received: from localhost ([127.0.0.1]:44887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeVhS-0002RV-SH for submit@debbugs.gnu.org; Wed, 15 Oct 2014 17:01:39 -0400 Original-Received: from mail-lb0-f174.google.com ([209.85.217.174]:36398) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeVhQ-0002RK-1y for 18739@debbugs.gnu.org; Wed, 15 Oct 2014 17:01:36 -0400 Original-Received: by mail-lb0-f174.google.com with SMTP id p9so1747002lbv.5 for <18739@debbugs.gnu.org>; Wed, 15 Oct 2014 14:01:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:sender:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=mziN/oU8tkL3M4xELajEoah4+DeRaZtGV579LPTA4xw=; b=NpTNaSevY4KXiETAd/GwzILVMfQNFWZ6GK5yS+pvrZ5/87h3tqS9RHwEaF3OxIHbr1 D3GOLpinZEOiLXw6KxJKiftiSGm+/aiYD5IAikRTwkxXqVOnOerZKBGPMem667p7iKQn FtnRF/xqjQxSG6r92JdEy04Br89CmBJuxBjFWEt71N1ANUw8VJ+cmM80t7AQZDdp/tpR Ir9ZeL410jSFz3KksNgtJ+bDV+Ka8Hd7WpvmQ6V+Vpjy3shpJZcEBl1GBNj5/Et7xa43 g2+dDMitgA3M/oc7UjHlAm2YRFgXLgv+9u9GdP/cpwkFqcpXCclUyxqZG1hz0gR5JCol s/mQ== X-Gm-Message-State: ALoCoQm/cKYFRooC47//JxPGf+OEnypl5yIv7yMpWGdOUkLkbAud6gAgm4Gwi0a94P5iX7t/C5a7 X-Received: by 10.112.118.229 with SMTP id kp5mr4283747lbb.99.1413406894871; Wed, 15 Oct 2014 14:01:34 -0700 (PDT) Original-Received: by 10.152.37.202 with HTTP; Wed, 15 Oct 2014 14:01:34 -0700 (PDT) X-Originating-IP: [67.128.198.190] In-Reply-To: <83wq813vyx.fsf@gnu.org> X-Google-Sender-Auth: SFrOHx5xdQIBLuKyvK-CKwCaBWE X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94558 > If you jump back, you will actually undo the scroll, so I'm not sure > what kind of situation are you talking about, or why do you use the > scrolling commands to begin with. Please elaborate. I am writing code and I realize that I forgot the name of the variable that I defined 30 lines ago, I use the mouse to do a quick scroll up, read the name, and scroll back down where I came from. The problem is that now the cursor location has changed, and I have to spend time trying to figure out which line I was typing on and moving my cursor back to that position. It would be nice if I could have the cursor stay where I left it for the brief period that I peek elsewhere in the buffer. > What's wrong with window-scroll-functions? I was looking for a hook, and did not see a relevant one. I was not aware that window-scroll-functions existed, but it looks like it could be a viable solution. Thank you.