Re: master a03ddc00b0a: Mark 'elisp-fontify-semantically' and 'elisp-add-help-echo' as :safe

Antonio Romano <[email protected]>
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
Stefan Monnier <[email protected]> writes:

>>     Mark 'elisp-fontify-semantically' and 'elisp-add-help-echo' as :safe
>>     
>>     * lisp/progmodes/elisp-mode.el (elisp-fontify-semantically)
>>     (elisp-add-help-echo): Mark as safe file-local variables
>>     (bug#81723).
>
> I don't object, but I'm wondering how/where this came up: AFAICT these
> are user-specific rather file-dir specific, so putting them in
> `.dir-locals.el` or in the file-local settings is usually the wrong
> thing to do (imposing your preferences on other readers of those files,
> and failing to benefit yourself from those settings in other ELisp
> files).

Directory local variable does not always mean that it is imposed to other
users: there's `.dir-locals-2.el` which can be used for private
project-related settings. (As stated in "(emacs)Directory Variables").

Also, directory-local variables could be fetched in methods that are
different from the standard `.dir-locals.el` by tweaking the
`hack-dir-local-get-variables-functions` variable, so there could
certainly be other ways to set this variable locally without getting in the way of
those that are supposed to be shared in a repository.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.