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


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. cb4e33e29b3a4604d7cddf2ca11a19d620626802
Date: Sun, 08 Nov 2015 00:37:08 +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  cb4e33e29b3a4604d7cddf2ca11a19d620626802 (commit)
      from  f52479b816c0e6097293221b8488144cbdea9123 (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 cb4e33e29b3a4604d7cddf2ca11a19d620626802
Author: Mosè Giordano <address@hidden>
Date:   Sun Nov 8 01:36:10 2015 +0100

    Set output extension for Texinfo files
    
    * tex-info.el (TeX-texinfo-mode): Set `TeX-output-extension'.
    Remove compatibility code with old Emacsen.

diff --git a/ChangeLog b/ChangeLog
index 387c136..9af3154 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-11-08  Mosè Giordano  <address@hidden>
+
+       * tex-info.el (TeX-texinfo-mode): Set `TeX-output-extension'.
+       Remove compatibility code with old Emacsen.
+
 2015-11-06  Mosè Giordano  <address@hidden>
 
        * tex-buf.el (TeX-check-TeX, TeX-check-TeX-command-not-found): New
diff --git a/tex-info.el b/tex-info.el
index 6c5c81f..3a7b698 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -602,6 +602,7 @@ value of `Texinfo-mode-hook'."
   (interactive)
   (kill-all-local-variables)
   (setq TeX-mode-p t)
+  (setq TeX-output-extension (if TeX-PDF-mode "pdf" "dvi"))
   (setq TeX-sentinel-default-function 'TeX-TeX-sentinel)
   ;; Mostly stolen from texinfo.el
   (setq TeX-base-mode-name "Texinfo")
@@ -625,9 +626,8 @@ value of `Texinfo-mode-hook'."
   (set (make-local-variable 'comment-start-skip) "@c +\\|@comment +")
   (set (make-local-variable 'comment-use-syntax) nil)
   (set (make-local-variable 'words-include-escapes) t)
-  (if (boundp 'texinfo-imenu-generic-expression)
-      ;; This was introduced in 19.30.
-      (set (make-local-variable 'imenu-generic-expression) 
texinfo-imenu-generic-expression))
+  (set (make-local-variable 'imenu-generic-expression)
+       texinfo-imenu-generic-expression)
 
   (set (make-local-variable 'font-lock-defaults)
        ;; COMPATIBILITY for Emacs 20
@@ -636,15 +636,16 @@ value of `Texinfo-mode-hook'."
              nil nil nil backward-paragraph
              (font-lock-syntactic-keywords
               . texinfo-font-lock-syntactic-keywords))
-         '(texinfo-font-lock-keywords t)))
-  (if (not (boundp 'texinfo-section-list))
-      ;; This was included in 19.31.
-      ()
-    (set (make-local-variable 'outline-regexp)
-        (concat "@\\("
-                (mapconcat 'car texinfo-section-list "\\>\\|")
-                "\\>\\)"))
-    (set (make-local-variable 'outline-level) 'texinfo-outline-level))
+         ;; This is for Emacs >= 23.3, when
+         ;; `texinfo-font-lock-syntactic-keywords' was removed.
+         '(texinfo-font-lock-keywords nil nil nil backward-paragraph)))
+
+  ;; Outline settings.
+  (set (make-local-variable 'outline-regexp)
+       (concat "@\\("
+              (mapconcat 'car texinfo-section-list "\\>\\|")
+              "\\>\\)"))
+  (set (make-local-variable 'outline-level) 'texinfo-outline-level)
 
   ;; Mostly AUCTeX stuff
   (easy-menu-add Texinfo-mode-menu Texinfo-mode-map)

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

Summary of changes:
 ChangeLog   |    5 +++++
 tex-info.el |   25 +++++++++++++------------
 2 files changed, 18 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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