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


Message #10 received at 13685 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Josh <josh <at> foxtail.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 13685 <at> debbugs.gnu.org
Subject: Re: bug#13685: a way to say that dir-locals should only apply to
	buffers with files
Date: Wed, 13 Feb 2013 09:36:03 +0100
Josh <josh <at> foxtail.org> writes:

> Likewise, (apply-if . (lambda (buffer) (not (buffer-file-name buffer))))

Be careful about execution of arbitrary code.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




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.