Bojan Nikolic <b.nikolic at mrao.cam.ac.uk> writes:
> Dear All,
>
> I've been using the emaxima-mode for quite a while but with an
> inconvenience in actually running LaTeX on the file: the command
> TeX-command-master (bound to C-c C-c by default) does not offer LaTeX as
> a possible command to run in an emaxima-mode buffer. (I use
> auctex-11.86).
>
> A simple-minded way to fix this problem is to run the following code at
> an appropriate time:
>
> ,----
> | ;; Add emaxima-mode to list of modes which can be LaTeX'd
> | (setcar (cdr TeX-command-list)
> | '("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode emaxima-mode)
> | :help "Run LaTeX") )
> `----
>
> This now works for me but it is not a proper long-term solution as it
> does not interact well with eventual other modifications of
> TeX-command-list. A better implementation would process TeX-command-list
> and add emaxima-mode to the fourth sub-element of the element starting
> with "LaTeX".
>
> Just wanted to share this simple-minded solution and see if:
>
> - Anybody has worked around this / fixed this problem in some other way
>
> - If not, if somebody has the time to tidy-up this solution and
> incorporate it into the source-code repository.
>
> Best,
> Bojan
It seems to me that AUCTeX mode should provide a means to
modify/overwrite existing entries in TeX-command-list, and for other
modes to hook into this. "Fixing" this problem in emaxima-mode seems
wrong-headed.
--
Leo Butler <l_butler at users.sourceforge.net>
SDF Public Access UNIX System - http://sdf.lonestar.org