GNU bug report logs - #13685
a way to say that dir-locals should only apply to buffers with files

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Mon, 11 Feb 2013 01:55:02 UTC

Severity: minor

Merged with 17489

Found in version 24.3

Full log


View this message in rfc822 format

From: Josh <josh <at> foxtail.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 13685 <at> debbugs.gnu.org
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 <at> linux-m68k.org> wrote:
> Josh <josh <at> 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.




This bug report was last modified 3 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.