From unknown Sat Jun 21 10:44:41 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57349 <57349@debbugs.gnu.org> To: bug#57349 <57349@debbugs.gnu.org> Subject: Status: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil Reply-To: bug#57349 <57349@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:44:41 +0000 retitle 57349 29.0.50; pixel-scroll-precision-mode. error integer-or-marker= -p nil reassign 57349 emacs submitter 57349 Gerd M=C3=B6llmann severity 57349 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 02:13:07 2022 Received: (at submit) by debbugs.gnu.org; 23 Aug 2022 06:13:07 +0000 Received: from localhost ([127.0.0.1]:42325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQN9u-0003mB-TX for submit@debbugs.gnu.org; Tue, 23 Aug 2022 02:13:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:56682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQN9s-0003m3-EW for submit@debbugs.gnu.org; Tue, 23 Aug 2022 02:13:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQN9p-0008Hx-NB for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 02:13:04 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:38691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQN9m-0000mI-PE for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 02:13:01 -0400 Received: by mail-ed1-x532.google.com with SMTP id a22so16666727edj.5 for ; Mon, 22 Aug 2022 23:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc; bh=WfRE7MxPQBtMKgCT5nhsnOw5hybw4GYvKTlGC8ILA4A=; b=RNahu8zIcDrCfLxCpgnF8YOUBxZ+kkHGjc5IeqVyGlsgd8dFl3cSyZ4fIiNBlwg7Lw vS8AufxfEiuhE4mj0nPXoWVBA2LKT4Ik9yiwnnAaenE9CB8AjyPzc3wjkqY8s0E0Dg8O WM11kUrdXckEjhc4ZpdziGy7BWWNMpzSG7sYo9ath+LzB+NXTWXeekqlORpMmHESZw/q dTG34LTviZw6gu+4fkwOvHgw04v2JImkdSs8kr0s0RNE/RggG7DNzxh8lSK1/6Y/mh3T mhxRaDNqtBeahJAxLCOgVLIGxDDVfgmjLbrYUPVPTEqiOnTHVUR2TOVUtWO1M49O067w 7YUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc; bh=WfRE7MxPQBtMKgCT5nhsnOw5hybw4GYvKTlGC8ILA4A=; b=SkRCguFpIOmZ6jTzPlGLBa6oC2dms+u6Bh1oAWQcI+g8V3ekMN0QX/JB27one+bcMo Aq4ok6HWOghm/erKy72UNi/7hs5BEvY8OQGKHG9yXU+fQ2zRwYjyK/lAilewyHCbGWuY K2UR8ePp2BakYJQ+PahDOHg+3xzS5RDCQcn3FmWp9fEPGDo9NP26OCuifQjmKe4YTFEP kvN+x2q1sC3+23SO6LugGmypAYS7xyWbE/3TatFGSGfymSAxP/08gggrnJ3cFcYJDZ3C 3wpDxeEHj2+sRcD6sXQrjcpxKDskvr/t1DUbKeqS7WMgvN8BUaqhhmExXTVoP25Tc/1O uC+w== X-Gm-Message-State: ACgBeo0Cv++wfttOTBIZGhGmZptAUBIA/9NglWLKzclvp8Mf1abDOyFq Nj67KSLLeLpqPk05GnWtQ5Ulb9+mY9s= X-Google-Smtp-Source: AA6agR4hQx44mxkjw+R5gT860VPntITZn709qX/Y1E7k9YPKWXe0/4YtY1CyHqDoV/S8TAK2Pg9Nwg== X-Received: by 2002:aa7:c7da:0:b0:440:d482:36b5 with SMTP id o26-20020aa7c7da000000b00440d48236b5mr2324181eds.21.1661235176133; Mon, 22 Aug 2022 23:12:56 -0700 (PDT) Received: from Mini.fritz.box (pd9e36133.dip0.t-ipconnect.de. [217.227.97.51]) by smtp.gmail.com with ESMTPSA id kz10-20020a17090777ca00b0073d753759fasm3239127ejc.172.2022.08.22.23.12.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 23:12:55 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: bug-gnu-emacs@gnu.org Subject: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil Date: Tue, 23 Aug 2022 08:12:54 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.5.1 (Build 21G83)) of 2022-08-22 built on Mini.fritz.box Repository revision: 0c410206aa91b9bc9a0922d63ec34de765eb86a6 Repository branch: master Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.5.1 emacs -Q M-x pixel-scroll-precision-mode RET Move the mouse to the lower right corner of the Emacs frame. On macOS, the mouse cursor changes shape to a double-arrow pointing 45 degrees in the direction of the upper-left and lower-right corner of the screen. Scroll the mouse wheel. This either prints messages like this is undefined is undefined is undefined [45 times] is undefined or sometimes errors 'Wrong type argument: integer-or-marker-p, nil'. Not sure what to make of this. Looks like posn-at-x-y returns a posn with a nil point? Or maybe posn-point returns nil? Backtrace of the error: goto-char(nil) (save-excursion (goto-char point) (vertical-motion (- (1+ scroll-margin))= ) (point)) (let* ((edges (window-edges nil t nil t)) (max-y (- (nth 3 edges) (nth 1 = edges))) (usable-height max-y) (posn (posn-at-x-y 0 (+ (window-tab-line-hei= ght) (window-header-line-height) (- max-y delta)))) (point (posn-point posn= )) (up-point (save-excursion (goto-char point) (vertical-motion (- (1+ scro= ll-margin))) (point)))) (if (> (point) up-point) (progn (if (let ((pos-visi= ble (pos-visible-in-window-p up-point nil t))) (or (eq (length pos-visible)= 2) (let* (... ... ...) (if usable-height ...)))) (progn (goto-char up-poin= t))))) (let ((current-vscroll (window-vscroll nil t))) (setq delta (- delta= current-vscroll)) (set-window-vscroll nil 0 t t) (if (> delta 0) (progn (l= et* ((start (window-start)) (dims (window-text-pixel-size nil ... start nil= nil nil t)) (height (nth 1 dims)) (position (nth 2 dims))) (set-window-sta= rt nil position t) (if (> height usable-height) (progn (goto-char position)= )) (if (or (not position) (eq position start)) (progn (signal ... nil))) (s= etq delta (- delta height))))) (if (< delta 0) (progn (set-window-vscroll n= il (- delta) t t))))) pixel-scroll-precision-scroll-up-page(0) (while (> delta max-height) (pixel-scroll-precision-scroll-up-page max-he= ight) (setq delta (- delta max-height))) (let ((max-height (- (window-text-height nil t) (frame-char-height)))) (w= hile (> delta max-height) (pixel-scroll-precision-scroll-up-page max-height= ) (setq delta (- delta max-height))) (pixel-scroll-precision-scroll-up-page= delta)) pixel-scroll-precision-scroll-up(1) (if (< delta 0) (pixel-scroll-precision-scroll-down (- delta)) (pixel-scr= oll-precision-scroll-up delta)) (progn (if (< delta 0) (pixel-scroll-precision-scroll-down (- delta)) (pi= xel-scroll-precision-scroll-up delta)) (pixel-scroll-accumulate-velocity de= lta)) (condition-case nil (progn (if (< delta 0) (pixel-scroll-precision-scroll= -down (- delta)) (pixel-scroll-precision-scroll-up delta)) (pixel-scroll-ac= cumulate-velocity delta)) (beginning-of-buffer (message (error-message-stri= ng '(beginning-of-buffer)))) (end-of-buffer (message (error-message-string = '(end-of-buffer))))) (if (or (and pixel-scroll-precision-interpolate-mice (eq (device-class la= st-event-frame last-event-device) 'mouse)) (and pixel-scroll-precision-larg= e-scroll-height (> (abs delta) pixel-scroll-precision-large-scroll-height) = (let* ((kin-state (pixel-scroll-kinetic-state)) (ring (aref kin-state 0)) (= time (aref kin-state 1))) (or (null time) (> (- (float-time) time) 1.0) (an= d (consp ring) (ring-empty-p ring)))))) (progn (let ((kin-state (pixel-scro= ll-kinetic-state))) (aset kin-state 0 (make-ring 30)) (aset kin-state 1 nil= )) (pixel-scroll-precision-interpolate delta current-window)) (condition-ca= se nil (progn (if (< delta 0) (pixel-scroll-precision-scroll-down (- delta)= ) (pixel-scroll-precision-scroll-up delta)) (pixel-scroll-accumulate-veloci= ty delta)) (beginning-of-buffer (message (error-message-string '(beginning-= of-buffer)))) (end-of-buffer (message (error-message-string '(end-of-buffer= )))))) (progn (select-window (car save-selected-window--state) 'norecord) (if (o= r (and pixel-scroll-precision-interpolate-mice (eq (device-class last-event= -frame last-event-device) 'mouse)) (and pixel-scroll-precision-large-scroll= -height (> (abs delta) pixel-scroll-precision-large-scroll-height) (let* ((= kin-state (pixel-scroll-kinetic-state)) (ring (aref kin-state 0)) (time (ar= ef kin-state 1))) (or (null time) (> (- ... time) 1.0) (and (consp ring) (r= ing-empty-p ring)))))) (progn (let ((kin-state (pixel-scroll-kinetic-state)= )) (aset kin-state 0 (make-ring 30)) (aset kin-state 1 nil)) (pixel-scroll-= precision-interpolate delta current-window)) (condition-case nil (progn (if= (< delta 0) (pixel-scroll-precision-scroll-down (- delta)) (pixel-scroll-p= recision-scroll-up delta)) (pixel-scroll-accumulate-velocity delta)) (begin= ning-of-buffer (message (error-message-string '(beginning-of-buffer)))) (en= d-of-buffer (message (error-message-string '(end-of-buffer))))))) (unwind-protect (progn (select-window (car save-selected-window--state) '= norecord) (if (or (and pixel-scroll-precision-interpolate-mice (eq (device-= class last-event-frame last-event-device) 'mouse)) (and pixel-scroll-precis= ion-large-scroll-height (> (abs delta) pixel-scroll-precision-large-scroll-= height) (let* ((kin-state ...) (ring ...) (time ...)) (or (null time) (> ..= . 1.0) (and ... ...))))) (progn (let ((kin-state (pixel-scroll-kinetic-stat= e))) (aset kin-state 0 (make-ring 30)) (aset kin-state 1 nil)) (pixel-scrol= l-precision-interpolate delta current-window)) (condition-case nil (progn (= if (< delta 0) (pixel-scroll-precision-scroll-down (- delta)) (pixel-scroll= -precision-scroll-up delta)) (pixel-scroll-accumulate-velocity delta)) (beg= inning-of-buffer (message (error-message-string '...))) (end-of-buffer (mes= sage (error-message-string '...)))))) (internal--after-with-selected-window= save-selected-window--state)) (save-current-buffer (unwind-protect (progn (select-window (car save-sele= cted-window--state) 'norecord) (if (or (and pixel-scroll-precision-interpol= ate-mice (eq (device-class last-event-frame last-event-device) 'mouse)) (an= d pixel-scroll-precision-large-scroll-height (> (abs delta) pixel-scroll-pr= ecision-large-scroll-height) (let* (... ... ...) (or ... ... ...)))) (progn= (let ((kin-state ...)) (aset kin-state 0 (make-ring 30)) (aset kin-state 1= nil)) (pixel-scroll-precision-interpolate delta current-window)) (conditio= n-case nil (progn (if (< delta 0) (pixel-scroll-precision-scroll-down ...) = (pixel-scroll-precision-scroll-up delta)) (pixel-scroll-accumulate-velocity= delta)) (beginning-of-buffer (message (error-message-string ...))) (end-of= -buffer (message (error-message-string ...)))))) (internal--after-with-sele= cted-window save-selected-window--state))) (let ((save-selected-window--state (internal--before-with-selected-window= window))) (save-current-buffer (unwind-protect (progn (select-window (car = save-selected-window--state) 'norecord) (if (or (and pixel-scroll-precision= -interpolate-mice (eq ... ...)) (and pixel-scroll-precision-large-scroll-he= ight (> ... pixel-scroll-precision-large-scroll-height) (let* ... ...))) (p= rogn (let (...) (aset kin-state 0 ...) (aset kin-state 1 nil)) (pixel-scrol= l-precision-interpolate delta current-window)) (condition-case nil (progn (= if ... ... ...) (pixel-scroll-accumulate-velocity delta)) (beginning-of-buf= fer (message ...)) (end-of-buffer (message ...))))) (internal--after-with-s= elected-window save-selected-window--state)))) (if (> (abs delta) (window-text-height window t)) (mwheel-scroll event ni= l) (let ((save-selected-window--state (internal--before-with-selected-windo= w window))) (save-current-buffer (unwind-protect (progn (select-window (car= save-selected-window--state) 'norecord) (if (or (and pixel-scroll-precisio= n-interpolate-mice ...) (and pixel-scroll-precision-large-scroll-height ...= ...)) (progn (let ... ... ...) (pixel-scroll-precision-interpolate delta c= urrent-window)) (condition-case nil (progn ... ...) (beginning-of-buffer ..= .) (end-of-buffer ...)))) (internal--after-with-selected-window save-select= ed-window--state))))) (if (=3D 0 delta) nil (if (> (abs delta) (window-text-height window t)) (= mwheel-scroll event nil) (let ((save-selected-window--state (internal--befo= re-with-selected-window window))) (save-current-buffer (unwind-protect (pro= gn (select-window (car save-selected-window--state) 'norecord) (if (or ... = ...) (progn ... ...) (condition-case nil ... ... ...))) (internal--after-wi= th-selected-window save-selected-window--state)))))) (let ((delta (round (cdr (nth 4 event))))) (if (=3D 0 delta) nil (if (> (= abs delta) (window-text-height window t)) (mwheel-scroll event nil) (let ((= save-selected-window--state (internal--before-with-selected-window window))= ) (save-current-buffer (unwind-protect (progn (select-window ... ...) (if .= .. ... ...)) (internal--after-with-selected-window save-selected-window--st= ate))))))) (if (and (nth 4 event)) (let ((delta (round (cdr (nth 4 event))))) (if (= =3D 0 delta) nil (if (> (abs delta) (window-text-height window t)) (mwheel-= scroll event nil) (let ((save-selected-window--state (internal--before-with= -selected-window window))) (save-current-buffer (unwind-protect (progn ... = ...) (internal--after-with-selected-window save-selected-window--state)))))= )) (mwheel-scroll event nil)) (let ((window (mwheel-event-window event)) (current-window (selected-wind= ow))) (if (framep window) (progn (setq window (frame-selected-window window= )))) (if (and (nth 4 event)) (let ((delta (round (cdr (nth 4 event))))) (if= (=3D 0 delta) nil (if (> (abs delta) (window-text-height window t)) (mwhee= l-scroll event nil) (let ((save-selected-window--state ...)) (save-current-= buffer (unwind-protect ... ...)))))) (mwheel-scroll event nil))) pixel-scroll-precision((wheel-up (# right-fring= e (865 . 6) 129226600 nil 1 (0 . 0) nil (11 . 6) (0 . 14)) 1 0 (0.0 . 1.0))) funcall-interactively(pixel-scroll-precision (wheel-up (# right-fringe (865 . 6) 129226600 nil 1 (0 . 0) nil (11 . 6) (0 .= 14)) 1 0 (0.0 . 1.0))) command-execute(pixel-scroll-precision) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 03:52:31 2022 Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 07:52:31 +0000 Received: from localhost ([127.0.0.1]:42475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQOi7-0008Tl-Gi for submit@debbugs.gnu.org; Tue, 23 Aug 2022 03:52:31 -0400 Received: from sonic317-34.consmr.mail.ne1.yahoo.com ([66.163.184.45]:44922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQOi4-0008TY-QM for 57349@debbugs.gnu.org; Tue, 23 Aug 2022 03:52:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661241142; bh=Pi1ZFPuqXB4ir2EHEx8s/EXaP7bLsGt0BooNoXOO7Nw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=ppflvRPrwyFirSDAw71EJsSXFHxWCi6QjuSqkiS7H7Kb9C9NI6FVetIBLZQOPWDT/1PyrclklRzu8DePeexqsrSoAj07zmAvmQkS1Nyl2mua7MweANOhDTPlOIizrb8gylDwS1ddgJF+kti/HL570KBaLU0I8EQdTJaK1AGmaoRvsNs7IDLcARa/NpvJIaiFLpyQvUGgmQCq+diGYcgGvNO3qwGoz8OeAHA3v9cY7v9BPAfBX9xCKY0qVsZCOzDHev404KbW0NajgmmasvzNVKw93i1urabeAvg+QtpLRdaTNK9vftqlSSuFuk1aTPzCVR7lhXsVxYPXSDywmNJtzw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661241142; bh=0uiYDxurrxYdJ1MSRqxCkzzQcRkj3ohBTg9yUEk/zzy=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=kS5epNIdoRpn6lnai2+6j9vRiF5SWiyhrTIoyPDr1LZT2fDSWX4hIcbLvZwnOq6gIqm4CJEuAN+nGy0vgQlp0W6enbXAaAq/Vfh2AV/RVeVgffjqVT/KgrBrXhZX8zlVjdxtU8fEKN/BE9UHOhMw3L4nh6gS4LeR3BZqXIw5bG6RhqFct3vNKkr2TINHmlsPJo5h4g8fz/tkjpVrhg0nVTmTSccVeyRa3hojFROErbKcvTNGR1Mbh3mNh34tDok3Ha1Lsr3lb2W/A5rH/3J8NoUCTybGbWLEp2FrcD/IzR9EGbzri4ZhyEL0OJ58jgEtdAunRVg/lpXOB/FI+/f35w== X-YMail-OSG: cJDpWCEVM1lYOlBqQFRwV2WNfG8JwFMv8hfCtHp1G04pIZIgGhDwcuDxcPYd2J4 UpbSggGhgyZmGpN_lmJ6iarOM7GHCqRJ1eqTEZIOPSjbeHFsLD3BiFd1BLCFDbBsnuw16ZmACmSZ OqtaZ8L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TGxMzw0TmYYN8A2tBk5A5TEYTJKM9YpzwODg_pX.6OdZwhM.BgoSCnBVxZ0J6_m 2n6z5xJgvsMU- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Tue, 23 Aug 2022 07:52:22 +0000 Received: by hermes--canary-production-sg3-6f58cd9b5-98n4d (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 532ddb4e8a977b31bde9dd9107ffaf64; Tue, 23 Aug 2022 07:52:18 +0000 (UTC) From: Po Lu To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil References: Date: Tue, 23 Aug 2022 15:52:12 +0800 In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Tue, 23 Aug 2022 08:12:54 +0200") Message-ID: <87lerf8kib.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.20560 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1342 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57349 Cc: 57349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gerd M=C3=B6llmann writes: > In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0, NS > appkit-2113.60 Version 12.5.1 (Build 21G83)) of 2022-08-22 built on > Mini.fritz.box > Repository revision: 0c410206aa91b9bc9a0922d63ec34de765eb86a6 > Repository branch: master > Windowing system distributor 'Apple', version 10.3.2113 > System Description: macOS 12.5.1 > > emacs -Q > M-x pixel-scroll-precision-mode RET > > Move the mouse to the lower right corner of the Emacs frame. On macOS, > the mouse cursor changes shape to a double-arrow pointing 45 degrees in > the direction of the upper-left and lower-right corner of the screen. > > Scroll the mouse wheel. > > This either prints messages like this > > is undefined > is undefined > is undefined [45 times] > is undefined I think that's the internal border. > or sometimes errors 'Wrong type argument: integer-or-marker-p, nil'. > Not sure what to make of this. Looks like posn-at-x-y returns a posn > with a nil point? Or maybe posn-point returns nil? Probably the former. Could you please see if that error reliably shows up if you scroll with the mouse pointer over the place where the right fringe overlaps with the right and bottom internal borders? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 05:03:48 2022 Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 09:03:48 +0000 Received: from localhost ([127.0.0.1]:42541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQPp5-0001p4-Vm for submit@debbugs.gnu.org; Tue, 23 Aug 2022 05:03:48 -0400 Received: from mail-ej1-f44.google.com ([209.85.218.44]:43673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQPp4-0001oq-1n for 57349@debbugs.gnu.org; Tue, 23 Aug 2022 05:03:46 -0400 Received: by mail-ej1-f44.google.com with SMTP id gb36so26059262ejc.10 for <57349@debbugs.gnu.org>; Tue, 23 Aug 2022 02:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc; bh=n6NzcHM5tvm6W3lDfSx1tRJ4J/hMc2mCErWVjVgH9YQ=; b=p2wHxGiIOR8f/oYAvOH/STx4BDpTsU4IVGz2qxfZfJk0w5XmHDdNPw6g8JeBQ3LwtY oIQdsbyXB7d6GsPRzKwAJgSv7NwGGPBZ9rVRXPuY3QbSsXyNEZn/qpyT26/p3mjZqEvV Pt+fCHu5lEwIselhP+z6hWd9ep/pkPglANiefJTWfz919Wq3jQgmhLCR/w5lBDM+oukt 5rhQGQ4vqWhciX0Wym25XgkT3KneN67gw7KUXV8upPLXDElFU0jONSjQhYhV6iJb7yiC U1PRToi/Y3rU0ra9YjImkrm0dEQ7xVDi+Y3eqQI/pG0TlOzbKb+YuMppB/hA3i2itBbb pXSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc; bh=n6NzcHM5tvm6W3lDfSx1tRJ4J/hMc2mCErWVjVgH9YQ=; b=0jHPC5u+Irqidx2xajgVsTytDYZmzdi4Je+EVSRflZsr7eGce6Cvrr9ds+CtpFm29M jR4AB/RHuP+uWz0SjRapNxWSZy/9uGcE12gSWtJGlbr2hA1TwvKMAZv2Hp7aooiUzq07 qGEPGM/NC2IxMiUu4L6hq3SCaIleEnNEx2N/mSIAdjPYf0noqWXFxgANIsduC9n/+Kwh tXkawsP/0viNgwZBn1eSgl3TXwS4h5ZGm2CLQjy4uTs3FTlG3ltKixAnebidY7eT3m5Q 6t3V3FGpDlsKGXWQKPOI4Hv8sJ7LFOQosxlVM9skfY1pnE0bIcrcE+Dj3KAPtApBUO3g i63g== X-Gm-Message-State: ACgBeo1tucBzIZlVTCZ+xLwvwmrxRJar3hqZQFPPsDChyRiNb9vL+f54 Tvcz6tSCjTCA9SsD3DuiwNhSmOD8E7L+8A== X-Google-Smtp-Source: AA6agR62bt5xh1XHpA834wgOHYS1Ty9BP2C1qj+1h1sZ9Li7ZZ2XBFkX3/p8xH8Rzp5/M8u1D8Xi3A== X-Received: by 2002:a17:907:6e89:b0:73d:a846:c29e with SMTP id sh9-20020a1709076e8900b0073da846c29emr149976ejc.577.1661245417458; Tue, 23 Aug 2022 02:03:37 -0700 (PDT) Received: from Mini.fritz.box (pd9e36133.dip0.t-ipconnect.de. [217.227.97.51]) by smtp.gmail.com with ESMTPSA id f17-20020aa7d851000000b0043bc4b28464sm1089659eds.34.2022.08.23.02.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 02:03:36 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Po Lu Subject: Re: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil In-Reply-To: <87lerf8kib.fsf@yahoo.com> (Po Lu's message of "Tue, 23 Aug 2022 15:52:12 +0800") References: <87lerf8kib.fsf@yahoo.com> Date: Tue, 23 Aug 2022 11:03:35 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57349 Cc: 57349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Po Lu writes: > > Gerd M=C3=B6llmann writes: > >> In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0, NS >> appkit-2113.60 Version 12.5.1 (Build 21G83)) of 2022-08-22 built on >> Mini.fritz.box >> Repository revision: 0c410206aa91b9bc9a0922d63ec34de765eb86a6 >> Repository branch: master >> Windowing system distributor 'Apple', version 10.3.2113 >> System Description: macOS 12.5.1 >> >> emacs -Q >> M-x pixel-scroll-precision-mode RET >> >> Move the mouse to the lower right corner of the Emacs frame. On macOS, >> the mouse cursor changes shape to a double-arrow pointing 45 degrees in >> the direction of the upper-left and lower-right corner of the screen. >> >> Scroll the mouse wheel. >> >> This either prints messages like this >> >> is undefined >> is undefined >> is undefined [45 times] >> is undefined > > I think that's the internal border. > >> or sometimes errors 'Wrong type argument: integer-or-marker-p, nil'. >> Not sure what to make of this. Looks like posn-at-x-y returns a posn >> with a nil point? Or maybe posn-point returns nil? > > Probably the former. Could you please see if that error reliably shows > up if you scroll with the mouse pointer over the place where the right > fringe overlaps with the right and bottom internal borders? I'm not quite sure. ...text | fringe | scrollbar | something | -------------------- modeline ------------ ...text | fringe | scrollbar | something | Sp far, I couldn't produce the error anywhere when the mouse is above the modeline. It's just saying that 'nil something' is undefined. Below the modeline, it's happening when being in 'fringe', 'scrollbar' 'something' AFAICT. Sorry, it's a hard to move the mouse precisely, and the rounded edge of the frame doesn't help either. I think this shows one of the events leading to the error: pixel-scroll-precision-scroll-up-page(0) pixel-scroll-precision-scroll-up(1) pixel-scroll-precision((wheel-up (# vertical-sc= roll-bar (576 . 8) 137763384 nil 1 (81 . 0) nil (576 . 8) (15 . 16)) 1 0 (0= .0 . 1.0))) funcall-interactively(pixel-scroll-precision (wheel-up (# vertical-scroll-bar (576 . 8) 137763384 nil 1 (81 . 0) nil (576 = . 8) (15 . 16)) 1 0 (0.0 . 1.0))) command-execute(pixel-scroll-precision) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 07:27:17 2022 Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 11:27:17 +0000 Received: from localhost ([127.0.0.1]:42811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQS3w-0005vx-MH for submit@debbugs.gnu.org; Tue, 23 Aug 2022 07:27:16 -0400 Received: from sonic316-22.consmr.mail.ne1.yahoo.com ([66.163.187.148]:41391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQS3u-0005vi-Nr for 57349@debbugs.gnu.org; Tue, 23 Aug 2022 07:27:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661254027; bh=z4pMLU4B66xoxUggojph6j8OD9EzVsoYPdUIoW7tEAA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=Z5mfe7swBzYgXTgT4FfQw+GvT93SHyddN/FCtH3kFeC81Uh9h4/Y0D28ww4gBAo/sL85ZMCP5yzl5PbeUaOek0EP6Se1lZw3k/n5P+T0fZVEOStEA7kgTJ5qwGp6Ea82Tpuc24sT9o+Kq2dq+8V1yWo3wz3kTgpqRtyOhPW8N74aZiSMmqk/lQAXxxdYAZSnayKp1KoGqjR/AFrYmvWpXCqnF77Bzx4iU6e20Gswfn3KAy8L4dhz9rfTCQh8O60y5v8VdRsmv6sZRD7jNdy0sdwVGmel53r8iLPeXlCRcKMiuFk/G0AHEUCyumhngE6Gi2mY/A+esZhmmR3KhhGqAQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661254027; bh=Wog66NsiDRp8o1rsAdHXYkz91k2EHYH9IqQfWqwzveo=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Lm3xxmHLqw8cYH2m160jVuMrpgTnLD8lNTiFTQXNUBeLiP/ihjdqq2zwCK80fmqlKZRr52zOUKN+RStBCYn4E7kiTA6CXkXmz2+WWE13bwSR7aaCFgVesdP4nyBZOcJA075+5xrNFKjSo/I3STN8BBZ/pX6LQGQDMr1oLXafNgX7ZqTcBxmTPnNhZiJCg1De8TRtwrtM9Cj/jT+ebQIJoq+CSeNBpB/EFDG09QMf2O0vvtYkOxd5fvRTEg99SEP89vZyeNzj1uZJe8bOicX3lTThgcJi7Le5W8XGXHpLW+BjQue2r+YaTHwlwTkHbIgcMTtoxoKW1kIpOwuHMHBEIw== X-YMail-OSG: mmdSii8VM1l3xA8iQ2E_ukI3yCYIacFATbFrHhesaBHz2Jth5RlEwSBUqXzSNka UwVS7AXKtpb74n0dbg5S_qLiCMSkRYjVdHaSGeXXd49sBsUfv0Luiu.28auH86p9R43Ia1BJBMSJ OY5cC_QT5ATjiUf7oR1Uyv2kTikDw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yT3nDELnourfGpN1.Kr3xZg dyi4dGevI9yNTtg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Tue, 23 Aug 2022 11:27:07 +0000 Received: by hermes--canary-production-sg3-6f58cd9b5-84qt6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 39a23c1564249c93bdb557c331ae3736; Tue, 23 Aug 2022 11:27:05 +0000 (UTC) From: Po Lu To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil References: <87lerf8kib.fsf@yahoo.com> Date: Tue, 23 Aug 2022 19:27:00 +0800 In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Tue, 23 Aug 2022 11:03:35 +0200") Message-ID: <871qt78akb.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.20560 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 2739 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57349 Cc: 57349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gerd M=C3=B6llmann writes: > Po Lu writes: > >> >> Gerd M=C3=B6llmann writes: >> >>> In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0, NS >>> appkit-2113.60 Version 12.5.1 (Build 21G83)) of 2022-08-22 built on >>> Mini.fritz.box >>> Repository revision: 0c410206aa91b9bc9a0922d63ec34de765eb86a6 >>> Repository branch: master >>> Windowing system distributor 'Apple', version 10.3.2113 >>> System Description: macOS 12.5.1 >>> >>> emacs -Q >>> M-x pixel-scroll-precision-mode RET >>> >>> Move the mouse to the lower right corner of the Emacs frame. On macOS, >>> the mouse cursor changes shape to a double-arrow pointing 45 degrees in >>> the direction of the upper-left and lower-right corner of the screen. >>> >>> Scroll the mouse wheel. >>> >>> This either prints messages like this >>> >>> is undefined >>> is undefined >>> is undefined [45 times] >>> is undefined >> >> I think that's the internal border. >> >>> or sometimes errors 'Wrong type argument: integer-or-marker-p, nil'. >>> Not sure what to make of this. Looks like posn-at-x-y returns a posn >>> with a nil point? Or maybe posn-point returns nil? >> >> Probably the former. Could you please see if that error reliably shows >> up if you scroll with the mouse pointer over the place where the right >> fringe overlaps with the right and bottom internal borders? > > I'm not quite sure. > > ...text | fringe | scrollbar | something | > -------------------- modeline ------------ > ...text | fringe | scrollbar | something | > > Sp far, I couldn't produce the error anywhere when the mouse is above > the modeline. It's just saying that 'nil something' is undefined. > > Below the modeline, it's happening when being in 'fringe', 'scrollbar' > 'something' AFAICT. Sorry, it's a hard to move the mouse precisely, and > the rounded edge of the frame doesn't help either. > > I think this shows one of the events leading to the error: > > pixel-scroll-precision-scroll-up-page(0) > pixel-scroll-precision-scroll-up(1) > pixel-scroll-precision((wheel-up (# vertical-= scroll-bar (576 . 8) 137763384 nil 1 (81 . 0) nil (576 . 8) (15 . 16)) 1 0 = (0.0 . 1.0))) > funcall-interactively(pixel-scroll-precision (wheel-up (# vertical-scroll-bar (576 . 8) 137763384 nil 1 (81 . 0) nil (57= 6 . 8) (15 . 16)) 1 0 (0.0 . 1.0))) > command-execute(pixel-scroll-precision) That's pretty odd, I can't reproduce the problem at all. The next time I get access to a Mac (it may be a while) I will see if it can be reproduced there. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 07:57:30 2022 Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 11:57:30 +0000 Received: from localhost ([127.0.0.1]:42833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQSXC-0000QL-8R for submit@debbugs.gnu.org; Tue, 23 Aug 2022 07:57:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQSXA-0000Q6-8K for 57349@debbugs.gnu.org; Tue, 23 Aug 2022 07:57:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50944) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQSX5-0005aw-15; Tue, 23 Aug 2022 07:57:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SeYRmgy2s3Wm8CoWzWW5973UOucPWhjtiEKphj25IkY=; b=nDgHlbHAel6Ugg+A8mae 6FxQ+qI6wBDH9xdbxiT43jNTCwZTnAj6CYHFc87lUB9QadmohLHD97/xDLu0zrz02Fv3mbPdPcat+ 17CL6fXgHAbWXbd9V51Y1HNbV6jO9jPBtFrt7c97htF/p3hesF74OpuMUB4sbxlTK3twjrvDY+jt3 g7lXRac4xxYQqQGgaEoBpSErKSILmUx+x8b6JKitzknFtNMc7vVpXbnsYKu0wja+o7pRFa/QVcV4q ObPUWZUapo398h5HF0ladFfhYsBlqXBrJ3OlShReSehmOtHnsPyHKxuY5nnWgT9moiDqsWoa0hmf1 o3Pgb28qSeoStw==; Received: from [87.69.77.57] (port=1618 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQSX4-0005OS-HB; Tue, 23 Aug 2022 07:57:22 -0400 Date: Tue, 23 Aug 2022 14:57:29 +0300 Message-Id: <83r117895i.fsf@gnu.org> From: Eli Zaretskii To: Gerd =?iso-8859-1?Q?M=F6llmann?= In-Reply-To: (message from Gerd =?iso-8859-1?Q?M=F6llmann?= on Tue, 23 Aug 2022 08:12:54 +0200) Subject: Re: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil References: MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57349 Cc: 57349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Gerd Möllmann > Date: Tue, 23 Aug 2022 08:12:54 +0200 > > emacs -Q > M-x pixel-scroll-precision-mode RET > > Move the mouse to the lower right corner of the Emacs frame. On macOS, > the mouse cursor changes shape to a double-arrow pointing 45 degrees in > the direction of the upper-left and lower-right corner of the screen. > > Scroll the mouse wheel. > > This either prints messages like this > > is undefined > is undefined > is undefined [45 times] > is undefined It may surprise this, but why do you think this is a problem? How is it different from what happens if you do this, for example: C-M- (assuming that sequence is not bound to some command)? > or sometimes errors 'Wrong type argument: integer-or-marker-p, nil'. This shouldn't happen, indeed. > Not sure what to make of this. Looks like posn-at-x-y returns a posn > with a nil point? Or maybe posn-point returns nil? Either this should be fixed, or the code should be prepared for nil in this case. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 08:16:09 2022 Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 12:16:09 +0000 Received: from localhost ([127.0.0.1]:42863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQSpE-0000ul-Sb for submit@debbugs.gnu.org; Tue, 23 Aug 2022 08:16:09 -0400 Received: from mail-ed1-f50.google.com ([209.85.208.50]:40930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQSpD-0000u8-FA for 57349@debbugs.gnu.org; Tue, 23 Aug 2022 08:16:07 -0400 Received: by mail-ed1-f50.google.com with SMTP id e21so12921226edc.7 for <57349@debbugs.gnu.org>; Tue, 23 Aug 2022 05:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=sq/SLNtVp18C0p9FAwa0HtCP3JdZZF8Mex9BfozOL1o=; b=qzo8EnQD5jG6OT0L1ezlBT6o8pVvPnwPJh7QH6ILQ8XSSemPdDwSOwJQpuqqCqKXIy Ej3Xgcu+n2BfApeG+njQm1MvLvjN4g6vy9CGfSsBNr8fdHBwIsbWiGg8FOV2SQX7M3nz CN4B+kYn0KIvRZ7ALmg7Gd+GP7mZOtxGEwzrR8XMAA37rKt2sdiKD5ObTFnHxbShKUVh vj2IPjYfJWy9Cb7vaSfrSUMtnvI3t1AFpP8k3zZAu1NnY8lOos1dhNYEs6gnaT9mQv4p kZWTawNvt5jHKs1mvKFPGYiZaVfaNlDajm3pSeDBPfua10SIRgGRVZ5v6EBBR7FT3Guv DRrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=sq/SLNtVp18C0p9FAwa0HtCP3JdZZF8Mex9BfozOL1o=; b=g0ISQCy3QIpHzOq2F/LzATKxrDDbwM6BR2hPEn/CsFrRa4tkO/WjAdsSnMuTeOsCkh SaTtztRxgt3P5BrTo9MudaorI6ZoaSmdRdlsyCuaVEAtdYc3xiKYHqa5RHrUIwHMmFEc X9bXuyXq6FlHFkkAr41shuNPKWhhBIKH0tVJBfKW+NoNUNaYe0iXfVbWjbvwGqbCsHhN G7snxWDwl94EG5kcJN/wv27zcLI0Do8z/5tlQ5vAQ51hY/g+wwpRgKZfvbIrsDFQwZCz ADt/mIX6gt3IuRtQutzBBBQUrBxw/3oKxKPWoL2oxew31beZYzUXPM+i7d2nOyR+v5bC Wmyg== X-Gm-Message-State: ACgBeo22pv6ED3WhumnofYsA0AeJdNGlXVNgmZBoIxteMvqrKELetXNd 8a3DDkjsoUysjvOX1UKhDUBivEd0B4QBgA== X-Google-Smtp-Source: AA6agR7Q62+wM3N4FW+hHuXYq9coFBdKhfrtt+vKg+0WX8N0S0oVfNDJ3mlJQuiTLthGOtcUbfmWyA== X-Received: by 2002:aa7:c7da:0:b0:440:d482:36b5 with SMTP id o26-20020aa7c7da000000b00440d48236b5mr3533180eds.21.1661256960703; Tue, 23 Aug 2022 05:16:00 -0700 (PDT) Received: from Mini.fritz.box (pd9e36133.dip0.t-ipconnect.de. [217.227.97.51]) by smtp.gmail.com with ESMTPSA id v1-20020a170906292100b0073a62f3b447sm7352104ejd.44.2022.08.23.05.15.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 05:16:00 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Eli Zaretskii Subject: Re: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil In-Reply-To: <83r117895i.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 Aug 2022 14:57:29 +0300") References: <83r117895i.fsf@gnu.org> Date: Tue, 23 Aug 2022 14:15:59 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57349 Cc: 57349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> is undefined > > It may surprise this, but why do you think this is a problem? How is > it different from what happens if you do this, for example: > > C-M- > > (assuming that sequence is not bound to some command)? I mentioned it only because I thought it might have been relevant in some way. One never knows. >> or sometimes errors 'Wrong type argument: integer-or-marker-p, nil'. > > This shouldn't happen, indeed. > >> Not sure what to make of this. Looks like posn-at-x-y returns a posn >> with a nil point? Or maybe posn-point returns nil? > > Either this should be fixed, or the code should be prepared for nil in > this case. Yup. I could add a check in the function that does the (goto-char nil), but I don't know if that would be only fixing a symptom of something else. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 08:17:30 2022 Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 12:17:30 +0000 Received: from localhost ([127.0.0.1]:42867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQSqY-0000wm-Bv for submit@debbugs.gnu.org; Tue, 23 Aug 2022 08:17:30 -0400 Received: from mail-ej1-f51.google.com ([209.85.218.51]:37467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQSqW-0000wZ-Ld for 57349@debbugs.gnu.org; Tue, 23 Aug 2022 08:17:29 -0400 Received: by mail-ej1-f51.google.com with SMTP id h22so16775184ejk.4 for <57349@debbugs.gnu.org>; Tue, 23 Aug 2022 05:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=t9sotRcWjkitzu9jw6FsdaHo9v2yBMlJb9Jvbq7frVU=; b=bk+UyfWECquD/Ya2yj8pXO0bmeoZUoPC6P634YyScl9ooL8FXQS9+EE2LxpneHruzw bnaVrlZBjyIoJtpYjXkALLzxq+gVuwXegAi0lR/8M1D5odjzdRr0fBKrDblUelYRLVRk pfHCo1ZfkTBFYIeS3yM37QfF0dX85szicR787NnX+ZUJBh8kmfJi83DrHI1wup4k6keE 2KfH+fesofoCDI5dBoWAUxrib+9Z7zz9HxUA/FzdQdf3SXGamj1AAyC5kcB6BYL8foYO pqikzhEmLEb1wj5T0OceJ00bKXt47bGThzfYgBjW6OhwzZH6LHh1pDOkihwOeMvu65nz mtDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=t9sotRcWjkitzu9jw6FsdaHo9v2yBMlJb9Jvbq7frVU=; b=1DhNx+6PQ+9FUVVgupDfgrOwrX2ihXN9HlXWhb+xnKS6vzrpyMGqatuVOIf+n+Xxsh lFRtJYZmdebTrbXKa9BU/t8xKfuK/s5tU2tZGWdESfFnHXvQ27cBNlXv4+uC0IAgeF/3 Qy1Nyl3W+rB9iZJrHyTtV2E0kWFxsF6fotgmlSJFSVG26NtfrD5Lwq6bM2SNd9gBsuol 4ML6nXZVKi0q9sGVyF2PCvodvzFzvsmPSEj2mGHZMKKs9XWSo5tW3e3Elo/Tz64FtCAN 3QDQIQpmC/RroJvUicjCEHc5UFsXjak/A86yDWpbTFUF4wfHHxHsXRtg5H6xu7DqW0Fe NcLQ== X-Gm-Message-State: ACgBeo2t8GgghQaufeULqWb1JxmEajcXWI/OR/AV/llQq+9pcjusmaCa 0R/Q27jzwpXUDGzTyywqvcrNj0ARTNtxKA== X-Google-Smtp-Source: AA6agR5Z3nrg96AhMBKheFKv2F+DD1KrEW1CqYMxZlv7qwkFE21n7vOjPEKtvzGWnCEkOrzpTibSIw== X-Received: by 2002:a17:907:c06:b0:701:eb60:ded with SMTP id ga6-20020a1709070c0600b00701eb600dedmr16614434ejc.178.1661257042526; Tue, 23 Aug 2022 05:17:22 -0700 (PDT) Received: from Mini.fritz.box (pd9e36133.dip0.t-ipconnect.de. [217.227.97.51]) by smtp.gmail.com with ESMTPSA id ez5-20020a056402450500b00445bda73fbesm1339849edb.33.2022.08.23.05.17.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 05:17:21 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Po Lu Subject: Re: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil In-Reply-To: <871qt78akb.fsf@yahoo.com> (Po Lu's message of "Tue, 23 Aug 2022 19:27:00 +0800") References: <87lerf8kib.fsf@yahoo.com> <871qt78akb.fsf@yahoo.com> Date: Tue, 23 Aug 2022 14:17:21 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57349 Cc: 57349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Po Lu writes: > That's pretty odd, I can't reproduce the problem at all. The next time > I get access to a Mac (it may be a while) I will see if it can be > reproduced there. Ok, thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 08:36:56 2022 Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 12:36:56 +0000 Received: from localhost ([127.0.0.1]:42885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQT9M-0001Qr-3j for submit@debbugs.gnu.org; Tue, 23 Aug 2022 08:36:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQT9K-0001Qd-A6 for 57349@debbugs.gnu.org; Tue, 23 Aug 2022 08:36:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQT9E-0004or-FX; Tue, 23 Aug 2022 08:36:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=0gNiJE+pT4FTPGbryBHp8D3876a7Tr5oVxTW3DCfzBY=; b=H+PFvg/r9ZC6qgEgdLtI xt8YpK4KOwtHAewSZB66Ubvn6/VwniMpIydD0bi2VOi7z8kmkFYaaO1JtXKjuTL60rmxtmjhjeb01 42txrGBOcgLf0jTkPNyse6b5tyZxbVJG8O55txDiyNWNW4o7urEZ5+6JvxNjXt7bKAVjYEoXxQ7C7 5Vzf2WfVX8irP9jgJjLT+vtbxWYmiWtG30RWmHKqRjfG3QOQr5GSkgiVrgJi5AT/FurTbxCojsODY 3Lha39UurQaWyB89Dpd9gtap2k8BhIzEXkdQigwZHbAwAP7IqEuPjDkp1inluMRhytsjJsYVIaC7f hpZxiRxi+DJCew==; Received: from [87.69.77.57] (port=4022 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQT9D-0001C3-Qe; Tue, 23 Aug 2022 08:36:48 -0400 Date: Tue, 23 Aug 2022 15:36:54 +0300 Message-Id: <83k06z87bt.fsf@gnu.org> From: Eli Zaretskii To: Gerd =?iso-8859-1?Q?M=F6llmann?= In-Reply-To: (message from Gerd =?iso-8859-1?Q?M=F6llmann?= on Tue, 23 Aug 2022 14:15:59 +0200) Subject: Re: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil References: <83r117895i.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57349 Cc: 57349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Gerd Möllmann > Cc: 57349@debbugs.gnu.org > Date: Tue, 23 Aug 2022 14:15:59 +0200 > > >> or sometimes errors 'Wrong type argument: integer-or-marker-p, nil'. > > > > This shouldn't happen, indeed. > > > >> Not sure what to make of this. Looks like posn-at-x-y returns a posn > >> with a nil point? Or maybe posn-point returns nil? > > > > Either this should be fixed, or the code should be prepared for nil in > > this case. > > Yup. > > I could add a check in the function that does the (goto-char nil), but I > don't know if that would be only fixing a symptom of something else. I don't think it's reasonable to expect that posn-WHATEVER functions will always return a valid buffer position. There are parts on the window/frame decorations where no buffer position makes sense. We sometimes forcibly put some close position there, or get it as a side effect of the implementation, but I don't think we should rely on it. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 08:37:01 2022 Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 12:37:01 +0000 Received: from localhost ([127.0.0.1]:42888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQT9R-0001R8-Dc for submit@debbugs.gnu.org; Tue, 23 Aug 2022 08:37:01 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:38686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQT9P-0001Qj-HX for 57349@debbugs.gnu.org; Tue, 23 Aug 2022 08:37:00 -0400 Received: by mail-ej1-f49.google.com with SMTP id gi31so20658633ejc.5 for <57349@debbugs.gnu.org>; Tue, 23 Aug 2022 05:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc; bh=lKFs30+zIgO0EKLZVC5KAaYwFqLy9moe+X7kQFZivYY=; b=CV6O97shUpE22leewUGeFB5SQZ64U/iLbyL4Sfkm0bJZqmYmTF61MA74hrwKRU2Dwh loHfe8IjEN/z/DBwaY+obE+i93esf6pwiVOYsQEDw2H9fQU6PqfRecjI/fju8ji8W3YS qoEnPfYiBKmA+f3N5OfhaefGqrbHAcVtlGJfLskrMgt7ogaVeRXz1z4wRVSm6twmaSu+ YISCGjICyFIt3rJm4gQpg5DLc9xlIJkTf/8Cd1acx+Sh1AFrFRQc2jt9B86Pg0uH3qKl 6tgZPH69zBbQlarEPLYUi1bL8cEUCUJ8XXDqktI1mQ9OqEXav2C7qpL5tfNod5Iu6bFf GMNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc; bh=lKFs30+zIgO0EKLZVC5KAaYwFqLy9moe+X7kQFZivYY=; b=A6a1K2DsREwWhEPI/CoQCSx0r7rd+g2O/61Kj97sZHSHcAHRQOnVAvesbT/Q2aD1yV iv4COm6w3bs8td2lm7MF0eifeL8u67CASYm0DwSSg+36s7nNJIBNVkDwEfu7O3Ps+9q2 FzwnCMHjtO0m7QJ5cVhlA/M1Hd0DR/bENUfgiidyJ0UDBYM9qoI0IE3jItl6Bxrm7Jy+ h71axm0M4KOL5iYhyzVDzogc2YIjotx2Mca/rXieYDCRlIghFYDBgrmGqMAOUooDvvuQ qlw/F9DPCHkzPOYEsjPoaDCx7gKScHEpEHubTC2Jca8cdpZ96sJ4sMtNfu/NPVg7Wh3O gCqw== X-Gm-Message-State: ACgBeo1XzTL1/1yt+SveIqByonsdpGs+xszVS24Obg2mAZPVyXtN7phN hZBkwX7tXYVw/qcWK7ztUhzQ1aEeSRv3wA== X-Google-Smtp-Source: AA6agR5yN06KZfNpKcdlh9ecqpVhlMH1xFkFoQcaImaR7emINpaRdyYgEgX3ZLSJKg4ZGL9bbw0Tqg== X-Received: by 2002:a17:907:8317:b0:731:2189:7f4d with SMTP id mq23-20020a170907831700b0073121897f4dmr15965791ejc.468.1661258213285; Tue, 23 Aug 2022 05:36:53 -0700 (PDT) Received: from Mini.fritz.box (pd9e36133.dip0.t-ipconnect.de. [217.227.97.51]) by smtp.gmail.com with ESMTPSA id 2-20020a170906200200b0072aa009aa68sm7431962ejo.36.2022.08.23.05.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 05:36:52 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Eli Zaretskii Subject: Re: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Tue, 23 Aug 2022 14:15:59 +0200") References: <83r117895i.fsf@gnu.org> Date: Tue, 23 Aug 2022 14:36:52 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57349 Cc: 57349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gerd M=C3=B6llmann writes: > I could add a check in the function that does the (goto-char nil), but I > don't know if that would be only fixing a symptom of something else. I just had an idea. What if this deoends on the mini-window. One of the functions signalling looks like this: (defun pixel-scroll-precision-scroll-up-page (delta) "Scroll the current window up by DELTA pixels. Note that this function doesn't work if DELTA is larger than the height of the current window." (let* ((edges (window-edges nil t nil t)) (max-y (- (nth 3 edges) (nth 1 edges))) (usable-height max-y) (posn (posn-at-x-y 0 (+ (window-tab-line-height) (window-header-line-height) (- max-y delta)))) (point (posn-point posn)) (up-point (save-excursion (goto-char point) ^^^ here point is nil (vertical-motion (- (1+ scroll-margin))) (point)))) The documentation of window-edges says it is using the selected window when its window argument is nil. The selected window can't be the mini-window unless the minibuffer is active. And indeed, when I enter the minibuffer (M-:), and mouse-wheel as descibed before, no error occurs. Does that sound plausible? From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 08:46:02 2022 Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 12:46:03 +0000 Received: from localhost ([127.0.0.1]:42908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQTIA-0001fr-Jv for submit@debbugs.gnu.org; Tue, 23 Aug 2022 08:46:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQTI9-0001fE-EZ for 57349@debbugs.gnu.org; Tue, 23 Aug 2022 08:46:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQTI2-0007Ll-Nt; Tue, 23 Aug 2022 08:45:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=9adhwYmi1AQlqzkYp7N95l6+pLF4y7BhrfOBlHMdo2U=; b=ZsKw4iEEQjI3SVyDAmkz OdxmrjTTCkrM85F9O4w8yi0zNOeHNFegrkJdfq83eWJW7QNRyR5pQk/TwjAKvbA2ulLmLdlmd1C03 C+ebjD5jKf+goMBj3jkQ+2LN7j2U2dLJnY1/pFk7mjm6Tjsi7y7RIvY1FbCRgAz9gsJb212OQMHfT Ws2e95sOfLFgzNW3biJgvJSrEm91qX4NpJ5+rqSv1b4SLZ75IGfhbtxTSLVzmgwi0nPFCKlveE8HR L7Of1l1I6EV2mLv6fVcSGgKbY45g7/xNk9wOdcd+5LMven92kgjRX1FV1inyIn+/YVADIGLfZhM+U Zxfo5HsDGE+NxQ==; Received: from [87.69.77.57] (port=4579 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQTI2-0002RS-6a; Tue, 23 Aug 2022 08:45:54 -0400 Date: Tue, 23 Aug 2022 15:46:01 +0300 Message-Id: <83fshn86wm.fsf@gnu.org> From: Eli Zaretskii To: Gerd =?utf-8?Q?M=C3=B6llmann?= In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Tue, 23 Aug 2022 14:36:52 +0200) Subject: Re: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil References: <83r117895i.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57349 Cc: 57349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Gerd Möllmann > Cc: 57349@debbugs.gnu.org > Date: Tue, 23 Aug 2022 14:36:52 +0200 > > The documentation of window-edges says it is using the selected window > when its window argument is nil. The selected window can't be the > mini-window unless the minibuffer is active. > > And indeed, when I enter the minibuffer (M-:), and mouse-wheel as > descibed before, no error occurs. > > Does that sound plausible? It does to me. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 09:59:39 2022 Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 13:59:39 +0000 Received: from localhost ([127.0.0.1]:44682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQURO-0003vf-VR for submit@debbugs.gnu.org; Tue, 23 Aug 2022 09:59:39 -0400 Received: from mail-ej1-f54.google.com ([209.85.218.54]:38532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQURM-0003vS-Vr for 57349@debbugs.gnu.org; Tue, 23 Aug 2022 09:59:37 -0400 Received: by mail-ej1-f54.google.com with SMTP id gi31so21130301ejc.5 for <57349@debbugs.gnu.org>; Tue, 23 Aug 2022 06:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=klzGbIi7qYaeW9sjEDL9Lsk5BVo/O4yNlyGcznyJ+t0=; b=GId2S9GTBtNoaM3WP/ax/gnI7gic02mY89IFXEeOmylwxpTSUAlr7U+f1T0DPfNGmP vH8P7bmgCIPAKMKSYzr8qGWtcncGnT7t4K41twrpW9M+Kz3hP89xhfY+D37NS+Ib9ToB bc9wSYv37jJvluUnuA2CRpJumHTyRBgrugqPTRpmas3zZ+YEbFh72zq3uRR5ls2h1W70 QRod9q+tizkrjenFwQaXNXJyMBW4z0Gp0hbiZQtcho82Rm2UJSeNMn2kRRKHF9LyQpDu AjGQw0bKmJqw7ipAJlFnCcYrlnE7MMyayez99UzUGwbFzKEunwlgf6ZhAbbWchH7jbaI YWiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=klzGbIi7qYaeW9sjEDL9Lsk5BVo/O4yNlyGcznyJ+t0=; b=uCsRPBSI4dnbUbqh/vZ8luc58BI1Mdbbw7d1hEIZlTDNKqx8Zp/b6bBzOzTQJYD+2k 1n6B841k3Xt/hxdH+sOXwYug1tk1y3pY1RNX/uQ+3Q9Knd2+srQTBfqJBoCaZE7jnNlS rTDzhRfXkPzDCvsqYmV8nErg1/Cweeo4aMuZdfZDYoMdJn/Rjw1QiYh7P3JgDMFUC0Vy SuWfxioSIoP4gCkxdUe65arfe6xXw6DLa0TbUGxy4QnV3XpR0LNMNPRa73dyHQemCqb1 kcRCN3m/jFBth0sG+1MyW2l4vbudxmUZBZogXQ9/tP7ixw/FUKm++SumRZJaCWacySzV j1DQ== X-Gm-Message-State: ACgBeo0pkrGkgAWIj58dh67iL4CtyRpy3QwiM4MD7X+BffUHox5gIFHS bwMYZpX7gNwuz/fE82DSVMAxxkY+rCNvYg== X-Google-Smtp-Source: AA6agR51KG82rD8IDCMVMDkZwJYKzxXA0gG35qOEmVcVXIXtSi1+kpSo0de6x1N76Kw+jMWoQOKnfw== X-Received: by 2002:a17:907:1c8f:b0:73d:846e:76c8 with SMTP id nb15-20020a1709071c8f00b0073d846e76c8mr5927813ejc.591.1661263170551; Tue, 23 Aug 2022 06:59:30 -0700 (PDT) Received: from Mini.fritz.box (pd9e36133.dip0.t-ipconnect.de. [217.227.97.51]) by smtp.gmail.com with ESMTPSA id g21-20020a50ec15000000b0043ba7df7a42sm1485285edr.26.2022.08.23.06.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 06:59:29 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Eli Zaretskii Subject: Re: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil In-Reply-To: <83fshn86wm.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 Aug 2022 15:46:01 +0300") References: <83r117895i.fsf@gnu.org> <83fshn86wm.fsf@gnu.org> Date: Tue, 23 Aug 2022 15:59:28 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57349 Cc: 57349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> Does that sound plausible? > > It does to me. Thanks. Pushed to master. FYI, I also stumbled into an infloop with the 1 line high mini-window, which should also be fixed. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 10:00:13 2022 Received: (at control) by debbugs.gnu.org; 23 Aug 2022 14:00:13 +0000 Received: from localhost ([127.0.0.1]:44686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQURx-0003yT-93 for submit@debbugs.gnu.org; Tue, 23 Aug 2022 10:00:13 -0400 Received: from mail-ed1-f47.google.com ([209.85.208.47]:39543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQURv-0003xA-NH for control@debbugs.gnu.org; Tue, 23 Aug 2022 10:00:12 -0400 Received: by mail-ed1-f47.google.com with SMTP id q2so16036510edb.6 for ; Tue, 23 Aug 2022 07:00:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:subject:from:to:message-id :date:from:to:cc; bh=yKbUhcUQZlsAPw0SV2V8X1LlX63TLgFSBheOTxwWrIk=; b=iJci1pxjnJOKVt4oGqnGidZvc6EoVAzJ721fbEpQdds4GJZ5ukG6Vs6TLs4imT+BqU kv/wylxHbgdfvAL6ysVUh1NiPhip59855H1CLlsRCw6102cxYnecfuoqfuOkUQMSUDIC 91qf8+EdsEOcDHda15W/h95r5H+BAAps7yeIWjLbFgblvi0hA+hj3pmyCNEb+Pl/WZg0 aPjFFsHaM/CmcdibNS6VZMpdcC9PtczMEb+VESFdrY9xkHLh9I46Cx/VRxR7jHoGKvzf hMCnwcnj52MudxqyY0cHXnLm9uN47H41yvjWw5ES8iqsUOCoGE9TEGVY16NOWMA4DhYT 2QjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:subject:from:to:message-id :date:x-gm-message-state:from:to:cc; bh=yKbUhcUQZlsAPw0SV2V8X1LlX63TLgFSBheOTxwWrIk=; b=NQyVpPS/NMrVj1De9ByZw5+r7HYn3356owaBH1LS4QY7Qr+t3xeV9BxtadlHkZhwCb XuswOlQHpIag0PHDCiz7detKsO3t0qVhBHW0zFi/JLTy9E+5dk/5rzvJY3yKXkyRdZAZ XPE20ivhpIp8arVdkvpcMJy8rTbH3/IsjlxVwBTTMlIDDKdWC3FXIr6ofwdLlLnfaLnA NZ5N6iOLpv+Vuy1WkS1rVMWugnFRXs3u84gz2s+HWgW6pkUlbNmDCLfacJcNH/dgIun5 qx953lCPmg60QKjmvP1MeTi98pMXdU4d2M+t6lACn8cRa0NneQsgKm9pKT/hoUeNegWO 93LA== X-Gm-Message-State: ACgBeo1KqRMId1rjQOjh0Eddzhq7cPvwTSMlXktju9AJWjRY6bwtkR83 Kf2EndUmM0F/8Jr4jM8DhvYvPT2naju5GQ== X-Google-Smtp-Source: AA6agR5adOLgK4FzNeKo33BgAPSgnCZf65SISA0y0gXkILpcIU8y0vJUYDUYtxpdhJBsa/fVdra0lQ== X-Received: by 2002:a05:6402:2804:b0:439:83c2:8be2 with SMTP id h4-20020a056402280400b0043983c28be2mr3840040ede.292.1661263205485; Tue, 23 Aug 2022 07:00:05 -0700 (PDT) Received: from Mini.fritz.box (pd9e36133.dip0.t-ipconnect.de. [217.227.97.51]) by smtp.gmail.com with ESMTPSA id q35-20020a05640224a300b00445f9faf13csm1496203eda.72.2022.08.23.07.00.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 07:00:04 -0700 (PDT) Date: Tue, 23 Aug 2022 16:00:03 +0200 Message-Id: To: control@debbugs.gnu.org From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Subject: control message for bug #57349 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 57349 29.1 quit From unknown Sat Jun 21 10:44:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 21 Sep 2022 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator