From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59902: 30.0.50; Image overlay is not updated until the cursor moves to the overlay Date: Sat, 10 Dec 2022 16:18:44 +0200 Message-ID: <83o7sbwddn.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35316"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59902@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 15:19:35 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 1p40hS-0008xU-2C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 15:19:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p40hD-0005Ol-5W; Sat, 10 Dec 2022 09:19:19 -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 1p40h5-0005Ni-5V for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 09:19:14 -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 1p40gw-0002VJ-Fq for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 09:19:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p40gv-0007Zm-W7 for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 09:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2022 14:19:01 +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.167068193629114 (code B ref 59902); Sat, 10 Dec 2022 14:19:01 +0000 Original-Received: (at 59902) by debbugs.gnu.org; 10 Dec 2022 14:18:56 +0000 Original-Received: from localhost ([127.0.0.1]:43005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p40gq-0007ZW-Ff for submit@debbugs.gnu.org; Sat, 10 Dec 2022 09:18:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p40gn-0007ZO-Am for 59902@debbugs.gnu.org; Sat, 10 Dec 2022 09:18:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p40gh-0002Gk-LT; Sat, 10 Dec 2022 09:18:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fBnbvfHfxpx9HbcG3Z97Vnfbei/1Y0IjyQfXHH6SObg=; b=NAUBlBqVu2re 9vknwZN6r0N3benpaCebZ/y6QU1VOJsy0GlEYujP2vueUEv4+fV+7O7s6SfGQdKaqQgVO/ObqsTq8 BjZ4G3MR9A1qgYAx4nxP/FLb24E9ApwJIA1oHMRCHXGCIhXClO5X3jn+SGmuIwpwD1ie0DXXL7twS pIUO1cAJlRBt2JVzrIM6/lKOa94ed8AWELXL7CSlFKajvw6pCIoCVZg5sRvWHx/IFHuZ/BkVGlopH TcQrcgDztHoqX4TDLVV3/Le8eIkzb3z3nOcYOD8vV09/ReNzoC6m4fRjioFEWIS4Gk5k0aez5oBMG OWVePOWoP3vFIEhFzyY+Tw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p40gh-0008Am-7D; Sat, 10 Dec 2022 09:18:47 -0500 In-Reply-To: <87ilijfrac.fsf@localhost> (message from Ihor Radchenko on Sat, 10 Dec 2022 11:10:19 +0000) 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:250523 Archived-At: > From: Ihor Radchenko > Cc: 59902@debbugs.gnu.org > Date: Sat, 10 Dec 2022 11:10:19 +0000 > > Eli Zaretskii writes: > > >> The current Emacs' behaviour is unexpected and very confusing here. > >> Ideally, Emacs should be able to judge by itself whether to update > >> cached image in memory. > > > > 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. 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.