Subject: bug#17489: 24.3; Major mode spec in .dir-locals.el breaks dired

From: Glenn Morris <[email-masked]>
Date: Wed, 14 May 2014 14:29:25 -0400

Eli Zaretskii wrote:

>> From: Glenn Morris <[email-masked]>
>> Date: Wed, 14 May 2014 13:38:20 -0400
>> Cc: [email-masked]
>> 
>> Although we could probably treat this specific example specially, and
>> just say that it never (?) makes sense for a dir-local `mode' to apply to
>> non-file buffers.
>
> Arguably, it makes no sense to apply the same fixed mode to all the
> files in a directory, either.

I'm sure it makes sense to the OP.

Dired buffers have buffer-file-name = nil so IMO can quite reasonably be
viewed as not visiting files.