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: Sun, 11 Dec 2022 09:19:16 +0000 Message-ID: <87zgbul2ln.fsf@localhost> References: <87zgby87rm.fsf@localhost> <83h6y62kjp.fsf@gnu.org> <87ilim863y.fsf@localhost> <83lenh20fy.fsf@gnu.org> <87a63x7l1w.fsf@localhost> <83h6y51w66.fsf@gnu.org> <87wn6zr376.fsf@localhost> <83bkoby0zq.fsf@gnu.org> <87ilijfrac.fsf@localhost> <83o7sbwddn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29424"; 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 Sun Dec 11 10:20:31 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 1p4IVa-0007S3-Em for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Dec 2022 10:20:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4IVB-0005wB-C6; Sun, 11 Dec 2022 04:20: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 1p4IV9-0005vi-Ba for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2022 04:20: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 1p4IV9-0005YG-21 for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2022 04:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4IV8-0007Zb-J7 for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2022 04:20: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: Sun, 11 Dec 2022 09:20: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.167075037429088 (code B ref 59902); Sun, 11 Dec 2022 09:20:02 +0000 Original-Received: (at 59902) by debbugs.gnu.org; 11 Dec 2022 09:19:34 +0000 Original-Received: from localhost ([127.0.0.1]:46218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4IUd-0007Z6-0Z for submit@debbugs.gnu.org; Sun, 11 Dec 2022 04:19:33 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:54519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4IUX-0007Yy-Af for 59902@debbugs.gnu.org; Sun, 11 Dec 2022 04:19:29 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4A11B240105 for <59902@debbugs.gnu.org>; Sun, 11 Dec 2022 10:19:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670750359; bh=DiYTEg2eELpvm1pSgei2y5gAOpJHpFMn6M3KsbaASG0=; h=From:To:Cc:Subject:Date:From; b=T+KmxaQ3Hl8kBVtcLlkYOIHDk/xaEwIXRcOjQgK6xFu+Gd6eHrUtbjoIJZf8Hfwpj vVNrC+T2e4i00AUgtmL7/hZuyC/kMYGNBytpALgzW4WDgpf6mRxmPLHpbaTMK38XTy 51orjZnj54cDsR8RdZlPjE3d4Y4BMIPWfeuvANJupFemz2t8eO0d5zokdw6maY6ujb BJK5ecFnVwhz4D7X80fHxY1aMzXt7WWRcARC89wQm7kcCFF6KxRxtFC0DNWrF+AgqI WmVAK4BDGJYWjC+xgb724Iw1MO5Stt2ezozHTN7omV0nELklVrUqBnh9PtoU6/htup XxXRzj4p07njw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NVK2Y48qgz9rxK; Sun, 11 Dec 2022 10:19:17 +0100 (CET) In-Reply-To: <83o7sbwddn.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:250584 Archived-At: Eli Zaretskii writes: >> > You want Emacs to hit the disk and process the file on each redisplay >> > cycle? >> >> No. It can be less frequent. Maybe just when a new image view is created >> (like in overlay). Or maybe on timer - make images in the image cache >> expire after some time. > > The image-handling code doesn't necessarily know where the image came > from. > > The idea of clearing images from time to time was discussed, but AFAIR > we didn't find a good way that fits all the needs for doing so. Are you referring to https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33275 ? I do not see anyone proposing cache expiry time there. Expiry is not really related to this particular bug report, but might be a good idea to help large memory consumption that is reported from time to time (I reported once for pdfs and I have seen people report memory issues with images). > I think this is best left to the application level. In particular, in > this case, the application _knows_ when it will replace the image > file. No. Not really. Source block execution does not pass any information about updating/not updating images to Org image display code. Even if it did, the same issue could appear when the image file changes on disk outside Emacs. I was still able to make some improvements in Org's image code thanks to your replies. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a12d15df9 Yet, do note that flickering two different image versions when moving point is unexpected even considering the information you provided. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at