auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. b94095083e3e8c7502387


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. b94095083e3e8c750238753f788af7cb954292d5
Date: Fri, 11 Jun 2021 09:24:46 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  b94095083e3e8c750238753f788af7cb954292d5 (commit)
      from  32e93a0638fda83440c63af4f595eda49cff9615 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b94095083e3e8c750238753f788af7cb954292d5
Author: Arash Esbati <arash@gnu.org>
Date:   Fri Jun 11 15:23:18 2021 +0200

    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.

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)

-----------------------------------------------------------------------

Summary of changes:
 tex-buf.el |  9 ---------
 tex.el     | 13 +++++++++++++
 2 files changed, 13 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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