bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mo


From: Po Lu
Subject: bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode
Date: Sat, 07 May 2022 19:54:01 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Konrad Podczeck <konrad.podczeck@univie.ac.at> writes:

>> diff --git a/lisp/pixel-scroll.el b/lisp/pixel-scroll.el
>> index b0fe2f56c0..a7cfda2491 100644
>> --- a/lisp/pixel-scroll.el
>> +++ b/lisp/pixel-scroll.el
>> @@ -685,6 +685,8 @@ pixel-scroll-precision
>>       (setq window (frame-selected-window window)))
>>     (if (and (nth 4 event))
>>         (let ((delta (round (cdr (nth 4 event)))))
>> +          (when (< delta 1.0)
>> +            (setq delta 1.0))
>>           (unless (zerop delta)
>>             (if (> (abs delta) (window-text-height window t))
>>                 (mwheel-scroll event nil)
>
> With this, I get the error message „Wrong type argument: wholenump. 237.0

Please show a full backtrace from that.




reply via email to

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