From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18739: 24.3; Request for a hook to be provided when scrolling will move the cursor Date: Thu, 16 Oct 2014 00:08:41 +0300 Message-ID: <83tx353usm.fsf@gnu.org> References: <83wq813vyx.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1413407372 6949 80.91.229.3 (15 Oct 2014 21:09:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2014 21:09:32 +0000 (UTC) Cc: 18739@debbugs.gnu.org To: josh+gnu@nispio.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 23:09:25 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 1XeVor-000413-1g for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Oct 2014 23:09:17 +0200 Original-Received: from localhost ([::1]:46858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeVoq-0000g8-By for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Oct 2014 17:09:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeVoi-0000fu-TZ for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 17:09:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeVod-00063M-0i for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 17:09:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeVoc-00063I-Th for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 17:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XeVoc-0002cu-Hl for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 17:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Oct 2014 21:09:02 +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.141340732510069 (code B ref 18739); Wed, 15 Oct 2014 21:09:02 +0000 Original-Received: (at 18739) by debbugs.gnu.org; 15 Oct 2014 21:08:45 +0000 Original-Received: from localhost ([127.0.0.1]:44891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeVoK-0002cL-QP for submit@debbugs.gnu.org; Wed, 15 Oct 2014 17:08:45 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:38384) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeVoI-0002cC-Oh for 18739@debbugs.gnu.org; Wed, 15 Oct 2014 17:08:43 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NDI0080072Z5A00@mtaout25.012.net.il> for 18739@debbugs.gnu.org; Thu, 16 Oct 2014 00:03:58 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NDI006A67UM7K40@mtaout25.012.net.il>; Thu, 16 Oct 2014 00:03:58 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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:94559 > Date: Wed, 15 Oct 2014 14:01:34 -0700 > From: Josh > Cc: 18739@debbugs.gnu.org > > > 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. The usual technique in Emacs is to put the mark where you were before scrolling. Then "C-x C-x" will get you back.