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

From: Ted Zlatanov <[email-masked]>
Date: Thu, 21 Feb 2013 11:16:55 -0500

On Tue, 12 Feb 2013 19:24:19 -0800 Josh <[email-masked]> 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