[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Reopening environments.
From: |
David Kastrup |
Subject: |
Re: [AUCTeX-devel] Reopening environments. |
Date: |
Fri, 14 Oct 2005 11:28:13 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Ralf Angeli <address@hidden> writes:
> * 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))
Well, talk about making butt-ugly even uglier.
> 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?
Yes. They key is that you get this when starting with
%<-cursor
instead of
<-cursor
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- [AUCTeX-devel] Reopening environments., David Kastrup, 2005/10/13
- Re: [AUCTeX-devel] Reopening environments., Ralf Angeli, 2005/10/14
- Re: [AUCTeX-devel] Reopening environments.,
David Kastrup <=
- Re: [AUCTeX-devel] Reopening environments., Ralf Angeli, 2005/10/14
- Re: [AUCTeX-devel] Reopening environments., David Kastrup, 2005/10/14
- Re: [AUCTeX-devel] Reopening environments., Ralf Angeli, 2005/10/14
- Re: [AUCTeX-devel] Reopening environments., David Kastrup, 2005/10/14
- Re: [AUCTeX-devel] Reopening environments., Ralf Angeli, 2005/10/14
- Re: [AUCTeX-devel] Reopening environments., David Kastrup, 2005/10/14
- Re: [AUCTeX-devel] Reopening environments., Ralf Angeli, 2005/10/14
- Re: [AUCTeX-devel] Reopening environments., David Kastrup, 2005/10/14
- Re: [AUCTeX-devel] Reopening environments., Ralf Angeli, 2005/10/14
- Re: [AUCTeX-devel] Reopening environments., David Kastrup, 2005/10/14