[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
Re: [PATCH] cc-mode: don't tread dir-local and file-local variables differently
Mon, 01 Jun 2020 09:29:58 -0400
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
> The longer explanation is that if ‘c-file-style’ value comes from
> a file-local variable, the specified style is set with DONT-OVERRIDE
> equal nil. If the value comes from a directory-local variable, the
> style is set with DONT-OVERRIDE equal t. In former case any global
> customisation will be overridden; in the latter it won’t.
> I’ve mentioned hooks earlier because it doesn’t matter if the value is
> set via ‘setq-default’ in init.el, via customise or in one of cc-mode
> hooks. The end result is that a file-local ‘c-file-style’ will override
> it while directory-local won’t.
It's OK for hooks to override dir-local settings.
It's more problematic when global settings override dir-local settings.
|[Prev in Thread]
||[Next in Thread]|
- Re: [PATCH] cc-mode: don't tread dir-local and file-local variables differently,
Stefan Monnier <=