From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 15:36:54 +0300 Message-ID: <83k06z87bt.fsf@gnu.org> References: <83r117895i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23797"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57349@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 23 14:45:09 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 1oQTHH-0005wt-Ps for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Aug 2022 14:45:07 +0200 Original-Received: from localhost ([::1]:44268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQTHG-0007zX-N5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Aug 2022 08:45:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQT9U-0007f4-0f for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 08:37:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQT9T-0004rR-Ly 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-0001RO-Hb for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 08:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii 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.16612582165513 (code B ref 57349); Tue, 23 Aug 2022 12:37:02 +0000 Original-Received: (at 57349) by debbugs.gnu.org; 23 Aug 2022 12:36:56 +0000 Original-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 Original-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 Original-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==; Original-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 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on 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:240536 Archived-At: > 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.