[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 269/299: Fix outline promotion/demotion.
From: |
Stefan Monnier |
Subject: |
[elpa] 269/299: Fix outline promotion/demotion. |
Date: |
Sun, 02 Nov 2014 03:11:54 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
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.
---
ChangeLog | 6 ++++++
latex.el | 8 ++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
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 ()
- [elpa] 258/299: Prettify file names in error overview., (continued)
- [elpa] 258/299: Prettify file names in error overview., Stefan Monnier, 2014/11/01
- [elpa] 259/299: Update Future Development section in manual., Stefan Monnier, 2014/11/01
- [elpa] 254/299: Simplify error finding and help displaying functions., Stefan Monnier, 2014/11/01
- [elpa] 263/299: Fix remaining XEmacs compilation issues., Stefan Monnier, 2014/11/01
- [elpa] 260/299: Improve selection of the forward/inverse search method., Stefan Monnier, 2014/11/01
- [elpa] 262/299: Fix some XEmacs compilation issues., Stefan Monnier, 2014/11/01
- [elpa] 264/299: Fix some runtime issues in XEmacs., Stefan Monnier, 2014/11/01
- [elpa] 248/299: Implement TeX-previous-error., Stefan Monnier, 2014/11/01
- [elpa] 267/299: Remove .cvsignore and tests from the release tarball., Stefan Monnier, 2014/11/01
- [elpa] 265/299: Fix other runtime issues in XEmacs and Emacs 21., Stefan Monnier, 2014/11/01
- [elpa] 269/299: Fix outline promotion/demotion.,
Stefan Monnier <=
- [elpa] 261/299: Hide some entries of the Command menu when not available., Stefan Monnier, 2014/11/01
- [elpa] 256/299: Implement error overview., Stefan Monnier, 2014/11/01
- [elpa] 271/299: Keep error overview window if View command is run., Stefan Monnier, 2014/11/01
- [elpa] 275/299: Font-lock fix for verbatim environment args., Stefan Monnier, 2014/11/01
- [elpa] 274/299: Adapt mathtools.el to latest amsmath.el changes., Stefan Monnier, 2014/11/01
- [elpa] 270/299: Manage auto insertion of labels., Stefan Monnier, 2014/11/01
- [elpa] 272/299: Rename LaTeX-auto-insert-label and document its use for sections., Stefan Monnier, 2014/11/01
- [elpa] 277/299: Change Vincent's email address in ChangeLog., Stefan Monnier, 2014/11/01
- [elpa] 268/299: Add customizable option for default date format., Stefan Monnier, 2014/11/01
- [elpa] 273/299: Change again method to determine whether a label should be inserted., Stefan Monnier, 2014/11/01