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 16:25:56 +0200 Message-ID: <834jtwlp57.fsf@gnu.org> References: <87zgby87rm.fsf@localhost> <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> <83edt1kkm3.fsf@gnu.org> <871qp1uee8.fsf@localhost> <83bko5kk6d.fsf@gnu.org> <87y1r9sz8r.fsf@localhost> <83a63olxxb.fsf@gnu.org> <87tu1wud4e.fsf@localhost> <838rj8lscm.fsf@gnu.org> <87fsdgu7f5.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37606"; 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 15:27:20 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 1p5pCh-0009dj-8f for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 15:27:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5pCR-0003HB-IM; Thu, 15 Dec 2022 09:27: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 1p5pCQ-0003H3-QQ for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 09:27: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 1p5pCQ-0006yg-IQ for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 09:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5pCQ-0006ky-Dd for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 09:27: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: Thu, 15 Dec 2022 14:27: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.167111436525954 (code B ref 59902); Thu, 15 Dec 2022 14:27:02 +0000 Original-Received: (at 59902) by debbugs.gnu.org; 15 Dec 2022 14:26:05 +0000 Original-Received: from localhost ([127.0.0.1]:43067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5pBV-0006kY-61 for submit@debbugs.gnu.org; Thu, 15 Dec 2022 09:26:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5pBT-0006kJ-3y for 59902@debbugs.gnu.org; Thu, 15 Dec 2022 09:26:03 -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 1p5pBN-0006p1-NL; Thu, 15 Dec 2022 09:25:57 -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=ER7W2MkPmZL99VP71UeBvDbtR6XtxwfoHLujEBChGzs=; b=hef4JyJI9ZH2 uYhKi5L+F7Ht7rksZ7iZDDvY930ZTGt0owMKGoyxXCsKnCsD/pekIvmoMUZv+1Fgp4e/hssLjHuQz K7w8WSxDzMxBnYo7kDkspDKFoUBSzalZk8m7XaIH3q7Eym7glTyAj/4vFBLZXVBb1ePLB9n9orlMD Y87vbBlEPPaR+qOGOd2DxJqHNqcjLuiERMJ3c4H/ZZ58ZhXNphJpqVHckhyw9fnzSxDbrPrF1eeo4 wF1xXhLKQG6jaoKf62QszX+BUkLseto0i1nHobfV3leCoRRGjB5Slti49r3O5GC5TJ7djrw+XST2V ytqupMC0fLYM/sYymZegpw==; 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 1p5pBM-0005iT-E4; Thu, 15 Dec 2022 09:25:57 -0500 In-Reply-To: <87fsdgu7f5.fsf@localhost> (message from Ihor Radchenko on Thu, 15 Dec 2022 13:23:58 +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:251098 Archived-At: > From: Ihor Radchenko > Cc: 59902@debbugs.gnu.org > Date: Thu, 15 Dec 2022 13:23:58 +0000 > > Eli Zaretskii writes: > > >> > You can let-bind them to nil around that snippet, mo? > >> > >> I only know these hooks from reading the code. > >> How can I make sure that let-binding will reliably work in future Emacs > >> versions? > > > > I don't think I understand the question. Do you mean we could > > possibly remove these hooks in future versions? If not, what do you > > mean by "reliably"? > > I am mostly afraid about adding new similar hooks in future. I am not > even sure if my list of executed hooks is complete. If and when we'll add new hooks and they prove to be an issue in this context (i.e. will slow down display of images), they should be added to those disabled. > Practically, I'd prefer Emacs to provide a macro or extra argument that > binds all the necessary hooks when opening a file buffer. Maybe, > something similar to `delay-mode-hooks'. I don't think this is possible in practice, since only the application can know which hooks are or aren't needed.