auctex-devel
[Top][All Lists]

## Re: [AUCTeX-devel] Updating minted.el

 From: Arash Esbati Subject: Re: [AUCTeX-devel] Updating minted.el Date: Thu, 22 Dec 2016 15:34:08 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1

Hi Tassilo,

>
>> 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