From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: josh+gnu@nispio.net, 18739@debbugs.gnu.org
Subject: bug#18739: 24.3; Request for a hook to be provided when scrolling will move the cursor
Date: Wed, 15 Oct 2014 18:48:16 -0400 [thread overview]
Message-ID: <jwv1tq9x87a.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <83wq813vyx.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 15 Oct 2014 23:43:18 +0300")
>> It would be helpful to have a hook that would be called before any
>> scrolling command moves the cursor. In other words, I want to be
>> notified when an update to the display will force the location of
>> `point' to change in the current buffer.
> What's wrong with window-scroll-functions?
But these are also called when point is not affected, right?
>> One motivation for such a hook is the ability to save the current
>> cursor location before scrolling so that it is possible to
>> automatically jump back to that position after scolling.
> 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.
He's thinking of scrolling back a while later.
Think about a case such as Martin's scroll-replace.el (just added to GNU
ELPA).
Stefan
next prev parent reply other threads:[~2014-10-15 22:48 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-15 18:51 bug#18739: 24.3; Request for a hook to be provided when scrolling will move the cursor Josh
2014-10-15 20:43 ` Eli Zaretskii
2014-10-15 21:01 ` Josh
2014-10-15 21:08 ` Eli Zaretskii
2014-10-15 21:12 ` Josh Hunsaker
2014-10-15 21:27 ` Ivan Shmakov
2014-10-16 6:36 ` Eli Zaretskii
2014-10-16 7:15 ` Andreas Schwab
2014-10-16 7:33 ` Eli Zaretskii
2014-10-16 7:38 ` Andreas Schwab
2014-10-16 7:50 ` Eli Zaretskii
2014-10-15 22:48 ` Stefan Monnier [this message]
2014-10-16 6:41 ` Eli Zaretskii
2014-10-16 13:44 ` Stefan Monnier
2014-10-16 13:53 ` Josh
2014-10-16 14:25 ` Eli Zaretskii
2014-10-16 14:35 ` Josh
2014-10-16 14:46 ` Eli Zaretskii
2014-10-16 14:58 ` Josh
2014-10-16 15:00 ` Eli Zaretskii
2022-04-27 18:45 ` Lars Ingebrigtsen
2014-10-16 14:13 ` Eli Zaretskii
2014-10-16 15:13 ` Stefan Monnier
2014-10-16 15:32 ` Josh
2014-10-16 15:54 ` Eli Zaretskii
2014-10-16 19:28 ` Stefan Monnier
2014-10-16 20:28 ` Eli Zaretskii
2014-10-16 21:24 ` Stefan Monnier
2014-10-17 6:38 ` Eli Zaretskii
2014-10-17 13:04 ` Stefan Monnier
2014-10-17 13:16 ` Eli Zaretskii
2014-10-17 17:02 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1tq9x87a.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=18739@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=josh+gnu@nispio.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).