auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] [elpa] externals/auctex b940950 05/26: Define `TeX-parse-


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex b940950 05/26: Define `TeX-parse-all-errors' in tex.el
Date: Thu, 12 Aug 2021 11:18:20 -0400 (EDT)

branch: externals/auctex
commit b94095083e3e8c750238753f788af7cb954292d5
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Define `TeX-parse-all-errors' in tex.el
    
    * tex-buf.el:
    * tex.el (TeX-parse-all-errors): Move defintion of custom variable
    into tex.el.  This variable is also used in
    `TeX-mode-specific-command-menu-entries' and results in an error
    when selecting 'Command' in the menu bar since tex.el doesn't
    require tex-buf.el.
---
 tex-buf.el |  9 ---------
 tex.el     | 13 +++++++++++++
 2 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/tex-buf.el b/tex-buf.el
index 0f3bf18..f282c19 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -291,7 +291,6 @@ at bottom if LINE is nil."
 (defvar TeX-current-page)
 (defvar TeX-error-overview-open-after-TeX-run)
 (defvar TeX-error-list)
-(defvar TeX-parse-all-errors)
 (defvar TeX-command-buffer)
 (defvar TeX-region)
 
@@ -2530,14 +2529,6 @@ This variable is intended to be set only in output 
buffer so it
 will be shared among all files of the same document.")
 (make-variable-buffer-local 'TeX-error-list)
 
-(defcustom TeX-parse-all-errors t
-  "Whether to automatically collect all warning and errors after running TeX.
-
-If t, it makes it possible to use `TeX-previous-error' with TeX
-commands."
-  :group 'TeX-command
-  :type 'boolean)
-
 (defun TeX-parse-all-errors ()
   "Parse TeX output buffer to collect all warnings and errors."
   ;; Reset error list.
diff --git a/tex.el b/tex.el
index d964940..917678c 100644
--- a/tex.el
+++ b/tex.el
@@ -713,6 +713,19 @@ sure \"%p\" is the first entry."
 (autoload 'TeX-save-document "tex-buf" nil t)
 (autoload 'TeX-view "tex-buf" nil t)
 
+;; This variable used to be defined in tex-buf.el.  It is used in
+;; `TeX-mode-specific-command-menu-entries' in this file.  It is now
+;; (June 2021) moved into this file to avoid `void-variable' errors
+;; with the "Command" menu if tex-buf.el is not loaded yet for reasons
+;; mentioned above.
+(defcustom TeX-parse-all-errors t
+  "Whether to automatically collect all warning and errors after running TeX.
+
+If t, it makes it possible to use `TeX-previous-error' with TeX
+commands."
+  :group 'TeX-command
+  :type 'boolean)
+
 ;;; Portability.
 
 (defmacro TeX--if-macro-fboundp (name then &rest else)




reply via email to

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