[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
From: |
Lars Ingebrigtsen |
Subject: |
Re: master 9ac6ff5: Make the test for auto-mode-alist from .dir-local.el stricter |
Date: |
Sat, 24 Jul 2021 18:53:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 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
>
> mode: tex
>
> [ rather than `mode : tex-mode`. ]
D'oh.
> When would such a thing query the user before calling `tex-mode`?
No, it doesn't.
Well, perhaps the extra checks should be removed, then.
It's a bit more "spooky action at a distance", though -- if you visit
"/home/foo/bar/zot.baz", and there's a "/home/foo/.dir-locals.el" file,
it'll get the mode stuff applied.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no