On Tue, Apr 06 2021, David Denton wrote: > Yes, it was from the buffer of an included .tex file.
Then for some reason, your local variable block isn't read when you open the file, because both variables should have buffer-local values. What is the value of the variables `enable-local-variables`, `local-enable-local-variables`, `inhibit-local-variables-regexps` and `before-hack-local-variables-hook`? What is the value of `TeX-master` and `file-local-variables-alist` after you do `M-: (hack-local-variables 'no-mode) RET`? On my Emacs (27.1), with the latest AucTeX (13.0.6), your MWE works without problems. > On 2021-04-06 4:59 a.m., Joost Kremers wrote: >> On Mon, Apr 05 2021, David Denton wrote: >>> These are the values I get. >>> >>> TeX-master is a buffer-local variable defined in tex.el. >>> Global Value >>> t >>> >>> file-local-variables-alist is a buffer-local variable without a source >>> file. >>> Global Value >>> nil >> Have you done this from a buffer visiting one of your included .tex source >> files? Because those variables should have buffer-local bindings. >> -- Joost Kremers Life has its moments
