Subject: bug#8586: 23.3.50; Directory-local variable ignored when file-local variables set mode

From: Glenn Morris <[email-masked]>
Date: Mon, 02 May 2011 20:45:11 -0400

Reuben Thomas wrote:

> The bug here is that the .dir-locals.el settings should be applied in
> both cases AFAICS, but they are only applied in one, and ignored in the
> other (even when the mode matches exactly!). Apparently, it is something
> to do with the mode being set at a late stage.

I imagine this is an unintended version of this:

57.3.4.1 Specifying File Variables
[...]
    If `mode' is used to set a major mode, it should be the first
    "variable" in the list.  Otherwise, the entries that precede it will
    usually have no effect, since most major modes kill all local variables
    as part of their initialization.