branch: elpa
commit e19f8bd008cf1ef8c48e64963b0300c72c403ff7
Author: Mosè Giordano <[email protected]>
Commit: Mosè Giordano <[email protected]>
Do not check TeX engine with ifluatex package
* style/ifluatex.el ("ifluatex"): Set `TeX-check-engine-list' to nil so
that the engine is not checked when this package is loaded.
---
style/ifluatex.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/style/ifluatex.el b/style/ifluatex.el
index 48e1bd6..cddd9fd 100644
--- a/style/ifluatex.el
+++ b/style/ifluatex.el
@@ -1,6 +1,6 @@
;;; ifluatex.el --- AUCTeX style for `ifluatex.sty' version 1.3.
-;; Copyright (C) 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2014, 2016 Free Software Foundation, Inc.
;; Author: Davide G. M. Salvetti <[email protected]>
;; Maintainer: [email protected]
@@ -43,11 +43,15 @@
(TeX-arg-literal "\n\\else%\n\\fi%"))
'("luatexversion" 0)
'("luatexrevision" 0))
-
(TeX-declare-expert-macros
"ifluatex"
"ifluatex" "luatexversion" "luatexrevision")
+ ;; This package is used to make it possible to compile a document with both
+ ;; LuaTeX and base TeX engines. By setting `TeX-check-engine-list' to nil
+ ;; we ignore engine restrictions posed by other packages.
+ (setq TeX-check-engine-list nil)
+
(when (and (featurep 'font-latex)
(eq TeX-install-font-lock 'font-latex-setup))
(font-latex-add-keywords '(("luatexversion")