emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master e8488bcc9c: Avoid having font locking triggering unnecessary


From: Stefan Monnier
Subject: Re: master e8488bcc9c: Avoid having font locking triggering unnecessary auto-saving
Date: Mon, 09 May 2022 09:22:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen [2022-05-09 14:37:00] wrote:
> Hm, this had one unintended consequence, apparently -- in a mode I have
> that inserts image thumbnails (using with-silent-modifications when
> slapping a 'display property over some text), the buffer wasn't updated
> afterwards...  So perhaps this needs a rethink, or (at least)
> documentation.

I'm not completely surprised, to be honest.  The handling of MODIFFs is
surprisingly delicate.  Take a look at the code for
`Frestore_buffer_modified_p` to get an idea.  Setting MODIFF back to
a previous value is something I would not recommend.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]