From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65214: 29.1; Tall images in 'image-mode' can't be scrolled with 'pixel-scroll-precision-mode' on Date: Fri, 11 Aug 2023 11:38:28 +0800 Message-ID: References: <87il9mddcx.fsf@zohomail.eu> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="466"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65214@debbugs.gnu.org To: Rahguzar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 11 05:39:41 2023 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 1qUJ00-000AXI-Qd for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Aug 2023 05:39:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUIzd-00026J-CD; Thu, 10 Aug 2023 23:39:17 -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 1qUIzO-00025r-R0 for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 23:39:04 -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 1qUIzO-0001aO-Iu for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 23:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUIzO-0003Hh-4e for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 23:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Aug 2023 03:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65214 X-GNU-PR-Package: emacs Original-Received: via spool by 65214-submit@debbugs.gnu.org id=B65214.169172513612614 (code B ref 65214); Fri, 11 Aug 2023 03:39:02 +0000 Original-Received: (at 65214) by debbugs.gnu.org; 11 Aug 2023 03:38:56 +0000 Original-Received: from localhost ([127.0.0.1]:44611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUIzH-0003HO-SC for submit@debbugs.gnu.org; Thu, 10 Aug 2023 23:38:56 -0400 Original-Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]:36132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUIzC-0003H4-83 for 65214@debbugs.gnu.org; Thu, 10 Aug 2023 23:38:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691725123; bh=2v3x1v/J8LfEwJowwPLoknxseZPy8PES0PlajeO2Owk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=E6oIqF3nooJzw0UktA/eJJgrl/axnznIGz6n7hNnMIpUsRkH57XbRk/A+1rx58l+3wF0pmChPzk5oi7PpkDiDfVSQyANEae5erO81YEOO/nS8JqFLPE2HldYdatku7bSe5ZBuRSQQpkmEWhMqfeKmuWR5Crq3DPfrpC3tGIbfr/63xVuPXSxvEPkzPpnnRRlYN9U2evtmZ68kp+xu04Uh6ZBZjNmzNMeYt6ckwIyUm5OEywQyHUAEesNwoVvAuO5c0pCsSJWJHMaE2x5cOHir+Vs6qXZFKSdsu1H2cc6OyWB9xUshDZC1+bWcXECYAv572XbpwA7uRPuuOiohkyQkA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691725123; bh=NUQGf8oRK8BaV2bEhRbESG//TncITGYhNGcceTl+sms=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=GGy6Wixa9C2sZujeWwSu+cTFrbG5Za7b2eQMMhb7Z+eZEAfV655C0X/HUKyNeWfGUUYCNRwef/1ry8ccv7gOPY3mEOZm53flDWjcTA6Mck3uf9pYdLfmtHf69HA1v7ELKmElLp5Nk9ZtEqMrWmxIkJrbm+S3jNZFdl3CwUveVv/baAxRbQeGI3s0QsiusbBtk6ICFcnxOQz3c7X7mbHQPsj0URB/QnTfa84b5/vEIePwcfnOXXkJaRS2RgasqRBezzpQs6v9d0R6Mo3jg+j46NTEzq1HWbSpbPLvbgtMcUuzk6TeT7/jd+y8TC+jMv3nVNGDoi8CxM5Xa4NAyCEWAw== X-YMail-OSG: TvzQZEwVM1kmO_6r0MTMiDC6UkSeZ7_K2ysux2nZmhISy7jdOEit102l4hazbqX gPXUv2O36ZgXOTGTjzp3hme2WoCrLLcIH4y5S_K75axI_4sJhDT6go.b13ZZkmHtwBCWa0sx3nhR DRYQq8loXKtfyE4kTCVKhgt7ibn2np8fA0VZ2QwtUBDXivxnGtTo5nPXMsCRVWScgYaLVHA_ly6J IiK0bz1R6vVBmsYZ_pkpV7PMuFVDhKgl.E8fJMnJq01zFBrHa25B_iLJwC2f51jrnx7w71oT4R.T rif9U3I3svmh2OfjfSQUVJkCDgdWqybO7P4duVuJkDScyRjkUhn.FsAuoSgZz7rdP1eEKZye8hcZ a_lgaMcpcaYzUc6ImrzQX0n9cpIs2VNeO2lYAw5VCIZQ9o5VSZspImETofja20.V3BKkXDFhy.St iSMRuRq.eQu79Rxw3VeTqp1zoJRnw2ZgIV6LK9RjmzEOisRLDPecdvDFp0vV4wsY5vNrgvmxAE47 FS6w8W0Kbt8JIzR6maPOC16wFSsXxbWQQBrKz_W.NlM8z.02I1Uslec.tb7TQkEgg9bnj0mFedq_ _bOgE1r89c9ciy0bimN78GvIpUY8j_je7Z8vSH2rNuFjC1WfwE6RJpmYdF01dQuJk9cJOThAyovU M2myqpoyJ_WDbRdQCDxz3FK06NTiDSKF2ZFHIFqdr1mw2xCuYyaMzQHUS70Tr0Ttkqcd.6pKU8Sr va8RBk0zsSHVIAJP4mszRQPuIPBv4uSjqHpbetVIjWbsiCPIw6Q1qVBXaGdEqRynqEWXTkPDiMN0 Dco6XfWAr6545dhtYSYVj.VzUPZkhTj4eyDbTkXT3_ X-Sonic-MF: X-Sonic-ID: 6d6b09f6-f20f-45e2-9663-b4b33c2b5407 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Fri, 11 Aug 2023 03:38:43 +0000 Original-Received: by hermes--production-sg3-69654d8bd-l9pxw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b1ebfb866f09376935dd267e673478b1; Fri, 11 Aug 2023 03:38:39 +0000 (UTC) In-Reply-To: <87il9mddcx.fsf@zohomail.eu> (rahguzar@zohomail.eu's message of "Thu, 10 Aug 2023 19:05:03 +0200") X-Mailer: WebService/1.1.21695 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:267180 Archived-At: Rahguzar writes: > Dear Emacs developers, > > To reproduce starting from 'emacs -Q' visit an image file. Then > repeatedly use 'i +' till the image is taller than the window. The > image can be scrolled using mouse wheel. Now do > > M-x pixel-scroll-precision-mode > > After this attempting to scroll the image will set the vscroll to 0 > and then image can't be scrolled at all. > >>>From some investigation it seems like this behavior is not specific > to image-mode. Another way to reproduce the behavior is to evaluate > the following lisp code, > > (let* ((win (display-buffer (get-buffer-create "image-pixel-precision-test"))) > (height (* (window-text-height win t) 2)) > (file "path/to/image")) > (select-window win) > (erase-buffer) > (insert-image (create-image file nil nil)) > (goto-char 1) > (pixel-scroll-precision-mode) > nil) > > This image thus displayed can not be scrolled. However if the code > above is slightly modified to insert a new line after the image, > scrolling can be done normally, i.e. > > (let* ((win (display-buffer (get-buffer-create "image-pixel-precision-test"))) > (height (* (window-text-height win t) 2)) > (file "path/to/image")) > (select-window win) > (erase-buffer) > (insert-image (create-image file nil nil)) > (insert "\n") > (goto-char 1) > (pixel-scroll-precision-mode) > nil) > > produces an image that can be scrolled. Inserting a newline after the > text covered by the text property holding the image also fixes the > problem in 'image-mode' but that doesn't seem like the right fix to me. > > Rahguzar This is a known limitation of pixel-scroll-precision-mode: redisplay's automatic recentering impededs adjustment of the vscroll as the image moves outside of the window's text area. Unfortunately, it's not slated to be fixed any time soon.