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 16:40:23 +0200 Message-ID: <0E529C44-AB66-47DE-8431-B27EB84A2549@univie.ac.at> References: <7E7762D2-E79D-4BD3-B45B-294F3052AF36@univie.ac.at> <87czgp7i4v.fsf@yahoo.com> <878rrd7e3q.fsf@yahoo.com> <871qx57a2k.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="15616"; 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 16:41:10 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 1nnLcL-0003rh-A4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 May 2022 16:41:09 +0200 Original-Received: from localhost ([::1]:33004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnLcK-0006c4-99 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 May 2022 10:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnLcE-0006bu-DM for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 10:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnLcE-0007id-4X for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 10:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnLcE-00082u-36 for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 10:41: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 14:41: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.165193443030877 (code B ref 55299); Sat, 07 May 2022 14:41:02 +0000 Original-Received: (at 55299) by debbugs.gnu.org; 7 May 2022 14:40:30 +0000 Original-Received: from localhost ([127.0.0.1]:52683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnLbh-00081x-Mw for submit@debbugs.gnu.org; Sat, 07 May 2022 10:40:29 -0400 Original-Received: from grace.univie.ac.at ([131.130.3.115]:56554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnLbf-00081n-Ee for 55299@debbugs.gnu.org; Sat, 07 May 2022 10:40:28 -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=fgdR7noPVFtsdMRvQHYKopNHstvxKNiA8/onaRUtYro=; b=EulBpkf6IoOL5Sb1LINv6TcaXA htcfXb7Q9R7AI6YkV1kqYEvatD87Ts2eW4+d0+JG5R6YxKDqb6M+5843PcphjqwAJmX4B5nPHaikA qceYLH2jLT2e82buZ2Q6Zz/2MKncQ1QLg1aExSZqj1gRmhmNG+bb9HaWb0iFHh/DBuZ0=; 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 1nnLbc-00Ezlp-MR; Sat, 07 May 2022 16:40:24 +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 1nnLbc-00D9YV-GS; Sat, 07 May 2022 16:40:24 +0200 In-Reply-To: <871qx57a2k.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:231594 Archived-At: With this patch, I don=E2=80=99t get any error message, but If a frame = has only one window, I cannot scroll (using the mouse wheel) downwards = anymore, and after doing C-x 2, the same is true if I scroll in the = active pane, while when I scroll in the inactive pane, I always get = scrolling upwards, regardless of which direction I rotate the wheel. > Am 07.05.2022 um 15:21 schrieb Po Lu : >=20 > Konrad Podczeck writes: >=20 >> 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) >=20 > Sorry, please try this patch instead: >=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)) > (unless (zerop delta) > (if (> (abs delta) (window-text-height window t)) > (mwheel-scroll event nil)