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

From: Eli Zaretskii <[email-masked]>
Date: Wed, 14 May 2014 21:40:55 +0300

> From: Glenn Morris <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Wed, 14 May 2014 14:29:25 -0400
> 
> I'm sure it makes sense to the OP.

Sure.  And I'm sure some other user will argue that it makes sense to
apply _her_ favorite major mode to any and all buffers.

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

But major modes are not only for buffers visiting files.