bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] Re: 2005-05-02; environment insertion on active region


From: David Kastrup
Subject: Re: [Bug-AUCTeX] Re: 2005-05-02; environment insertion on active region unpractical
Date: Wed, 04 May 2005 17:56:44 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * David Kastrup (2005-05-02) writes:
>
>> Marking an active region, then using C-c C-e will leave point and mark
>> set to useless values.  I think that perhaps the best idea would be to
>> place point behind the \begin{...} like when done without active
>> region, and mark before the \end{...} so that you can activate the
>> region again to add add a nested inner environment.
>
> IMO the position of point at the end of the enclosed region is okay
> because that's where you will most likely go on with editing.  It's
> placed there deliberately.  The position of mark admittedly is not
> so good.  This should be at the beginning of the enclosed region.

Well, the advantage of point after the \begin is that you can more
easily add environment arguments that AUCTeX did not happen to know
about.  This is pretty common.

I don't insist on that, but at least C-x C-x should jump between start
and end of environment after insertion of an environment around the
active region.  If point is at the end of the environment, putting the
mark right at the end of the \begin{...} line would help facilitating
adding environment arguments.  Although we don't have a similar help
available when doing a "normal" C-c C-e, which should not, I think,
change the mark or mark stack.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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