branch: master
commit 054b38887b3a3e7902d9d5f2edf6f02fac8c9f74
Author: Tassilo Horn <[email protected]>
Commit: Tassilo Horn <[email protected]>
Fix (void-variable compilation-in-progress) error
* tex.el (TeX-run-command, TeX-run-compile): Require `compile'
explicitly.
---
tex.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tex.el b/tex.el
index ea5fbbda..b98b57e5 100644
--- a/tex.el
+++ b/tex.el
@@ -97,6 +97,7 @@
(defvar Info-file-list-for-emacs) ; info.el
(defvar ispell-parser) ; ispell.el
(defvar compilation-error-regexp-alist) ; compile.el
+(defvar compilation-in-progress) ; compile.el
(defgroup TeX-file nil
"Files used by AUCTeX."
@@ -7007,7 +7008,6 @@ at bottom if LINE is nil."
(defvar TeX-parse-function)
(defvar TeX-sentinel-function)
(defvar TeX-sentinel-default-function)
-(defvar compilation-in-progress)
(defvar TeX-current-page)
(defvar TeX-error-overview-open-after-TeX-run)
(defvar TeX-error-list)
@@ -7825,6 +7825,7 @@ Return the new process."
(set-process-filter process #'TeX-command-filter)
(set-process-sentinel process #'TeX-command-sentinel)
(set-marker (process-mark process) (point-max))
+ (require 'compile)
(setq compilation-in-progress (cons process compilation-in-progress))
process)
(setq mode-line-process ": run")
@@ -7995,6 +7996,7 @@ run of `TeX-run-format', use
;; FIXME: This is just an ad-hoc workaround and it's better to fix
;; the regular expression in compile.el properly, if possible. But
;; there was no response to such request in [email protected].
+ (require 'compile)
(with-current-buffer TeX-command-buffer
(make-local-variable 'compilation-error-regexp-alist)
;; Add slightly modified entry of the one associated with `comma'