unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Benjamin Rutt <rutt+news@cis.ohio-state.edu>
Subject: Re: State of the art in Emacs outlining?
Date: Wed, 02 Oct 2002 10:44:02 -0400	[thread overview]
Message-ID: <wc3heg4sxxp.fsf@eta.cis.ohio-state.edu> (raw)
In-Reply-To: 5llm5ijjab.fsf@rum.cs.yale.edu

"Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> writes:

>>>>>> "Tom" == Tom Davey <tom@tomdavey.com> writes:
>> Thanks to you and Kai for your replies. The advice is sound -- learn
>> standard outlining first, and then worry about enhanced packages once I
>> figure out what else I need. My worry is that I already know what I
>> need: easier repositioning of items and trees (demoting/promoting),
>> which allout.el and others packages seem to promise. But really I'm just
>> guessing, so I'll be patient. 
>
> The outline.el code in the CVS repository offers such functionality,
> although it might be a bit fragile.  I'd be interested to hear how
> well it works in practice for others than me.

I've tried it when editing LaTeX.  It seems to work well for promoting
and demoting \section, \subsection and \subsubsection under 'emacs -q'
using the builtin LaTeX mode.

However, it doesn't work quite right with AUCTeX.  Consider the
following test case for AUCTeX:

    \section{foo}

    \subsection{bar}

    \subsubsection{baz}

1) When I position the point anywhere on \subsubsection, M-x
outline-promote turns the line into:

    subsection{baz}

2) When I position the cursor on \section and issue M-x
   outline-demote, the line becomes

    subsection{foo}

In both cases, the opening backslash gets erased.  Hope this helps.
Oh, and I'm not quite using current CVS.  My outline.el is dated May
20, 2002 (don't know if that's current or not).
-- 
Benjamin

  reply	other threads:[~2002-10-02 14:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1033440784.21858.help-gnu-emacs@gnu.org>
2002-10-01 15:00 ` State of the art in Emacs outlining? Stefan Monnier <foo@acm.com>
2002-10-02 14:44   ` Benjamin Rutt [this message]
2002-10-02 16:06     ` Stefan Monnier <foo@acm.com>
2002-10-02 15:01   ` Christian Lemburg
2002-10-02 17:11     ` Matthias Meulien
     [not found] <mailman.1033275084.18063.help-gnu-emacs@gnu.org>
2002-09-29  9:33 ` Alex Schroeder
2002-10-01  2:52   ` Tom Davey
2002-09-29 15:38 ` Kai Großjohann
2002-09-29  4:49 Tom Davey
2002-10-01 15:02 ` Sacha Chua
2002-10-04  0:53   ` Tom Davey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wc3heg4sxxp.fsf@eta.cis.ohio-state.edu \
    --to=rutt+news@cis.ohio-state.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).