bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Ted Zlatanov
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
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

On Tue, 12 Feb 2013 19:24:19 -0800 Josh <josh@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]