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:52:49 +0000 Message-ID: <87ilim863y.fsf@localhost> References: <87zgby87rm.fsf@localhost> <83h6y62kjp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21250"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59902@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 08 12:54:19 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 1p3FTn-0005KG-3O for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Dec 2022 12:54:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3FTY-0001um-Om; Thu, 08 Dec 2022 06:54:04 -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 1p3FTW-0001uC-HA for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:54:02 -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 1p3FTW-0003cm-6i for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3FTW-0005wp-2v for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:54: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:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59902 X-GNU-PR-Package: emacs Original-Received: via spool by 59902-submit@debbugs.gnu.org id=B59902.167050038122842 (code B ref 59902); Thu, 08 Dec 2022 11:54:02 +0000 Original-Received: (at 59902) by debbugs.gnu.org; 8 Dec 2022 11:53:01 +0000 Original-Received: from localhost ([127.0.0.1]:56322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3FSX-0005wG-43 for submit@debbugs.gnu.org; Thu, 08 Dec 2022 06:53:01 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:44763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3FSU-0005wA-QP for 59902@debbugs.gnu.org; Thu, 08 Dec 2022 06:52:59 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 446EC240027 for <59902@debbugs.gnu.org>; Thu, 8 Dec 2022 12:52:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670500373; bh=cBZpSRyJHAQDcravG3OOMA/0QKpQxUaDtkh3fpOb3z8=; h=From:To:Cc:Subject:Date:From; b=lFgKzUGTN2IPTDKjFOTmWRIoppCKgBgNuJk0bh7g7YyrWe77low1e3+3+QhsUqkvF CoKAs3sNZVyhic/8Zkj9li4e/nGhPHbLAJ4OGqwvcg16KUrozoxfr9lnIvCk6yphh1 jiustYtyQFs0E3SvIu349y/+/oEgTFKvzho+MV3u935b08EA/xRkTZANBy7a3D+arR sVoRSmLfMBvFzC8hHV30uctannQuCEFykaTn0oh6d6RdRLSc1S5Lbyfnrir5Fj7tb9 Of+qcNFOFI/7mSrb2TShE0W56VdrFyyC7MY2Gir1Qw1DYR5/qcdsByWkxy8EwidWJp T739kAbBIEG0A== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NSXb833vvz6tnw; Thu, 8 Dec 2022 12:52:52 +0100 (CET) In-Reply-To: <83h6y62kjp.fsf@gnu.org> 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:250278 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> 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 > ... > Is the "convert" part in step 3 necessary to reproduce this? If so, > it's a huge turn-off for me, because I don't have, and won't have, > ImageMagick installed, or anything similar to it. So someone else > will have to investigate this in that case, sorry. It is not. Anything generating an image of known size will do. The original report is in https://list.orgmode.org/87wn7287n2.fsf@localhost/T/#mda89a57883b92c8b48ad6c4aec9e111c131efe92 You can try the following: #+begin_src sh :results graphics file :file /tmp/colour.png true #+end_src and then change to #+begin_src sh :results graphics file :file /tmp/colour2.png true #+end_src The images are attached. >> If I step through the code inserting the image overlays, the wrong (not >> updated) overlay appears in `org-display-inline-images': > > Where is this code through which you are stepping? `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 > > And if you switch the order of the above two lines? Ain't helping. > Anyway, it is not reliable to try to deduce what happens when stepping > through the code if the problem is relied to cursor motion or > redisplay, because Edebug changes all of that in radical ways. I use debug-on-entry. Probably not much different though. > Finally, a stab in the dark: the fact that the problem disappears when > you move the cursor might mean that a call to 'redisplay' (or some > other trigger for redisplay to know stuff has changed) is missing > somewhere. Nope. When I move the cursor away, the erroneous image is displayed again. --=-=-= Content-Type: image/png Content-Disposition: attachment; filename=colour.png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAASwAAAEsAQMAAABDsxw2AAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABlBMVEUAKzb////GiCa1AAAA AWJLR0QB/wIt3gAAAAd0SU1FB+YMCAszOau2lQgAAAAiSURBVGje7cExAQAAAMKg9U9tCj+gAAAA AAAAAAAAAAB4GS20AAH/6QlrAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTEyLTA4VDExOjUxOjU3 KzAwOjAwE0fC7wAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0xMi0wOFQxMTo1MTo1NyswMDowMGIa elMAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjItMTItMDhUMTE6NTE6NTcrMDA6MDA1D1uMAAAA AElFTkSuQmCC --=-=-= Content-Type: image/png Content-Disposition: attachment; filename=colour2.png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAfQAAAEsAQMAAAAPddOLAAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABlBMVEUAKzb////GiCa1AAAA AWJLR0QB/wIt3gAAAAd0SU1FB+YMCAsvAWXDcMsAAAApSURBVHja7cExAQAAAMKg9U9tCy+gAAAA AAAAAAAAAAAAAAAAAAAA4GdLAAAB9wDA9AAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0xMi0wOFQx MTo0NzowMSswMDowMPTnVjYAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMTItMDhUMTE6NDc6MDEr MDA6MDCFuu6KAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDIyLTEyLTA4VDExOjQ3OjAxKzAwOjAw 0q/PVQAAAABJRU5ErkJggg== --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--