auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Usability of docTeX-mode


From: David Kastrup
Subject: Re: [AUCTeX-devel] Usability of docTeX-mode
Date: Sat, 15 Jul 2006 11:01:42 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * David Kastrup (2006-07-15) writes:
>
>> Ralf Angeli <address@hidden> 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




reply via email to

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