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: Ted Zlatanov <tzz <at> lifelogs.com>
To: Josh <josh <at> foxtail.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: Thu, 21 Feb 2013 11:16:55 -0500
On Tue, 12 Feb 2013 19:24:19 -0800 Josh <josh <at> foxtail.org> wrote: 

J> Or more generally, the cdr could specify a predicate taking a single
J> argument (the buffer), e.g.
J> (apply-if . buffer-file-name)
...

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

I like the idea, but why not structure it like a cond statement since
that's what you're doing anyway?

Ted




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.