From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#57349: 29.0.50; pixel-scroll-precision-mode. error integer-or-marker-p nil Date: Tue, 23 Aug 2022 14:36:52 +0200 Message-ID: References: <83r117895i.fsf@gnu.org> Mime-Version: 1.0 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="5500"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: 57349@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 23 14:41:31 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 1oQTDn-0001Hm-4G for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Aug 2022 14:41:31 +0200 Original-Received: from localhost ([::1]:44910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQTDm-0004Kr-79 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Aug 2022 08:41:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQT9T-0007e2-Gi for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 08:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53139) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQT9T-0004rA-7f for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 08:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQT9S-0001RU-TH for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 08:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Aug 2022 12:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57349 X-GNU-PR-Package: emacs Original-Received: via spool by 57349-submit@debbugs.gnu.org id=B57349.16612582215530 (code B ref 57349); Tue, 23 Aug 2022 12:37:02 +0000 Original-Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 12:37:01 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Tue, 23 Aug 2022 14:15:59 +0200") 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:240535 Archived-At: 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?