Subject: bug#13685: a way to say that dir-locals should only apply to buffers with files

From: Josh <[email-masked]>
Date: Wed, 13 Feb 2013 09:18:05 -0800

On Wed, Feb 13, 2013 at 12:36 AM, Andreas Schwab <[email-masked]> wrote:
> Josh <[email-masked]> writes:
>
>> Likewise, (apply-if . (lambda (buffer) (not (buffer-file-name buffer))))
>
> Be careful about execution of arbitrary code.
>
> Andreas.

Indeed, such a feature should be governed by `enable-local-eval' and
`safe-local-eval-forms' or similar, with `buffer-file-name' being an
element of the latter by default.