[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Feature request: LaTeX-environment behavior with acti
From: |
Erik Parmann |
Subject: |
Re: [AUCTeX-devel] Feature request: LaTeX-environment behavior with active region |
Date: |
Sun, 24 Jul 2011 16:30:37 +0200 |
On Sun, Jul 24, 2011 at 2:35 PM, Ralf Angeli <address@hidden> wrote:
> * Erik Parmann (2011-06-15) writes:
>
>> For me it seems to reasonable that when one evoke the function
>> "LaTeX-environment" (e.g with C-c C-e) with some region selected it
>> should but the environment delimiters (\begin.. and \end) at the
>> beginning and the end of the selected region. Currently it does
>> nothing if some region is selected.
>
> Sorry, but I don't understand the request. What exactly should happen
> if you type `C-c C-e' when the region is active?
>
> --
> Ralf
>
It should invoke the function LaTeX-environment, prompting you to
choose a environment. It should then put the start tag of that
environment (e.g \begin{theorem}) at the start of your marked area,
and the end tag at the end of the marked area.
The use case is as follows: I have written a paragraph, and it turns
out it should not be part of the main flow of text, but rather a
definition. I mark the paragraph, C-c C-e and select definition, and
then the paragraph gets the \begin{definition} ... \end{definition}
around it. Currently i need to either write the begin-end manually, or
do C-c C-e at the start of the paragraph, and then cut-paste the
\end{..} to the end of the paragraph.
-Erik