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 13:14:30 +0200 Message-ID: References: <7E7762D2-E79D-4BD3-B45B-294F3052AF36@univie.ac.at> <87czgp7i4v.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="24558"; 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 13:17:37 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 1nnIRM-00067W-MZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 May 2022 13:17:36 +0200 Original-Received: from localhost ([::1]:41472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnIRL-0006Sf-DX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 May 2022 07:17:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnIOs-0005q6-Od for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 07:15:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnIOs-0000xi-CM for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 07:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnIOs-00063t-3u for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 07:15: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 11:15: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.165192208523267 (code B ref 55299); Sat, 07 May 2022 11:15:02 +0000 Original-Received: (at 55299) by debbugs.gnu.org; 7 May 2022 11:14:45 +0000 Original-Received: from localhost ([127.0.0.1]:50623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnIOS-000633-1X for submit@debbugs.gnu.org; Sat, 07 May 2022 07:14:45 -0400 Original-Received: from grace.univie.ac.at ([131.130.3.115]:57078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnIOQ-00062t-0a for 55299@debbugs.gnu.org; Sat, 07 May 2022 07:14:35 -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=XhqK++yEfT/s/FAV1M0OhSTJZml2MFoE+o33mGB9CRU=; b=kgl+cbb+BpYNwiOBSSlaBEMffM 7XDurw0AU54UY9DjpYTTapItUxLjqD66VYszRKrZeQYO7ciXatzfQHtdKRRBE/7zjKaDnIx3vzGqY Di84el0sBF1j95f83WsoZdfvzGqGYWu6er7frAbIHyyDGGZxN15vqi+fiQSwHpxEZM/k=; 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 1nnION-00EQUP-07; Sat, 07 May 2022 13:14:31 +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 1nnIOM-00CX2L-NE; Sat, 07 May 2022 13:14:30 +0200 In-Reply-To: <87czgp7i4v.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:231574 Archived-At: > Am 07.05.2022 um 12:26 schrieb Po Lu : >=20 > [Please use X-Debbugs-CC when copying people into bug reports.] >=20 > Konrad Podczeck writes: >=20 >> Make an init file just containing the lines: >>=20 >> (pixel-scroll-precision-mode) >> (setq-default mode-line-format nil) >>=20 >> Open the app, and any file. Do C-x 2. If I scroll upwards in the >> inactive pane, using the mouse wheel, then = pixel-scroll-precision-mode >> does not work. >=20 >=20 > I cannot reproduce this on GNU/Linux, but it sounds similar to a = problem > others have reported on macOS that I could never reproduce. >=20 > This is not the final fix, but please see if the following code fixes > your problem: >=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) With this, I get the error message =E2=80=9EWrong type argument: = wholenump. 237.0