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: Sun, 24 Mar 2024 02:07:16 -0700 Message-ID: <87sf0gm1xn.fsf@ushin.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="15743"; mail-complaints-to="usenet@ciao.gmane.io" To: 69972@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 24 10:12:45 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 1roJuG-0003tT-Hu for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Mar 2024 10:12:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1roJtu-0001a1-CY; Sun, 24 Mar 2024 05:12:22 -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 1roJts-0001Zt-QB for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2024 05:12:20 -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 1roJts-0000iO-IR for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2024 05:12:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1roJuY-0004Ob-6x for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2024 05:13: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: Sun, 24 Mar 2024 09:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69972 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171127154816790 (code B ref -1); Sun, 24 Mar 2024 09:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Mar 2024 09:12:28 +0000 Original-Received: from localhost ([127.0.0.1]:42543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roJtz-0004Mj-TX for submit@debbugs.gnu.org; Sun, 24 Mar 2024 05:12:28 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roJtw-0004MS-Nl for submit@debbugs.gnu.org; Sun, 24 Mar 2024 05:12:25 -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 1roJr8-0001KU-Me for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2024 05:09:30 -0400 Original-Received: from out-187.mta1.migadu.com ([95.215.58.187]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1roJr5-000051-DA for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2024 05:09:30 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ushin.org; s=key1; t=1711271354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Ivd04cmhLo/ExNa7uq/Dma3fExN/pp5NXnSA/C95Tig=; b=bqn+1RdOwDd9biUU1S8xwaSp//Rn0d5cIe6f6Kg9/xTtJgTdhf1QbnaoGL0mlU/gMtO43w 2Sd+cYpYwNZN+cOtDuVsQU82DLIvbTFuzTRdQs1cX/JAJs6hKWeZyjGFKfUzKzyxwm0yHP Ta7SHBWkeUHYkOfx6/pBLQy0pYVbjnUGQ3P/CLBBaiuobSHv+roHILu/phAPiz/DlNd3jq z/QTWAgboQHAS5KszplHMGAcri/enU4WhQtahBpmPyYPRxKZ/8YFHYads9wKNVCby5F4B/ 3TC4guIjztcQjGP+TJilf0kGHbZIyoLXIcWcJIZ1DyPypQjLedCKeQxZJRTNxQ== X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=95.215.58.187; envelope-from=joseph@ushin.org; helo=out-187.mta1.migadu.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:282014 Archived-At: When the image at point is larger than the current window and there is no content after the image, interactively scrolling down (with the scroll-up command) unexpectedly scrolls past the image to blankness. Test this by evaluating the following snippet then interactively running `scroll-up' repeatedly: (with-current-buffer (get-buffer-create "*test-scroll-image*") (erase-buffer) (insert-image (create-image "splash.png" nil nil ;; Scale the image more if it doesn't take up the whole window. :scale 5)) (goto-char (point-max)) (pop-to-buffer (current-buffer))) Even more unexpectedly, when point is before the image, running `scroll-up' repeatedly eventually scrolls back to the top of the image: (with-current-buffer (get-buffer-create "*test-scroll-image*") (erase-buffer) (insert-image (create-image "splash.png" nil nil :scale 5)) (goto-char (point-min)) (pop-to-buffer (current-buffer))) Non-interactively, scroll-up scrolls the page down to the very bottom of the image. IMO this is the expected behavior: (with-current-buffer (get-buffer-create "*test-scroll-image*") (erase-buffer) (insert-image (create-image "splash.png" nil nil :scale 5)) (pop-to-buffer (current-buffer)) (scroll-up 999)) Thank you for your help!! Joseph Tested on emacs -Q: In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure CONFIG_SHELL=/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/bash SHELL=/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/bash --prefix=/gnu/store/f4gxh8n3libmywq8d5jvxxkyqblgilxy-emacs-29.1 --enable-fast-install --with-cairo --with-modules --with-native-compilation=aot --disable-build-details' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB