GNU bug report logs - #61307
30.0.50; pixel-scroll-precision-mode: window-scroll-functions?

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Mon, 6 Feb 2023 01:51:01 UTC

Severity: normal

Found in version 30.0.50

Full log


Message #26 received at 61307 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 61307 <at> debbugs.gnu.org
Subject: Re: bug#61307: 30.0.50; pixel-scroll-precision-mode:
 window-scroll-functions?
Date: Mon, 13 Feb 2023 05:31:00 +0200
> From: Michael Heerdegen <michael_heerdegen <at> web.de>
> Cc: 61307 <at> debbugs.gnu.org
> Date: Mon, 13 Feb 2023 03:20:19 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > So I guess we should add calls to window-scroll-functions inside
> > pixel-scroll.el functions which actually scroll.  Patches welcome.
> 
> pixel-scroll-mode (without "precision") already behaves correctly,
> AFAICT.
> 
> pixel-scroll-precision-mode has basically one command in its minor mode
> map that does not call the w-s-functions: `pixel-scroll-precision'.
> 
> So the naïve approach would be: call `window-scroll-functions' at the
> end of that command.  Is this the right direction?  Else I guess I'm not
> qualified here.  Haven't checked that momentum stuff (for scrolling) yet.

Each command would be too often, I think, since this could be every
pixel.  So I thought about some factor, perhaps configurable via a
variable, that would cause the call to be done every N pixels of
scroll.

WDYT?




This bug report was last modified 2 years and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.