[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: Thu, 11 Aug 2011 00:57:47 +0200

On Wed, Aug 10, 2011 at 11:39 PM, Ralf Angeli <address@hidden> wrote:
> * Erik Parmann (2011-07-24) writes:
>> 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?
>> 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.
> In my case it does exactly that.
> Which versions of AUCTeX and Emacs are you using?  Are you sure that
> `C-c C-e' actually calls the original `LaTeX-environment' function
> coming with AUCTeX?  `C-h k C-c C-e' might help you to determine that.
> --
> Ralf

Thanks, I now found the cause, cua-mode. Running "LaTeX-environment"
through M-x does as I want, but using the shortcut does not. But
de-activating cua-mode makes it work as expected. So I am probably to
slow when doing C-c C-e, so cua-mode captures the C-c as copy-region.
For future reference; changing the variable
"cua-prefix-override-inhibit-delay" makes cua wait longer before it
caputres the C-c.


reply via email to

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