Hi Arash,

2015-01-09 19:21 GMT+01:00 Arash Esbati <esb...@gmx.de>:
> 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è

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

Reply via email to