auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 0da29134c929c52229bdd


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 0da29134c929c52229bdd8eb43a0f32bbea22e06
Date: Fri, 25 Jul 2014 17:57:26 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  0da29134c929c52229bdd8eb43a0f32bbea22e06 (commit)
      from  a54ce4d34d85338d9484b21d62024696705fe70f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0da29134c929c52229bdd8eb43a0f32bbea22e06
Author: Tassilo Horn <address@hidden>
Date:   Fri Jul 25 18:54:47 2014 +0100

    Fix outline promotion/demotion.
    
    * latex.el (LaTeX-largest-level-set): Adapt
    `outline-heading-alist' according to largest level in order to
    make `outline-promote' (and others) work correctly.

diff --git a/ChangeLog b/ChangeLog
index 40324e7..2be1b61 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-07-25  Tassilo Horn  <address@hidden>
+
+       * latex.el (LaTeX-largest-level-set): Adapt
+       `outline-heading-alist' according to largest level in order to
+       make `outline-promote' (and others) work correctly.
+
 2014-07-25  Mosè Giordano  <address@hidden>
 
        * doc/auctex.texi (Adding Macros): Document `TeX-date-format'.
diff --git a/latex.el b/latex.el
index 89be909..c798cda 100644
--- a/latex.el
+++ b/latex.el
@@ -280,6 +280,14 @@ SECTION has to be a string contained in 
`LaTeX-section-list'.
 Additionally the function will invalidate the section submenu in
 order to let the menu filter regenerate it."
   (setq LaTeX-largest-level (LaTeX-section-level section))
+  (let ((offset (LaTeX-outline-offset)))
+    (when (> offset 0)
+      (let (lst)
+       (dolist (tup outline-heading-alist)
+         (setq lst (cons (cons (car tup)
+                               (+ offset (cdr tup)))
+                         lst)))
+       (setq outline-heading-alist (nreverse lst)))))
   (setq LaTeX-section-menu nil))
 
 (defun LaTeX-outline-offset ()

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    6 ++++++
 latex.el  |    8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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