[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Several outline-promote bugs
From: |
Juri Linkov |
Subject: |
Re: Several outline-promote bugs |
Date: |
Tue, 23 Aug 2005 23:29:29 +0300 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
> I'm trying to use outline-{promote|demote} with auctex. It works very
> badly:
>
> Here's a test file:
>
> ,----
> | \section{sec}
> | text
> | \subsection{subsec}
> | other text
> `----
I guess this is not a tex-related bug. You can get the same bug
with a simple file in outline-mode like this:
** sec
text
*** subsec
other text
> Putting my cursor on the first line, and running M-x outline-promote
> RET, I get this
>
> ,----
> | \section{sec}
> | text
> | \section{subsec}
> | other text
> `----
With the default outline-regexp, you will get:
** sec
text
** subsec
other text
> While I expected this:
>
> ,----
> | \part{sec}
> | text
> | \section{subsec}
> | other text
> `----
Yes, it seems more correct would be to get this:
* sec
text
** subsec
other text
> Now, I add an empty line at the beginning of the file:
>
> ,----
> |
> | \section{sec}
> | text
> | \subsection{subsec}
> | other text
> `----
>
> and, with the cursor on the second line, M-x outline-promote RET. I
> get an error "Unrecognized header". After debugging a bit, this
> appears to be because `outline-level' is called with the cursor on the
> first, empty line.
I can't reproduce an error "Unrecognized header" neither with your tex
example nor with a simple text file.
--
Juri Linkov
http://www.jurta.org/emacs/