Arash Esbati writes: > Arne, we have a bug report for AUCTeX where I found that the function > `latexenc-find-file-coding-system' can't deal with `TeX-master' or > `tex-main-file' set to a constant string in the init file and not as > file local variable. I'm not really familiar with your code, but the > following small change is reported to fix the issue, at least for > AUCTeX: My apologies, my last proposal was broken, please consider the one attached. Best, Arash