auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Adjusting filecontents env to new LaTeX


From: Arash Esbati
Subject: Re: [AUCTeX-devel] Adjusting filecontents env to new LaTeX
Date: Fri, 18 Oct 2019 23:41:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50

Hi Keita and Jean-Fran├žois,

Ikumi Keita <address@hidden> writes:

>>>>>> Arash Esbati <address@hidden> writes:
>> newest LaTeX has a change to filecontents environment:
>
>>     The filecontents environment now supports an optional argument in
>>     which you can specify that it is allowed to overwrite an already
>>     existing file; by default nothing is written if a file with the
>>     given name exists anywhere in the search tree. ...  Another change
>>     is that this environment is now allowed anywhere in the document,
>>     which means it provides everything (and more) of what the now
>>     obsolete filecontents package provided.
>
>> This means a change to `LaTeX-env-contents which can look like this:
>
> This hunk raised error when I actually apply it to patch command, so I
> applied it manually.  The new function works just fine.

Thanks for testing and sorry for the inconvenience.  I probably had some
finger trouble and deleted something by accident after yanking.

>> One last thing to clarify is how do we like to handle the content in the
>> environment?  I don't like to indent the content, so we could add
>> `filecontents' and `filecontents*' to `LaTeX-verbatim-environments'
>> which will also kill filling.  Other way is to add them to
>> `LaTeX-document-regexp' which would allow filling.
>
> I think filecontents(*) environments are cousins of verbatim env, so
> AUCTeX should not indent automatically in them.

Ok, I pushed a change to AUCTeX repo acc. to this.

Best, Arash



reply via email to

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