Re: [Vim-latex-devel] Feature request: find current environment
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2004-03-15 18:02:40
|
On Mon, 15 Mar 2004, Alan Schmitt wrote: > It would be very useful to be able to know what the current environment > is, for instance to insert a closing tag, or to have a more precise > behavior of the Tex_InsertItem() function (right now it guesses the > environment according to the "begin" that occurs before, but it might > guess wrong: > > \begin{itemize} > \item ... > \item ... > \begin{description} > \item[Static] ... > \item[Dynamic] ... > \end{description} > % HERE it thinks it is in a description, and alt-i insert the > % wrong \item > \end{itemize} > ) > Yes. This sounds like how Tex_InsertItem should be behaving. The solution you propose sounds excellent. I don't think there should be any problems changing Tex_InsertItem to behave as you describe. I'll make the change soon. I remember from some time back Mikolaj and I had a bit of a discussion about changing Tex_InsertItem and he had some reservations about changing it to anything more complex than the present scheme... Mikolaj: does Alan's scheme sound good? Srinath |