[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
From: |
Robert Pluim |
Subject: |
Re: Is it possible to ignore all variable except 'tab-width' in dir-locals-file or local-variables? |
Date: |
Fri, 25 Oct 2019 15:19:40 +0200 |
>>>>> On Wed, 23 Oct 2019 08:42:24 +0200, Michael Heerdegen
>>>>> <michael_heerdegen@web.de> said:
Michael> Zhang Haijun <ccsmile2008@outlook.com> 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
look
Michael> at the code. So it seems what you want is not possible by only
Michael> configuring an option, you would have to advice
Michael> `hack-local-variables-filter'.
Thereʼs also 'before-hack-local-variables-hook', which you could use
to munge 'file-local-variables-alist' before it gets applied.
Robert