emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] cc-mode: don't tread dir-local and file-local variables diff


From: Stefan Monnier
Subject: Re: [PATCH] cc-mode: don't tread dir-local and file-local variables differently
Date: Wed, 27 May 2020 22:21:43 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> IIUC your example shows a different interaction between a global
>> setting and file-vs-dir setting.  FWIW, I do find it surprising that
>> file-local would be treated differently from dir-local when faced with
>> a global setting.
>
> They are treated consistently - where there are conflicting sources for a
> particular parameter, that of the highest priority takes precedence.

Maybe I misunderstood the example, but from the description I read there
are 2 cases: one has "global + file-local" and the other has "global + 
dir-local".
So it seems those two cases should give the same result since the priority
ordering for "global vs file-local" is the same as that for "global vs 
dir-local".

Yet IIUC those two cases give different results, which would seem to
imply that somewhere "global" takes precedence over either "file-local"
or "dir-local", which I think would be wrong.

I don't have the time to reproduce it, let alone dig into it any
further, and in any case I'm sure you already know what I'm writing, so
I'll just presume there's either a misunderstanding on my side or on the
side of the OP.


        Stefan




reply via email to

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