GNU bug report logs - #78939
30.1.90; wishlist: separate storage location for safe-local-variable data

Previous Next

Package: emacs;

Reported by: Christopher Howard <christopher <at> librehacker.com>

Date: Tue, 1 Jul 2025 22:41:05 UTC

Severity: wishlist

Found in version 30.1.90

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Christopher Howard <christopher <at> librehacker.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>, Andrea Corallo <acorallo <at> gnu.org>, Stefan Kangas <stefankangas <at> gmail.com>
Cc: 78939 <at> debbugs.gnu.org
Subject: bug#78939: 30.1.90; wishlist: separate storage location for safe-local-variable data
Date: Wed, 02 Jul 2025 14:41:41 +0300
> From: Christopher Howard <christopher <at> librehacker.com>
> Date: Tue, 01 Jul 2025 14:39:50 -0800
> 
> 
> 
> Emacs has a sophisticated system for managing safe evaluation of file and directory local variables, as documented in 51.2.4.2 Safety of File Variables, which I appreciate. However, something that I find bothersome is that the permanently recorded data for safe and unsafe values is stored in the custom-set-variables code, which is stored in the init file or another file of your choice. This creates a quandary for me because I like to use the customization system, but I don't want my customized settings to change often or to be highly system or project specific. Using the safety system in a routine manner results in the custom-set-variables code (which I keep in the init file) being filled with pages and pages of (mostly safe) values, which feels awkward.
> 
> In my mind, these safe and unsafe values are more like cached data which should be kept in a separate file, which I don't need to look at ever. As a wishlist item, could a facility be integrated which allows such data to be stored in a completely separate file?

I don't have an opinion on this, but maybe others (CC'ed) do.

In any case, if this is implemented as  an opt-in feature, I don't see
why we would object to have it.




This bug report was last modified 78 days ago.

Previous Next


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