auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] manipulating sections with auc-tex


From: David Kastrup
Subject: Re: [AUCTeX] manipulating sections with auc-tex
Date: Wed, 17 Aug 2005 17:32:38 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * David Kastrup (2005-08-17) writes:
>
>> I am not sure what this is supposed to do.  "section" in this context
>> currently means everything from the previous to the next sectioning
>> command, right?
>
> That's the current behavior of `LaTeX-mark-section'.  What Matthieu
> was proposing is that "section" means everything from the previous to
> the next sectioning command with the same or a higher level.
>
>> So what is the proposal supposed to do when I have
>> something like
>>
>> chapter
>> section
>> subsection
>> _cursor_
>> subsection
>> section
>
> In both cases the marked region would be the one between the two
> lines shown below.
>
> chapter
> section
> -----------------
> subsection
> _cursor_
> -----------------
> subsection
> section
>
> The behavior would differ if you put point between the section and
> the subsection:
>
> Current behavior       Proposed behavior
>
> chapter                chapter
> -----------------      -----------------
> section                section
> _cursor_               _cursor_
> -----------------      subsection
> subsection             subsection
> subsection             -----------------
> section                section

How would the implementation do that?  Scan backwards until finding a
sectioning command (including one possibly on the current line), then
scan forward for the same hierarchy or shallower?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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