emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 40c0124816: Minor improvements to precision scroll interpolat


From: Eli Zaretskii
Subject: Re: master 40c0124816: Minor improvements to precision scroll interpolation
Date: Sat, 30 Jul 2022 08:58:40 +0300

> --- a/lisp/pixel-scroll.el
> +++ b/lisp/pixel-scroll.el
> @@ -759,6 +759,9 @@ It is a vector of the form [ VELOCITY TIME SIGN ]."
>    (interactive "e")
>    (when pixel-scroll-precision-use-momentum
>      (let ((window (mwheel-event-window event))
> +          ;; The animations are smoother if the GC threshold is
> +          ;; reduced for the duration of the animation.
> +          (gc-cons-threshold (* gc-cons-threshold 3))
>            (state nil))

I don't think it is safe to multiply gc-cons-threshold without some
kind of limitation from above: the user or some Lisp program could
have increased the threshold already to a large value.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]