monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 079eac16be24583895a13d9466d3d9374367c974
Author: Leo Liu <[email protected]>
Date: Sat Apr 17 12:48:39 2010 +0100
Make LaTeX-outline-level work for customized outline-regexp.
* latex.el (LaTeX-outline-level): Make it work for customized
`outline-regexp'. See bug report
http://permalink.gmane.org/gmane.emacs.auctex.bugs/1648.
---
ChangeLog | 6 ++++++
latex.el | 3 +--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a9728fe..2b11e29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-04-09 Leo Liu <[email protected]>
+
+ * latex.el (LaTeX-outline-level): Make it work for customized
+ `outline-regexp'. See bug report
+ http://permalink.gmane.org/gmane.emacs.auctex.bugs/1648.
+
2013-04-08 Tassilo Horn <[email protected]>
* latex.el (LaTeX-style-list): Correct docstring.
diff --git a/latex.el b/latex.el
index 378454a..41fedc7 100644
--- a/latex.el
+++ b/latex.el
@@ -314,8 +314,7 @@ If so, return the second element, otherwise return nil."
((TeX-look-at LaTeX-section-list)
(max 1 (+ (TeX-look-at LaTeX-section-list)
(LaTeX-outline-offset))))
- (t
- (error "Unrecognized header")))))))
+ (t (outline-level)))))))
(defun LaTeX-outline-name ()
"Guess a name for the current header line."