Subject: bug#54405: 27.1; How to reset connection-local variable

From: Michael Albinus <[email-masked]>
Date: Sat, 19 Mar 2022 18:57:18 +0100

Drew Adams <[email-masked]> writes:

Hi Drew,

> E.g., do we say that a var that's local in more
> than one of these ways might be problematic ("there
> might be conflicts")?  Should the doc say clearly
> what happens (e.g., what determines the order or
> priority)?

It is documented that in case a variable has both file-local and
directory-local settings, the file-local value will be used. See
(info "(emacs)Directory Variables") (at the bottom).

Otherwise, it is kind of undetermined, I believe. Every package (author)
is free to call `hack-local-variables', `hack-dir-local-variables' or
`hack-connection-local-variables' in any order.

Best regards, Michael.