Ralf Angeli <[EMAIL PROTECTED]> writes:

> * David Kastrup (2006-07-15) writes:
>
>> Ralf Angeli <[EMAIL PROTECTED]> writes:
>>
>>> It would probably suffice to add "macrocode" to
>>> `LaTeX-indent-environment-list'.
>>
>> It doesn't.  C-u C-x C-x C-c C-e macro RET \somename RET still
>> reformats the contents of contained macrocode environments.
>
> Ugh, that's a challenge.  Filling does not see the macrocode
> environment when it advances chunk by chunk through the region to be
> filled because the content of the macrocode environment is not
> prefixed with a comment starter.  `LaTeX-current-environment', which
> is used here for determining the current environment, separates
> regions which are prefixed and regions which are not.  If you call it
> in a prefixed region it will only check other parts of the file which
> are prefixed and vice versa.  That's deliberate.  I'm not sure if we
> should make an exception to this rule for docTeX mode and macrocode
> environments or if there is a better way of fixing this.

I think that when filling regions, we should only touch those lines
with the same comment prefix as the command we started it on.  Yes,
this means that you might have to fill a region two times in a
different way if you indeed want all overfull lines to be catered for.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to