|
From: | Glenn Morris |
Subject: | Re: [Emacs-diffs] scratch/allow-custom-load-paths-in-elisp-flymake 4ef9711: Allow custom load paths in elisp's byte-compilation Flymake |
Date: | Wed, 05 Dec 2018 15:00:00 -0500 |
User-agent: | Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
>> +(put 'elisp-flymake-byte-compile-load-path 'safe-local-variable >> + (lambda (x) (and (listp x) (catch 'tag >> + (dolist (path x t) (unless (stringp path) >> + (throw 'tag >> nil))))))) AFAICS the above tests whether the value is valid, not whether it is safe. This should probably be a risky-local-variable, like load-path is. The default "." seems actively dangerous, in much the same way as having "." in a shell's PATH is.
[Prev in Thread] | Current Thread | [Next in Thread] |