GNU bug report logs - #78087
31.0.50; [FR] Add hook for reacting to buffer trust changes

Previous Next

Package: emacs;

Reported by: Eshel Yaron <me <at> eshelyaron.com>

Date: Sun, 27 Apr 2025 10:18:02 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Eshel Yaron <me <at> eshelyaron.com>
To: 78087 <at> debbugs.gnu.org
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#78087: 31.0.50; [FR] Add hook for reacting to buffer trust changes
Date: Sun, 27 Apr 2025 12:17:32 +0200
Hi,

It'd be great to have a hook executed when a buffer becomes (un)trusted.
For example, that'd allow us to enable a previously disabled
elisp-flymake-byte-compile when users mark a buffer as trusted.  WDYT?

(One way to do that, which I'm experimenting with in my Emacs branch, is
to hide trusted-content behind API functions that take care to run such
a hook for buffers that may be affected by changes to trust settings.)


Thanks,

Eshel




This bug report was last modified 107 days ago.

Previous Next


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