Re: [AUCTeX-devel] Updating minted.el

2016-12-22 Thread Arash Esbati
Hi Tassilo,

Tassilo Horn  writes:

> Arash Esbati  writes:
>>
>> 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'.
>
> Just a nitpick, I think
>
>   ("style" ,(LaTeX-minted-style-list))
>
> is slightly more readable (and completely equivalent).

Of course.  Thanks.

>> 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.
>
> I can't reproduce that with neither the current Emacs master branch nor
> Emacs 25.1 (starting them with -Q) and the current AUCTeX master.  For
> me, the window where Emacs asks if the file-local variable should be
> applied is buried after I give my response.

Then it is an issue with my init file.  I will investigate and will come
back.

> But you say the "frame" is not killed.  Do we talk about the same
> thing?

Yes, we do.  My wording above was not so accurate as yours :-)

Best, Arash

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] Updating minted.el

2016-12-22 Thread Tassilo Horn
Arash Esbati  writes:

Hi Arash,

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

Just a nitpick, I think

  ("style" ,(LaTeX-minted-style-list))

is slightly more readable (and completely equivalent).

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

I can't reproduce that with neither the current Emacs master branch nor
Emacs 25.1 (starting them with -Q) and the current AUCTeX master.  For
me, the window where Emacs asks if the file-local variable should be
applied is buried after I give my response.

But you say the "frame" is not killed.  Do we talk about the same thing?
A frame in Emacs is what everyone else calls a window (i.e., an X11
window with a title bar), and a window in Emacs is what most people
would call a pane.

Bye,
Tassilo

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] Updating minted.el

2016-12-22 Thread Arash Esbati
Arash Esbati  writes:

> Thanks.  My original approach is attached as myminted.el.

Sorry, file was missing.



myminted.el
Description: application/emacs-lisp
___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] Updating minted.el

2016-12-22 Thread Arash Esbati
Hi Tassilo,

Tassilo Horn  writes:

> Arash Esbati  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
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel