I have the following local variables defined in a XeTeX file. As you can see, the input method is currently set to Devanagari. This is inconvenient when I want to type Roman letters. I'd like a way to disable that particular setting so I can then type Roman letters, and then re-enable it. I realise I can change the setting in Emacs, but it would be convenient if I could do so by commenting and uncommenting the file.
%%% Local Variables:
%%% coding: utf-8
%%% mode: latex
%%% eval: (set-input-method 'devanagari-itrans)
%%% TeX-engine: xetex
%%% TeX-master: t
%%% End:
The question How comment out a variable line in a local variable list is related, but doesn't have an answer.
EDIT: I see that the question has been closed as a dupe of this question. I think the the two options provided in the question as at best workarounds. The first one doesn't even attempt to answer the question. The answer even says:
I'm reasonably sure that you can't.
I was hoping there were some other options, at least for my use case - which isn't exactly the same as the other question.