* David Kastrup (2005-10-14) writes:

> Well, I have just written the following patch, and it is butt-ugly.
> Anybody with a better proposal?  One thing to note is that it does not
> make sense to insert an empty line after the reopening \begin{...}.
> This should rather be done where point ends up.

There is a problem when using it inside of itemize environments.  When
you have

\begin{itemize}
\item foo
-!-\end{itemize}

where -!- depicts point and type `C-u C-c ]', you end up with

\begin{itemize}
\item foo
\end{itemize}
\begin{itemize}
\item \end{itemize}

If you use

        (delete-region (point) (if (save-excursion (goto-char marker)
                                                   (bolp))
                                   (1- marker) marker))

instead of

> --- latex.el  13 Oct 2005 00:56:32 +0200      5.387
> +++ latex.el  14 Oct 2005 04:55:52 +0200      
> @@ -572,9 +572,10 @@
[...]
> +     (delete-region (point) marker)

it works better.

> On a different tack, when doing C-c C-e to insert a macrocode
> environment, I end up with
>
> %    \begin{macrocode}
> % <-cursor
> %    \end{macrocode}

I cannot reprocude this.  Are you sure you are using an up-to-date
version?

-- 
Ralf


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

Reply via email to