auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] minted.el: Parsing with `\newminted'


From: Mosè Giordano
Subject: Re: [AUCTeX-devel] minted.el: Parsing with `\newminted'
Date: Sun, 11 Jan 2015 17:11:45 +0100

Hi Arash,

2015-01-09 19:21 GMT+01:00 Arash Esbati <address@hidden>:
> Hi,
>
> I copied this from minted doc in a file:
>
> \usepackage{minted}
> \newminted{cpp}{gobble=2,linenos}
>
> After `C-u C-c C-n C-c C-e', AUCTeX offers `cpp' and `cpp*' for
> completion.  My expectation was `cppcode' and `cppcode*'.  The
> one-liner below fixes this.
>
> diff --git a/style/minted.el b/style/minted.el
> index 83d4764..3c768e2 100644
> --- a/style/minted.el
> +++ b/style/minted.el
> @@ -138,7 +138,7 @@
>    (dolist (name-lang LaTeX-minted-auto-newminted)
>      (let* ((env (if (> (length (car name-lang)) 0)
>                     (car name-lang)
> -                 (cadr name-lang)))
> +                 (concat (cadr name-lang) "code")))
>            (env* (concat env "*")))
>        (add-to-list 'LaTeX-auto-environment (list env))
>        (add-to-list 'LaTeX-auto-environment

I tested this change and it indeed fixes the bug you reported, but
have you seen the FIXME at line 106?  Do you think you can address it
as well?  If not, I'll apply the above patch anyway ;-)

Bye,
Mosè



reply via email to

[Prev in Thread] Current Thread [Next in Thread]