GNU bug report logs - #55299
29.0.50; Bug with the mode-line and pixel-scroll-precision-mode

Previous Next

Package: emacs;

Reported by: Konrad Podczeck <konrad.podczeck <at> univie.ac.at>

Date: Sat, 7 May 2022 09:55:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Konrad Podczeck <konrad.podczeck <at> univie.ac.at>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 55299 <at> debbugs.gnu.org
Subject: Re: bug#55299: 29.0.50; Bug with the mode-line and
 pixel-scroll-precision-mode
Date: Sat, 7 May 2022 15:06:14 +0200
Debugger entered--Lisp error: (wrong-type-argument wholenump 489.0)
  posn-at-x-y(0 489.0)
  pixel-scroll-precision-scroll-up-page(1.0)
  pixel-scroll-precision-scroll-up(1.0)
  pixel-scroll-precision((wheel-down (#<window 3 on *GNU Emacs*> 1011 (259 . 390) 7730978 nil 1011 (37 . 22) nil (259 . 82) (7 . 14)) 1 0 (0.0 . -1.0)))
  funcall-interactively(pixel-scroll-precision (wheel-down (#<window 3 on *GNU Emacs*> 1011 (259 . 390) 7730978 nil 1011 (37 . 22) nil (259 . 82) (7 . 14)) 1 0 (0.0 . -1.0)))
  call-interactively(pixel-scroll-precision nil nil)
  command-execute(pixel-scroll-precision)


> Am 07.05.2022 um 13:54 schrieb Po Lu <luangruo <at> yahoo.com>:
> 
> Konrad Podczeck <konrad.podczeck <at> 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.





This bug report was last modified 3 years and 1 day ago.

Previous Next


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