unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Konrad Podczeck <konrad.podczeck@univie.ac.at>
To: Po Lu <luangruo@yahoo.com>
Cc: 55299@debbugs.gnu.org
Subject: bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode
Date: Sat, 7 May 2022 15:06:14 +0200	[thread overview]
Message-ID: <D6940E5C-6001-485C-83FD-DE5E2E027658@univie.ac.at> (raw)
In-Reply-To: <878rrd7e3q.fsf@yahoo.com>

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@yahoo.com>:
> 
> 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	other threads:[~2022-05-07 13:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-07  9:54 bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode Konrad Podczeck
2022-05-07 10:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-07 11:14   ` Konrad Podczeck
2022-05-07 11:54     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-07 13:06       ` Konrad Podczeck [this message]
2022-05-07 13:21         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-07 14:40           ` Konrad Podczeck
2022-05-08  0:40             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-08  1:01             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-08  5:34               ` Eli Zaretskii
2022-05-08  5:55                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-08  6:13                   ` Eli Zaretskii
2022-05-08  7:06                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-08 10:01                       ` Konrad Podczeck
2022-05-08 11:02                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-19 12:50 ` Konrad Podczeck

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=D6940E5C-6001-485C-83FD-DE5E2E027658@univie.ac.at \
    --to=konrad.podczeck@univie.ac.at \
    --cc=55299@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    /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).