Ihor Radchenko <yanta...@posteo.net> writes: > We might add the code into a separate proper python file. Then, we can > use the contents of that file to retrieve the variable value. > > We already do the same thing for CSL style files and odt schema/style.
Thanks, I think this is a good idea, and will make the python code easier to maintain. And thanks also for the pointer to oc-csl and ox-odt -- I think I should be able to implement this by following their example. It seems like there will be an extra logistical step, to make sure the extra python file is added to emacs as well. I'm not familiar with the details of how we sync Org into Emacs, but will start to look into it. In the meantime, I'm thinking to squash and apply my patch as is. Then afterwards, I can start working on a followup patch to move some Python code into a separate file (and coordinate with emacs-devel if necessary).