From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Turner via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69972: 29.1; Unexpected behavior when scrolling images Date: Mon, 25 Mar 2024 12:43:39 -0700 Message-ID: <87h6grl4ky.fsf@ushin.org> References: <87sf0gm1xn.fsf@ushin.org> <86h6gwx8wv.fsf@gnu.org> <87jzlrm7lv.fsf@ushin.org> <86plvijy9r.fsf@gnu.org> Reply-To: Joseph Turner Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37036"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69972@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 27 22:59:18 2024 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 1rpbIk-0009MA-1C for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Mar 2024 22:59:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpbIV-0005G6-8q; Wed, 27 Mar 2024 17:59:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpbIT-0005FJ-W1 for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 17:59:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpbIT-0002oY-No for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 17:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpbIU-0000LD-0Q for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 17:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joseph Turner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Mar 2024 21:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69972 X-GNU-PR-Package: emacs Original-Received: via spool by 69972-submit@debbugs.gnu.org id=B69972.17115767331293 (code B ref 69972); Wed, 27 Mar 2024 21:59:01 +0000 Original-Received: (at 69972) by debbugs.gnu.org; 27 Mar 2024 21:58:53 +0000 Original-Received: from localhost ([127.0.0.1]:38478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpbIK-0000Kn-HA for submit@debbugs.gnu.org; Wed, 27 Mar 2024 17:58:52 -0400 Original-Received: from out-179.mta0.migadu.com ([91.218.175.179]:46107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpbIG-0000KL-82 for 69972@debbugs.gnu.org; Wed, 27 Mar 2024 17:58:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ushin.org; s=key1; t=1711576722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=a3UZ88RXGUgTbWjRGc43100oc7x17SXK9HzuTwk+zsE=; b=SMT9uzATIZPxTJuHAfCfgvX5CTZ4pjPgtDmDqrAuXseUoy3v0iQCgVfPFlDuuXSK0QuzbE TNGFkg6XQ+ajikkjBEra4BmxZQlOlxNFtDf+rowyh8A7YOMiSV5UjNhs3ozj2/YOyOEkvW I1WCdbplJwe0bQal8okyvfKAJ0xLJ+f3NVk2aqcM8s/5aAljcDpzTxdyaIQDSqp2Jk5v4C qhXd/YgObCV+dAGFAu0RPmcaaKtLkP2GlfSN9OOFo3uddzyZ5PmRuUTsK/RCXAlHG1or/W Zs211d4qek+4mFzMZpKT2vFQgTszzgoKk9nwIVhptkh/40q1bnEQoWR70xvmzA== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: <86plvijy9r.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282162 Archived-At: Eli Zaretskii writes: >> From: Joseph Turner >> Cc: 69972@debbugs.gnu.org >> Date: Sun, 24 Mar 2024 18:06:44 -0700 >> >> 1. "M-: (scroll-up) RET" (repeatedly) >> 2. C-v (repeatedly) >> 3. (repeatedly) >> >> With all three methods, at first Emacs gradually scrolls the image, but >> then when I reach the bottom of the image, the image disappears entirely >> as Emacs scrolls past it all at once. > > Why is that a problem? The default Emacs scrolling commands don't > guarantee smooth constant-rate scrolling, they guarantee only that you > get to see all the portions of the image, without missing any. So > when you get to the end of the image, there's a heuristic that decides > whether we can scroll past the image, and that is what you see. > > I see no bug here. With pixel-scroll-precision-mode enabled and at least one character after the image, I am able to smoothly scroll around the image. (with-current-buffer (get-buffer-create "*test-scroll-image*") (erase-buffer) (insert-image (create-image "splash.png" nil nil :scale 10)) (insert " ") ;; There must be some text after the image (goto-char (point-min)) (pixel-scroll-precision-mode 1) (pop-to-buffer (current-buffer))) However, if the window is scrolled to the right, then it is impossible to scroll down: (with-current-buffer (get-buffer-create "*test-scroll-image*") (erase-buffer) (insert-image (create-image "splash.png" nil nil :scale 10)) (insert-char 8203) (goto-char (point-min)) (pixel-scroll-precision-mode 1) (pop-to-buffer (current-buffer)) (set-window-hscroll (get-buffer-window) 1)) ;; Image scrolled to right In this buffer, if I attempt to scroll down with the mouse wheel, I immediately get "End of buffer" error and the image does not move. Thank you! Joseph