[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 8e7d19fe84 44/60: Make tex-buf.el
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 8e7d19fe84 44/60: Make tex-buf.el compile without (require 'latex) |
Date: |
Fri, 8 Apr 2022 11:52:53 -0400 (EDT) |
branch: externals/auctex
commit 8e7d19fe848f24879cb770e86679ac690e073956
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Make tex-buf.el compile without (require 'latex)
* tex-buf.el (): Delete (require 'latex) and add defvar's &
declare-function.
(TeX-command-default): Add `bound-and-true-p' guard for
`LaTeX-using-Biber'.
* tests/tex/command-expansion.el: Supply (require 'latex) which is now
needed.
---
tests/tex/command-expansion.el | 1 +
tex-buf.el | 10 ++++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/tests/tex/command-expansion.el b/tests/tex/command-expansion.el
index 5407867175..373ee3d66c 100644
--- a/tests/tex/command-expansion.el
+++ b/tests/tex/command-expansion.el
@@ -23,6 +23,7 @@
(require 'ert)
(require 'tex-buf)
+(require 'latex)
(ert-deftest TeX-command-expansion ()
"Check whether \"%%%%\" is correctly expanded when before \"%`\"."
diff --git a/tex-buf.el b/tex-buf.el
index a3892d3f0a..c7fbb09f81 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -29,9 +29,14 @@
;;; Code:
(require 'tex)
-(require 'latex)
(require 'comint)
+(defvar LaTeX-largest-level)
+(defvar LaTeX-section-list)
+(defvar compilation-error-regexp-alist)
+
+(declare-function LaTeX-bibliography-list "latex")
+
;;; Customization:
(defcustom TeX-process-asynchronous (not (eq system-type 'ms-dos))
@@ -842,7 +847,8 @@ omitted) and `TeX-region-file'."
(append BibTeX-file-extensions
TeX-Biber-file-extensions)))
;; We should check for bst files here as well.
- (if LaTeX-using-Biber TeX-command-Biber TeX-command-BibTeX))
+ (if (bound-and-true-p LaTeX-using-Biber)
+ TeX-command-Biber TeX-command-BibTeX))
((and
;; Rationale: makeindex should be run when final document is almost
;; complete (see
- [AUCTeX-diffs] [elpa] externals/auctex 69b78fcc26 54/60: Don't change indentation when defining a conditional, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 69b78fcc26 54/60: Don't change indentation when defining a conditional, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 323eb08ca6 46/60: Assign reasonable sentinel in AmS-TeX mode, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 2af3c1bcbd 33/60: Add new style/ifthen.el, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex e1c3e37e0c 56/60: ; Update copyright year, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 3df1e313ea 25/60: Adapt TeX-region-hook for lexical-binding, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex fded69c292 59/60: Let \Describe<foo> macros stay on their own lines, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 806100f29a 27/60: Delete obsoleted variables (bug#54339), Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 9554d1e8a2 40/60: * doc/changes.texi: Announce the indentation improvement., Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 8460859b69 34/60: Improve fontification of kernel macros, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 494d501e63 43/60: Adjust indenting of conditionals in styles, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 8e7d19fe84 44/60: Make tex-buf.el compile without (require 'latex),
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 7e6d83ff4e 47/60: Add news, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 180cc28dfa 50/60: Apply remaining portion of Stefan's patch, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex fd118c67d4 58/60: ; * style/doc.el (LaTeX-env-doc-no-comment): Fix docstring., Tassilo Horn, 2022/04/08