[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] minted.el: Parsing with `\newminted'
From: |
Tassilo Horn |
Subject: |
Re: [AUCTeX-devel] minted.el: Parsing with `\newminted' |
Date: |
Mon, 19 Jan 2015 08:56:51 +0100 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
Mosè Giordano <address@hidden> writes:
Hi Arash and Mosè,
>> 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 ;-)
I've already fixed the FIXME in the commit where I've introduced that
bug. ;-) I've removed it right now.
Bye,
Tassilo