bug#21512: filecontents

2015-09-18 Thread Mosè Giordano
Hi Jim

2015-09-18 14:23 GMT+02:00 Hefferon, James S. :
>
> Hello,
>
> Thank you for AUCTeX.  I use it every day.
>
> When I am inside a .tex file, in the preamble but after the \documentclass, 
> and I do a control-C control-E followed by "filecontents" I get a message in 
> the minibuffer to "Put filecontents before \documentclass".
>
> That warning is based on incorrect documentation of the filecontents command; 
> in fact that command can go anywhere in the preamble.

Which version of AUCTeX are you using?  This should have already been
fixed with commit

* cad437e (2013-01-29)  * latex.el (LaTeX-env-contents): Replaced
regular expression with

(http://git.savannah.gnu.org/gitweb/?p=auctex.git;a=commitdiff;h=cad437eec728058261951f28cd779c2d4f2eb3b7)
which went into AUCTeX 11.88.

Bye,
Mosè



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


bug#21512: filecontents

2015-09-18 Thread Hefferon, James S.

Hello,

Thank you for AUCTeX.  I use it every day.

When I am inside a .tex file, in the preamble but after the \documentclass, and 
I do a control-C control-E followed by "filecontents" I get a message in the 
minibuffer to "Put filecontents before \documentclass".

That warning is based on incorrect documentation of the filecontents command; 
in fact that command can go anywhere in the preamble.

Regards,
Jim Hefferon

--
`Does not the Captain seek your advice, sir?'
`Not always,' said Stephen.



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


bug#21512: filecontents

2015-09-18 Thread Tassilo Horn
"Hefferon, James S."  writes:

Hi James,

> Thank you for AUCTeX.  I use it every day.

You're welcome!

> When I am inside a .tex file, in the preamble but after the
> \documentclass, and I do a control-C control-E followed by
> "filecontents" I get a message in the minibuffer to "Put filecontents
> before \documentclass".
>
> That warning is based on incorrect documentation of the filecontents
> command; in fact that command can go anywhere in the preamble.

That must be an old version of AUCTeX.  The current version, 11.88.8,
just warns when you use it after the \begin{document}, i.e., after the
preamble.

Well, and if you use the filecontents package which provides a similar
environment without even the preamble-restriction, AUCTeX won't issue
any warning at all.

So I'm closing this issue.

Bye,
Tassilo



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