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: Eli Zaretskii <eliz <at> gnu.org>
To: Eshel Yaron <me <at> eshelyaron.com>
Cc: monnier <at> iro.umontreal.ca, 78087 <at> debbugs.gnu.org
Subject: bug#78087: 31.0.50; [FR] Add hook for reacting to buffer trust changes
Date: Sun, 27 Apr 2025 14:03:04 +0300
> Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Date: Sun, 27 Apr 2025 12:17:32 +0200
> From:  Eshel Yaron via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> 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?

You should be able to use variable-watcher for that, I think.  The
function invoked when the value changes could then call the hook, if
the conditions for that are satisfied.





This bug report was last modified 105 days ago.

Previous Next


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