[Top][All Lists]

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

Re: [AUCTeX] manipulating sections with auc-tex

From: Matthieu Moy
Subject: Re: [AUCTeX] manipulating sections with auc-tex
Date: Tue, 23 Aug 2005 01:05:27 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> Maybe you can find out where the problem is and file a bug report to
> the appropriate address.

There seem to be bugs in outline.el that I've just reported.

Something could be improved from auctex: You don't set the value for

Adding this to my config solves the problem:

(add-hook 'LaTeX-mode-hook 
          (lambda ()
            (set (make-local-variable 'outline-heading-alist)
                 (mapcar (lambda (x) 
                           (cons (concat "\\" (nth 0 x)) (nth 1 x)))

I think this should be directly in latex.el:

--- latex.el~   2005-08-22 23:54:46.000000000 +0200
+++ latex.el    2005-08-23 01:03:17.000000000 +0200
@@ -4366,6 +4366,11 @@
   (setq outline-level 'LaTeX-outline-level)
   (make-local-variable 'outline-regexp)
   (setq outline-regexp (LaTeX-outline-regexp t))
+  (make-local-variable 'outline-heading-alist)
+  (setq outline-heading-alist
+        (mapcar (lambda (x)
+                  (cons (concat "\\" (nth 0 x)) (nth 1 x)))
+                LaTeX-section-list))

   (make-local-variable 'TeX-auto-full-regexp-list)
   (setq TeX-auto-full-regexp-list


reply via email to

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