diff --git a/auctex-13.3-auto-TL-2024.tar.xz b/auctex-13.3-auto-TL-2024.tar.xz index 74c41c3..3b78e58 100644 --- a/auctex-13.3-auto-TL-2024.tar.xz +++ b/auctex-13.3-auto-TL-2024.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:964af1e5646b36f7cee4e26f6159fb966cc5b7b83adc7912bc76d89cf8b44780 -size 4568632 +oid sha256:775721294c75e480e3ba191f7181d4477f0e2c7e8b3f56d59faa85d21adad0c6 +size 4572516 diff --git a/emacs-auctex.changes b/emacs-auctex.changes index fe253f9..eba5db8 100644 --- a/emacs-auctex.changes +++ b/emacs-auctex.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Mar 27 10:37:32 UTC 2024 - Dr. Werner Fink + +- Add patch ignore-errors.patch + * Allow to scan *all* style files +- Refresh auctex-13.3-auto-TL-2024.tar.xz + ------------------------------------------------------------------- Tue Mar 26 12:28:14 UTC 2024 - Dr. Werner Fink diff --git a/emacs-auctex.spec b/emacs-auctex.spec index db95651..c219a5c 100644 --- a/emacs-auctex.spec +++ b/emacs-auctex.spec @@ -16,7 +16,7 @@ # -%bcond_with tex4auto +%bcond_without tex4auto %define tlversion 2024 %if %{undefined ext_el} %define ext_el .gz @@ -56,6 +56,7 @@ URL: https://www.gnu.org/software/auctex # PATCH-FEATURE-UPSTREAM dvips.patch Patch0: dvips.patch Patch1: auctex-13.1-expand.patch +Patch2: ignore-errors.patch BuildArch: noarch %description @@ -80,6 +81,7 @@ you cannot use this package for XEmacs. %setup -n auctex-%{version} %patch -P0 %patch -P1 +%patch -P2 %build unset ${!LC_*} diff --git a/ignore-errors.patch b/ignore-errors.patch new file mode 100644 index 0000000..0a5d190 --- /dev/null +++ b/ignore-errors.patch @@ -0,0 +1,48 @@ +--- + latex.el | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +--- latex.el ++++ latex.el 2024-03-27 10:36:50.635375638 +0000 +@@ -2022,7 +2022,7 @@ TYPE is one of the symbols mac or env." + ;; over [>=] and a balanced {} + ((looking-at-p "[>=]") + (forward-char 1) +- (with-syntax-table syntax (forward-sexp))) ++ (with-syntax-table syntax (ignore-errors (forward-sexp)))) + ;; Mandatory arguments: + ;; m: Ask for input with "Text" as prompt + ((looking-at-p "m") +@@ -2038,7 +2038,7 @@ TYPE is one of the symbols mac or env." + ;; R{default} + ((looking-at-p "R") + (re-search-forward "R\\(.\\)\\(.\\)" (+ (point) 3) t) +- (with-syntax-table syntax (forward-sexp)) ++ (with-syntax-table syntax (ignore-errors (forward-sexp))) + (push `(TeX-arg-string nil nil nil nil + ,(match-string-no-properties 1) + ,(match-string-no-properties 2)) +@@ -2062,12 +2062,12 @@ TYPE is one of the symbols mac or env." + ;; O{default} + ((looking-at-p "O") + (forward-char 1) +- (with-syntax-table syntax (forward-sexp)) ++ (with-syntax-table syntax (ignore-errors (forward-sexp))) + (push (vector "Text") args)) + ;; D{default} + ((looking-at-p "D") + (re-search-forward "D\\(.\\)\\(.\\)" (+ (point) 3) t) +- (with-syntax-table syntax (forward-sexp)) ++ (with-syntax-table syntax (ignore-errors (forward-sexp))) + (push (vector #'TeX-arg-string nil nil nil nil + (match-string-no-properties 1) + (match-string-no-properties 2)) +@@ -2099,7 +2099,7 @@ TYPE is one of the symbols mac or env." + ,(match-string-no-properties 1)) + args) + (when (looking-at-p TeX-grop) +- (with-syntax-table syntax (forward-sexp)))) ++ (with-syntax-table syntax (ignore-errors (forward-sexp))))) + ;; Finished: + (t nil)))) + (if (eq type 'env)