History of 2026-06-22 Disabling minor modes with local variables

2026-06-22
17:19 UTC Revision 1 . . . . mborkI’ve known about file local variables for a long time. I also knew about the eval keyword, which can be used as a file variable, but instead of binding the given value to the (non-existent) variable eval, Emacs evaluates it. This is often useful, but the usefulness is diminished by the fact that Emacs nags the user whether it is safe to evaluate a form provided that way. (Of course, it is reasonable security-wise, and that’s why I didn’t set enable-local-variables to :all – I still prefer the nagging to the risk of executing untrusted code!) There is, however, one case where the eval form seems safe and useful enough to grant an exception: enabling or disabling minor modes.