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. a4f103a78b46654e6af10


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. a4f103a78b46654e6af1051ac2b34981c70f9576
Date: Tue, 07 Jan 2014 09:02:15 +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  a4f103a78b46654e6af1051ac2b34981c70f9576 (commit)
      from  d617398208ea2c98069c5d4b85f33cc787ac2c7d (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 a4f103a78b46654e6af1051ac2b34981c70f9576
Author: Vincent Belaïche <address@hidden>
Date:   Tue Jan 7 09:58:14 2014 +0100

    Fix a bug with reftex where tex-info and LaTeX interferred.
    
    * tex-info.el (Texinfo-reftex-hook): Replace use of
    reftex-tables-dirty by that of reftex-default-label-alist-entries
    to trigger call to reftex-compile-variables in a standard way.
    The problem was that generating a TOC for a Texinfo file and then
    for a LaTeX file was not working for the LaTeX file because the
    Texinfo file was using LaTeX label style and as such
    reftex-ensure-compiled-variables was not calling
    reftex-compile-variables, which caused wrong
    reftex-everything-regexp for sections.
    
    Signed-off-by: Tassilo Horn <address@hidden>

diff --git a/ChangeLog b/ChangeLog
index f3573f0..4da30d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2014-01-06  Vincent Belaïche  <address@hidden>
+
+       * tex-info.el (Texinfo-reftex-hook): Replace use of
+       reftex-tables-dirty by that of reftex-default-label-alist-entries
+       to trigger call to reftex-compile-variables in a standard way.
+       The problem was that generating a TOC for a Texinfo file and then
+       for a LaTeX file was not working for the LaTeX file because the
+       Texinfo file was using LaTeX label style and as such
+       reftex-ensure-compiled-variables was not calling
+       reftex-compile-variables, which caused wrong
+       reftex-everything-regexp for sections.
+
 2014-01-06  Mosè Giordano  <address@hidden>
 
        * latex.el (LaTeX-math-insert): Use `TeX-electric-math' for
diff --git a/tex-info.el b/tex-info.el
index c1df5ec..a42884d 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -392,10 +392,17 @@ for @node."
   "Hook function to plug Texinfo into RefTeX."
   ;; force recompilation of variables
   (when (string= TeX-base-mode-name "Texinfo")
+    ;; dirty temporary hook to remove when reftex has a Texinfo builtin 
+    ;; TODO --- taken on <2014-01-06 mon> --- remove the dirty trick once 
reftex
+    ;; has been corrected for long enough a time
+    (unless (assq 'Texinfo reftex-label-alist-builtin)
+      (setq reftex-label-alist-builtin (append reftex-label-alist-builtin
+                                              '((Texinfo "Texinfo default 
environments" nil)))))
     (dolist (v `((reftex-section-pre-regexp . "@")
                 ; section post-regexp must contain exactly one group
                 (reftex-section-post-regexp . "\\([ \t]+\\)")
                 (reftex-section-info-function . Texinfo-reftex-section-info)
+                (reftex-default-label-alist-entries . (Texinfo))
               (reftex-section-levels
                . ,(mapcar
                    (lambda (x)
@@ -405,7 +412,6 @@ for @node."
                        (cons (car x) (cadr x))))
                    texinfo-section-list))))
       (set (make-local-variable (car v) ) (cdr v)))
-    (setq reftex-tables-dirty t)
     (reftex-ensure-compiled-variables)))
 
 ;;; Keymap:

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

Summary of changes:
 ChangeLog   |   12 ++++++++++++
 tex-info.el |    8 +++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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