[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 3ef28a5 20/30: Add an extra check
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 3ef28a5 20/30: Add an extra check for tex-buf.el in some style hooks |
Date: |
Fri, 25 Sep 2020 11:00:15 -0400 (EDT) |
branch: externals/auctex
commit 3ef28a55e3671b078c2042d0620c45c973216684
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Add an extra check for tex-buf.el in some style hooks
* style/arabxetex.el ("arabxetex"):
* style/bidi.el ("bidi"):
* style/fontspec.el ("fontspec"):
* style/polyglossia.el ("polyglossia"): Check if "tex-buf.el" is
loaded and require it otherwise. `TeX-check-engine-add-engines'
is defined in "tex-buf.el" and the hook would exit too early if
the library isn't loaded.
---
style/arabxetex.el | 2 ++
style/bidi.el | 4 +++-
style/fontspec.el | 4 +++-
style/polyglossia.el | 2 ++
4 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/style/arabxetex.el b/style/arabxetex.el
index fefd63e..2dd9fc2 100644
--- a/style/arabxetex.el
+++ b/style/arabxetex.el
@@ -44,6 +44,8 @@
(TeX-run-style-hooks "amsmath" "fontspec" "bidi")
;; We need xelatex, so check for the engine here:
+ (unless (featurep 'tex-buf)
+ (require 'tex-buf))
(TeX-check-engine-add-engines 'xetex)
;; New macros & environments:
diff --git a/style/bidi.el b/style/bidi.el
index c000535..0638482 100644
--- a/style/bidi.el
+++ b/style/bidi.el
@@ -1,6 +1,6 @@
;;; bidi.el --- AUCTeX style for the (XeLaTeX) bidi package
-;; Copyright (C) 2016--2018 Free Software Foundation, Inc.
+;; Copyright (C) 2016--2020 Free Software Foundation, Inc.
;; Author: Uwe Brauer <oub@mat.ucm.es>
;; Created: 2016-03-06
@@ -50,6 +50,8 @@
"bidi"
(lambda ()
;; bidi.sty requires xelatex, so set the engine
+ (unless (featurep 'tex-buf)
+ (require 'tex-buf))
(TeX-check-engine-add-engines 'xetex)
;; 1.4 Turning TeX--XeT features on and off
diff --git a/style/fontspec.el b/style/fontspec.el
index 0688e98..44bc167 100644
--- a/style/fontspec.el
+++ b/style/fontspec.el
@@ -1,6 +1,6 @@
;;; fontspec.el --- AUCTeX style for `fontspec.sty' version 2.6a.
-;; Copyright (C) 2013, 2017, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2013, 2017, 2018, 2020 Free Software Foundation, Inc.
;; Maintainer: auctex-devel@gnu.org
;; Author: Mosè Giordano <mose@gnu.org>
@@ -253,6 +253,8 @@ to retrieve the list of fonts."
(TeX-add-style-hook
"fontspec"
(lambda ()
+ (unless (featurep 'tex-buf)
+ (require 'tex-buf))
(TeX-check-engine-add-engines 'luatex 'xetex)
(TeX-run-style-hooks "expl3" "xparse")
diff --git a/style/polyglossia.el b/style/polyglossia.el
index c9366d0..b9aa3d4 100644
--- a/style/polyglossia.el
+++ b/style/polyglossia.el
@@ -231,6 +231,8 @@ argument, otherwise as a mandatory one."
(TeX-add-style-hook
"polyglossia"
(lambda ()
+ (unless (featurep 'tex-buf)
+ (require 'tex-buf))
(TeX-check-engine-add-engines 'luatex 'xetex)
(TeX-auto-add-regexp
`(,LaTeX-polyglossia-lang-regexp (3 1 2) LaTeX-auto-polyglossia-lang))
- [AUCTeX-diffs] [elpa] externals/auctex 601e6a3 01/30: Get rid of gabage in generated texi file, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 601e6a3 01/30: Get rid of gabage in generated texi file, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 94af6a0 04/30: ; Silence the compiler, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex e293844 07/30: ; Silence the compiler, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex b06ca0a 25/30: Fix document, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 67ecb0b 18/30: ; Silence the compiler, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 255e768 11/30: Cater for case where fontification match goes over limit, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex a27850f 10/30: Fix previous commit and add new test, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 087b030 28/30: Simplify mode line for emacs 27, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 243961c 06/30: ; Silence the compiler, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 971bece 14/30: Update style/csquotes.el to package version 5.2j, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 3ef28a5 20/30: Add an extra check for tex-buf.el in some style hooks,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex ef1f670 27/30: ; Partially revert silencing the compiler, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 1b71eb6 05/30: Add short verb characters to `ispell-tex-skip-alist', Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex be4a912 26/30: ; Silence the compiler, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 2e448e3 13/30: ; Silence the compiler, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 840973c 08/30: ; Silence the compiler, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex d7cba92 21/30: Prepare for pdf output for PSTricks documents, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 55e8842 15/30: Treat \choice like \item, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex f04a508 22/30: Restore all math environments in texmathp.el, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex 92aa02b 29/30: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2020/09/25
- [AUCTeX-diffs] [elpa] externals/auctex b21889e 19/30: Merge prv-emacs.el into preview.el.in, Tassilo Horn, 2020/09/25