[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to ignore all variable except 'tab-width' in dir-loca
Re: Is it possible to ignore all variable except 'tab-width' in dir-locals-file or local-variables?
Fri, 25 Oct 2019 15:19:40 +0200
>>>>> On Wed, 23 Oct 2019 08:42:24 +0200, Michael Heerdegen <address@hidden>
Michael> Zhang Haijun <address@hidden> writes:
>> Is there a custom variable like ‘user-safe-local-variables’ which can
>> be set to ‘(tab-width) to control this?
Michael> Looks there is only an `ignored-local-variables' user option. The
Michael> filtering is done in `hack-local-variables-filter' if you want to
Michael> at the code. So it seems what you want is not possible by only
Michael> configuring an option, you would have to advice
Thereʼs also 'before-hack-local-variables-hook', which you could use
to munge 'file-local-variables-alist' before it gets applied.