From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konrad Podczeck Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <7E7762D2-E79D-4BD3-B45B-294F3052AF36@univie.ac.at> <87czgp7i4v.fsf@yahoo.com> <878rrd7e3q.fsf@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18764"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55299@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 07 15:07:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnK9Q-0004ir-SA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 May 2022 15:07:12 +0200 Original-Received: from localhost ([::1]:59550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnK9P-00042A-HB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 May 2022 09:07:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnK9G-00041m-OZ for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 09:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnK9G-0001wM-Fb for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 09:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnK9G-0002x0-AY for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 09:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konrad Podczeck Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 May 2022 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55299 X-GNU-PR-Package: emacs Original-Received: via spool by 55299-submit@debbugs.gnu.org id=B55299.165192878011258 (code B ref 55299); Sat, 07 May 2022 13:07:02 +0000 Original-Received: (at 55299) by debbugs.gnu.org; 7 May 2022 13:06:20 +0000 Original-Received: from localhost ([127.0.0.1]:50761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnK8a-0002vW-0a for submit@debbugs.gnu.org; Sat, 07 May 2022 09:06:20 -0400 Original-Received: from grace.univie.ac.at ([131.130.3.115]:43396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnK8X-0002vL-F2 for 55299@debbugs.gnu.org; Sat, 07 May 2022 09:06:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=univie.ac.at; s=rev2; h=To:References:Message-Id:Content-Transfer-Encoding: Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=F7TK7BQMWU3dpNkC8nwfsHrkZRpLCn1ipD5mH3m/GV0=; b=ebWUR5zctqVTohDIf8aGKiKMGv qIenpedNUFWavFyEzjuit5k70HiVo9/Pl2WDvBptokHwqXlUSu1HopbMqVBCYA3SWCG3OFPgO8ukX fL/OyHkFFrUkrQRr3RViJw2mW0f9xnc00zWBTBCAn8se1/UFznkhgjASq8R3cSw4LdmU=; Original-Received: from justin.univie.ac.at ([131.130.3.111] helo=justin.univie.ac.at) by grace.univie.ac.at with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.95) (envelope-from ) id 1nnK8V-00Ejoj-Bq; Sat, 07 May 2022 15:06:15 +0200 Original-Received: from 217-149-174-43.nat.highway.telekom.at ([217.149.174.43] helo=smtpclient.apple) by justin.univie.ac.at with esmtpsa (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) (envelope-from ) id 1nnK8V-00CrAw-2x; Sat, 07 May 2022 15:06:15 +0200 In-Reply-To: <878rrd7e3q.fsf@yahoo.com> X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Univie-Virus-Scan: scanned by ClamAV on justin.univie.ac.at X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231587 Archived-At: 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 (# 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 (# 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 : >=20 > Konrad Podczeck writes: >=20 >>> 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) >>=20 >> With this, I get the error message =E2=80=9EWrong type argument: = wholenump. 237.0 >=20 > Please show a full backtrace from that.