auctex-diffs
[Top][All Lists]
Advanced

[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




reply via email to

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