[Top][All Lists]
[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: |
Tue, 23 Aug 2005 13:42:30 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Ralf Angeli <address@hidden> writes:
> * Matthieu Moy (2005-08-22) writes:
>
>> I've started adapting my code to include it in latex.el. The patch
>> follows for info.
>
> Oh, that's quite a lot of stuff.
>
>> However, I wonder if a simple
>>
>> (defun LaTeX-mark-section (point)
>> "Select entire section (and subsections) in a LaTeX document."
>> (interactive "d")
>> (goto-char point)
>> (outline-mark-subtree)
>> (TeX-activate-region))
>>
>> Wouldn't be sufficient.
>
> Welcome to the wonderful world of cross-Emacs development.
>
> For GNU Emacs it would suffice (modulo explicitely making the mark
> active in case of Transient Mark mode), but XEmacs does not provide
> `outline-mark-subtree'. outline.el in XEmacs basically hasn't changed
> for over seven years.
>
> As I am attracted to the solution with `outline-mark-subtree' because
> of its simplicity, I'd use it despite XEmacs not providing it. If it
> is bound, use it, and if it isn't, use the code we currently have in
> `LaTeX-mark-section'. This will lead to different behavior on GNU
> Emacs and XEmacs, but this will go away once XEmacs synchronizes its
> outline.el with GNU Emacs'.
>
> What do others think about this?
I'd prefer not to have regressions, so if anybody can think of cases
where the current behavior would be preferable, we should at least
leave it as a customizable option. Not having used this, I don't
really have a qualified opinion on that.
Ob, by the way: redirecting to the proper list. Postings through
sunsite.dk are a complete nuisance since I have to moderate them twice
with different mechanisms and time lags.
I'd be glad if other people did that too whenever they notice it in
the headers.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- [AUCTeX] manipulating sections with auc-tex, Matthieu Moy, 2005/08/15
- Re: [AUCTeX] manipulating sections with auc-tex, Ralf Angeli, 2005/08/17
- Re: [AUCTeX] manipulating sections with auc-tex, Matthieu Moy, 2005/08/17
- Re: [AUCTeX] manipulating sections with auc-tex, Ralf Angeli, 2005/08/19
- Re: [AUCTeX] manipulating sections with auc-tex, David Kastrup, 2005/08/19
- Re: [AUCTeX] manipulating sections with auc-tex, Matthieu Moy, 2005/08/23
- Re: [AUCTeX] manipulating sections with auc-tex, Ralf Angeli, 2005/08/23
- Re: [AUCTeX] manipulating sections with auc-tex,
David Kastrup <=
- Re: [AUCTeX] manipulating sections with auc-tex, Ralf Angeli, 2005/08/23
- Re: [AUCTeX] manipulating sections with auc-tex, David Kastrup, 2005/08/23
- Re: [AUCTeX] manipulating sections with auc-tex, Ralf Angeli, 2005/08/24
- Re: [AUCTeX] manipulating sections with auc-tex, Matthieu Moy, 2005/08/23
- Re: [AUCTeX] manipulating sections with auc-tex, Ralf Angeli, 2005/08/23
- Re: [AUCTeX] manipulating sections with auc-tex, Matthieu Moy, 2005/08/23
- Re: [AUCTeX] manipulating sections with auc-tex, Matthieu Moy, 2005/08/26
- Re: [AUCTeX] manipulating sections with auc-tex, Ralf Angeli, 2005/08/26
- Re: [AUCTeX] manipulating sections with auc-tex, David Kastrup, 2005/08/26
- Re: [AUCTeX] manipulating sections with auc-tex, Ralf Angeli, 2005/08/26