[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 9ac6ff5: Make the test for auto-mode-alist from .dir-local.el
Re: master 9ac6ff5: Make the test for auto-mode-alist from .dir-local.el stricter
Sat, 24 Jul 2021 12:42:17 -0400
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Lars Ingebrigtsen [2021-07-24 17:46:13] wrote:
> Stefan Monnier <email@example.com> writes:
>>> This may be too strict... on the other hand, perhaps the check should
>>> be even stricter -- perhaps a whitelist of allowed modes? (Perhaps (by
>>> default) populated from `auto-mode-alist'.)
>> Could you clarify what is the purpose of this test?
>> AFAICT the test that "corresponds" to what we do for file-local
>> variables is just to check the `-mode` suffix (since we accept any
>> `mode:foo` and call `foo-mode`).
> Emacs queries you about stuff like "mode: tex-mode", though -- the
To do the same as an auto-mode-alist of (BLA . tex-mode) you'd put
[ rather than `mode : tex-mode`. ]
When would such a thing query the user before calling `tex-mode`?