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: Thu, 15 Dec 2022 12:49:08 +0200 Message-ID: <83edt1kkm3.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> <83o7sbwddn.fsf@gnu.org> <87zgbul2ln.fsf@localhost> <83bkoautll.fsf@gnu.org> <87pmcpc940.fsf@localhost> <83h6y0sqyo.fsf@gnu.org> <87cz8lufqn.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15204"; 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 Thu Dec 15 11:50:17 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 1p5lof-0003jO-4Y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 11:50:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5loR-0000JF-09; Thu, 15 Dec 2022 05:50:03 -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 1p5loQ-0000Iw-5w for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 05:50: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 1p5loP-0005e4-Tr for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 05:50:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5loP-0001gh-QQ for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 05:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 10:50: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.16711013576456 (code B ref 59902); Thu, 15 Dec 2022 10:50:01 +0000 Original-Received: (at 59902) by debbugs.gnu.org; 15 Dec 2022 10:49:17 +0000 Original-Received: from localhost ([127.0.0.1]:42780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5lnh-0001g4-2z for submit@debbugs.gnu.org; Thu, 15 Dec 2022 05:49:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5lnf-0001fy-35 for 59902@debbugs.gnu.org; Thu, 15 Dec 2022 05:49:15 -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 1p5lnZ-0005Xz-8s; Thu, 15 Dec 2022 05:49:09 -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=rImAWmWVEODRirkNb+IdSTvOUVa3DBwXtJNHNEWjIRM=; b=nI4CZgsh6DKE dEEwil0CTquYubj4iBp4UTqovpaK6d+OhnYddpxGXpkg86Sa5vWT1lCTObXpLcNEud52Z5syezX4V tAGVvp1WE7OviBExClkzG9YH8V77u33Y8/5k0O4I6RGJhMpSBvkM2qqfhv6WVnm7DDApzOz84KBhP SyB4OhcgXxJ9IfG2j/Nl2s/7Uu+bdqKs4l/4d7wtmneMdGPqMnu0tWafQphtIRIbuq2BVjo5gP8A/ 5vO+hyCyypudAD0gT6X5V6Mgw7wS5qY2Qe0dbNXsEjJr+5s7j7rkkcJZwDD2FcGYr0X1D5ZftBsm3 VoprEYYf26i1Bhxf31GEPw==; 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 1p5lnY-0007vZ-NG; Thu, 15 Dec 2022 05:49:09 -0500 In-Reply-To: <87cz8lufqn.fsf@localhost> (message from Ihor Radchenko on Thu, 15 Dec 2022 10:24:16 +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:251064 Archived-At: > From: Ihor Radchenko > Cc: 59902@debbugs.gnu.org > Date: Thu, 15 Dec 2022 10:24:16 +0000 > > Eli Zaretskii writes: > > >> I am not sure if something like > >> > >> (let ((revert-without-query '("."))) > >> (with-current-buffer (find-file-noselect file) > >> ;; Do not crown the buffer list. > >> (unless (string-prefix-p " " (buffer-name)) > >> (setf (buffer-name) (concat " " (buffer-name)))) > >> (buffer-string))) > >> > >> is not going to cause significant slowdowns. > > > > Sorry, you lost me here: how is the above snippet relevant to what I > > proposed as an alternative implementation? > > The above snippet creates a buffer with image FILE, reverts it if > necessary (`find-file-noselect' should do it), and returns the image > data that is guaranteed to be up-to-date with the actual file. Then why do you think it will cause slowdowns? Especially if you call find-file-noselect with its 3rd argument non-nil, as I think you should anyway?