emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] 86/299: Make LaTeX-outline-level work for customized outline-rege


From: Stefan Monnier
Subject: [elpa] 86/299: Make LaTeX-outline-level work for customized outline-regexp.
Date: Sun, 02 Nov 2014 03:10:31 +0000

monnier pushed a commit to branch externals/auctex
in repository elpa.

commit 079eac16be24583895a13d9466d3d9374367c974
Author: Leo Liu <address@hidden>
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  <address@hidden>
+
+       * 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  <address@hidden>
 
        * 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."



reply via email to

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