Hi Tassilo, Tassilo Horn <[email protected]> writes:
> Arash Esbati <[email protected]> writes: > >> It can be cured easily be setting the variable >> `LaTeX-minted-language-list' at the of the first run. > > That has been my intent. Thanks for your response. I've just pushed an update to git. >> I've also added a similar function `LaTeX-minted-style-list' for the >> styles, but found another anomaly (see FIXME comment in >> `LaTeX-minted-key-val-options'). > > Hm, the anomaly sounds strange. Anyhow, your patch looks very good, so > feel free to commit it as is. I'll try to reproduce that issue then an > see if there can be something done. Thanks. My original approach is attached as myminted.el. The only difference is the re-arrangement at the beginning of the file and the ,(list "style" (LaTeX-minted-style-list)) line in `LaTeX-minted-key-val-options'. Here a small .tex file for testing. When I restart Emacs and open this file, Emacs asks if I want to apply TeX-command-extra-options: "-shell-escape" and then does not kill the frame. This happens only on the first run, after that, it works as expected. --8<---------------cut here---------------start------------->8--- \documentclass{article} \usepackage{myminted} \begin{document} \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% TeX-command-extra-options: "-shell-escape" %%% End: --8<---------------cut here---------------end--------------->8--- Best, Arash _______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
