GNU bug report logs - #78221
31.0.50; Improving *-change-functions notifications

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Fri, 2 May 2025 21:49:02 UTC

Severity: normal

Found in version 31.0.50

Full log


Message #95 received at 78221 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: 78221 <at> debbugs.gnu.org, Alan Mackenzie <acm <at> muc.de>
Subject: Re: bug#78221: 31.0.50; Improving *-change-functions notifications
Date: Sun, 04 May 2025 23:09:30 -0400
>>> - org-display-custom-time
>> AFAICT this is called exclusively from font-lock, so
>> `inhibit-modifications-hooks` should always be set already.
> I was close. `org-toggle-timestamp-overlays' (just above).

I see.  I think this one would definitely benefit from a bit of
`with-silent-modifications` (currently, I suspect that a sequence like
open a file + call `org-toggle-timestamp-overlays` + call `undo` can
result in the `buffer-modified-p` flag being unwittingly set, and maybe
also the timestamp "overlays" may have reappeared).

Then again, I suspect this code needs to be moved to
`org-remove-font-lock-display-properties` anyway, otherwise the
`display` property might "stick" even after the user modifies the text
into something that's not a timestamp any more.


        Stefan





This bug report was last modified 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.