emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex cb4e33e 12/26: Set output extension for Texinfo


From: Tassilo Horn
Subject: [elpa] externals/auctex cb4e33e 12/26: Set output extension for Texinfo files
Date: Fri, 13 Nov 2015 17:00:35 +0000

branch: externals/auctex
commit cb4e33e29b3a4604d7cddf2ca11a19d620626802
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Set output extension for Texinfo files
    
    * tex-info.el (TeX-texinfo-mode): Set `TeX-output-extension'.
    Remove compatibility code with old Emacsen.
---
 ChangeLog   |    5 +++++
 tex-info.el |   25 +++++++++++++------------
 2 files changed, 18 insertions(+), 12 deletions(-)

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)



reply via email to

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