[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13685: a way to say that dir-locals should only apply to buffers wit
From: |
Josh |
Subject: |
bug#13685: a way to say that dir-locals should only apply to buffers with files |
Date: |
Wed, 13 Feb 2013 09:18:05 -0800 |
On Wed, Feb 13, 2013 at 12:36 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Josh <josh@foxtail.org> 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.