From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#59902: 30.0.50; Image overlay is not updated until the cursor moves to the overlay Date: Thu, 08 Dec 2022 11:17:01 +0000 Message-ID: <87zgby87rm.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1077"; mail-complaints-to="usenet@ciao.gmane.io" To: 59902@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 08 12:18:22 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 1p3Ev0-000Ac7-JD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Dec 2022 12:18:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3Euj-0007p8-3D; Thu, 08 Dec 2022 06:18:05 -0500 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 1p3Euh-0007oh-17 for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:18:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3Eug-0005co-EN for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3Eug-0002og-13 for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Dec 2022 11:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59902 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.167049824110812 (code B ref -1); Thu, 08 Dec 2022 11:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Dec 2022 11:17:21 +0000 Original-Received: from localhost ([127.0.0.1]:56135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3Eu0-0002oK-JD for submit@debbugs.gnu.org; Thu, 08 Dec 2022 06:17:20 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3Etv-0002oC-4o for submit@debbugs.gnu.org; Thu, 08 Dec 2022 06:17:18 -0500 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 1p3Etu-0007ld-KC for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:17:14 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3Ets-0005XH-Kl for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:17:14 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9B20B240107 for ; Thu, 8 Dec 2022 12:17:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670498229; bh=zYKKRoKZgtD33I2yUCGZTdAkkYmBrjKJsDc2dUgvFUI=; h=From:To:Subject:Date:From; b=CtNvXRFVmm4xWrsp4nGZvuI0ojiaClHmCJHtZ5gqvWj/2SU6bOYg/nNoWoGJQri+h Q3TH4e2ruFGb5GXSU4vOIjaViGJbYMKe8R2bA7W+FlUgZKxomVWKWN1uMQihNIz9UX cI2mICtlV2YB4qc4pzTgagkdMT+QX1tHtXSFojwm+KlYVGnM1I6qeEArgH81tgaB0V TWarWBHkgRncJSMlcObbRu6vTf8E8pm8ycoNh8hlWdU/6oeK6LsTAQl1JiBcTWB9Pc WVk33Di9d4GWDLT0bb3W3u3kWowFu4H9oiSlNuThzwDSirQSbwwFFiHt44Ww9dxygR +UpHklX3D5+tw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NSWnt5pM3z6tsZ for ; Thu, 8 Dec 2022 12:17:04 +0100 (CET) Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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:250274 Archived-At: Hi, Consider the following 1. emacs -Q 2. M-: (require 'ob-shell) 3. Open the following org file #+begin_src sh :results graphics file :file /tmp/colour.png convert -size 300x300 xc:#002b36 /tmp/colour.png #+end_src 4. Move point to the source block and C-c C-c yes 5. C-c C-x C-v 6. Observe the 300x300 image appearing 7. Edit the source code to 500x300 8. C-c C-c yes 9. Image disappears 10. C-c C-x C-v 11. Observe what appears to be the old 300x300 image 12. Move the cursor to the image 13. Observe the correct 500x300 appearing while the cursor is on it!! If I step through the code inserting the image overlays, the wrong (not updated) overlay appears in `org-display-inline-images': (let ((ov (make-overlay (org-element-property :begin link) (progn (goto-char (org-element-property :end link)) (skip-chars-backward " \t") (point))))) (overlay-put ov 'display image) ;; <- the updated image is correctly displayed (overlay-put ov 'face 'default) ;; <- un-updated image is displayed until we move cursor to the overlay (overlay-put ov 'org-image-overlay t) In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.17.6) of 2022-12-07 built on localhost Repository revision: f0e118d3f676afe39df29663399d4bbe8f53f208 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Gentoo Linux -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at