From 68528bf77da2ffee35f229221ded7289b1fa50720bb4ae6b2b555114a435674f Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 16 May 2024 09:30:23 +0000 Subject: [PATCH 1/3] Refresh auctex-13.3-auto-TL-2024.tar.xz OBS-URL: https://build.opensuse.org/package/show/editors/emacs-auctex?expand=0&rev=66 --- auctex-13.3-auto-TL-2024.tar.xz | 4 +-- emacs-auctex.changes | 8 ++++++ emacs-auctex.spec | 5 ++-- ignore-errors.patch | 48 --------------------------------- 4 files changed, 13 insertions(+), 52 deletions(-) delete mode 100644 ignore-errors.patch diff --git a/auctex-13.3-auto-TL-2024.tar.xz b/auctex-13.3-auto-TL-2024.tar.xz index 3b78e58..ff2184f 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:775721294c75e480e3ba191f7181d4477f0e2c7e8b3f56d59faa85d21adad0c6 -size 4572516 +oid sha256:ebbe400f0e3463ed5c7a0446b9baabc4fe86b4f873a6446abbf48a7491b89552 +size 4928620 diff --git a/emacs-auctex.changes b/emacs-auctex.changes index ae50c68..60d5145 100644 --- a/emacs-auctex.changes +++ b/emacs-auctex.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu May 16 09:27:02 UTC 2024 - Dr. Werner Fink + +- Remove patch ignore-errors.patch + * After discussion with AUCTeX upstream avoid now those errors + by ignoring font-lock TeX macros as well as lwarp.sty +- Refresh auctex-13.3-auto-TL-2024.tar.xz with that above + ------------------------------------------------------------------- Tue May 7 07:38:33 UTC 2024 - Dr. Werner Fink diff --git a/emacs-auctex.spec b/emacs-auctex.spec index 1aee02b..bf933a2 100644 --- a/emacs-auctex.spec +++ b/emacs-auctex.spec @@ -56,7 +56,6 @@ 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 Patch3: initial-reset.patch Patch4: dinbrief.patch BuildArch: noarch @@ -83,7 +82,6 @@ you cannot use this package for XEmacs. %setup -n auctex-%{version} %patch -P0 %patch -P1 -%patch -P2 %patch -P3 %patch -P4 @@ -118,8 +116,11 @@ you cannot use this package for XEmacs. %if %{with tex4auto} pwd echo "Run the command TeX-auto-generate-global in mini buffer" + ignore="$(sed -rn '/^\(defcustom TeX-ignore-file/,+1{ s@^\s+@@;s@(\\\\)(\)\$)@\1|lwarp\\.sty\\\\\2@p }' < ../tex.el)" emacs-gtk -batch -Q -L %{buildroot}%{_sitedir}/auctex \ --eval '(setq TeX-lisp-directory "%{buildroot}%{_aucdir}")' \ + --eval "(setq TeX-install-font-lock #'ignore)" \ + --eval "(setq TeX-ignore-file ${ignore})" \ --eval '(setq TeX-auto-global "%{buildroot}%{_aucdir}/auto")' \ -l %{buildroot}%{_sitedir}/tex-site.el -f TeX-auto-generate-global exit 1 diff --git a/ignore-errors.patch b/ignore-errors.patch deleted file mode 100644 index 0a5d190..0000000 --- a/ignore-errors.patch +++ /dev/null @@ -1,48 +0,0 @@ ---- - 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) From 3af79b47b7c8ab8b7640aeb6aeea113a2061546e64fb7bd23a83e7ab57a57f00 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 16 May 2024 11:31:51 +0000 Subject: [PATCH 2/3] Update dinbrief.patch OBS-URL: https://build.opensuse.org/package/show/editors/emacs-auctex?expand=0&rev=67 --- dinbrief.patch | 35 +++++++++++++++++++++-------------- emacs-auctex.changes | 7 +++++++ 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/dinbrief.patch b/dinbrief.patch index e45f90d..f94663c 100644 --- a/dinbrief.patch +++ b/dinbrief.patch @@ -1,14 +1,15 @@ -Update dinbrief class - Nowadays UTF-8 is standard, also port the features of the letter class to dinbrief class. +Signed-off-by: Werner Fink --- - style/dinbrief.el | 45 ++++++++++++++++++++++++++++++++------------- - 1 file changed, 32 insertions(+), 13 deletions(-) + style/dinbrief.el | 46 +++++++++++++++++++++++++++++++++++----------- + 1 file changed, 35 insertions(+), 11 deletions(-) +diff --git a/style/dinbrief.el b/style/dinbrief.el +index c3108466..bdfaba47 100644 --- style/dinbrief.el -+++ style/dinbrief.el 2024-05-07 07:10:38.580274545 +0000 ++++ style/dinbrief.el @@ -32,14 +32,26 @@ (require 'tex) (require 'latex) @@ -62,25 +63,29 @@ to dinbrief class. TeX-dialect) (defmacro LaTeX-dinbrief-insert (&rest args) -@@ -78,16 +105,8 @@ +@@ -77,17 +104,14 @@ + (beginning-of-line 1)) (open-line 2) (indent-relative-first-indent-point) - (LaTeX-dinbrief-insert TeX-esc "usepackage" +- (LaTeX-dinbrief-insert TeX-esc "usepackage" - LaTeX-optop "latin1,utf8" LaTeX-optcl - TeX-grop "inputenc" TeX-grcl) - (newline-and-indent) -- (LaTeX-dinbrief-insert TeX-esc "usepackage" -- LaTeX-optop "T1" LaTeX-optcl -- TeX-grop "fontenc" TeX-grcl) + (LaTeX-dinbrief-insert TeX-esc "usepackage" + LaTeX-optop "T1" LaTeX-optcl + TeX-grop "fontenc" TeX-grcl) - (indent-relative-first-indent-point) -- (LaTeX-dinbrief-insert TeX-esc "usepackage" - TeX-grop "ngerman" TeX-grcl)) ++ (newline-and-indent) + (LaTeX-dinbrief-insert TeX-esc "usepackage" +- TeX-grop "ngerman" TeX-grcl)) - (TeX-run-style-hooks "inputenc" "fontenc" "ngerman")) -+ (TeX-run-style-hooks "ngerman")) ++ LaTeX-optop "ngerman" LaTeX-optcl ++ TeX-grop "babel" TeX-grcl)) ++ (TeX-run-style-hooks "fontenc" "babel")) (defun LaTeX-dinbrief-env-recipient (environment) "Insert ENVIRONMENT and prompt for recipient and address." -@@ -246,7 +265,7 @@ +@@ -246,7 +270,7 @@ (let ((ctime-string (current-time-string)) (month-alist '(("Jan" . "Januar") ("Feb" . "Februar") @@ -89,3 +94,5 @@ to dinbrief class. ("Apr" . "April") ("May" . "Mai") ("Jun" . "Juni") +-- +2.43.0 diff --git a/emacs-auctex.changes b/emacs-auctex.changes index 60d5145..12c00f7 100644 --- a/emacs-auctex.changes +++ b/emacs-auctex.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 16 11:13:22 UTC 2024 - Dr. Werner Fink + +- Update dinbrief.patch + * Use babel style direct for ngerman + * Reintroduce enforced T1 font encoding + ------------------------------------------------------------------- Thu May 16 09:27:02 UTC 2024 - Dr. Werner Fink From 040cd9169db3c63fd2174ccde2c2bba361feefe2a42ef612536318ef16402371 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 16 May 2024 13:28:06 +0000 Subject: [PATCH 3/3] Further changes for dinbrief.patch OBS-URL: https://build.opensuse.org/package/show/editors/emacs-auctex?expand=0&rev=68 --- dinbrief.patch | 67 +++++++++++++++++++++++++++++++++++++------- emacs-auctex.changes | 5 ++++ 2 files changed, 62 insertions(+), 10 deletions(-) diff --git a/dinbrief.patch b/dinbrief.patch index f94663c..61c4edf 100644 --- a/dinbrief.patch +++ b/dinbrief.patch @@ -3,11 +3,9 @@ to dinbrief class. Signed-off-by: Werner Fink --- - style/dinbrief.el | 46 +++++++++++++++++++++++++++++++++++----------- - 1 file changed, 35 insertions(+), 11 deletions(-) + style/dinbrief.el | 67 +++++++++++++++++++++++++++++++++++++++--------------- + 1 file changed, 49 insertions(+), 18 deletions(-) -diff --git a/style/dinbrief.el b/style/dinbrief.el -index c3108466..bdfaba47 100644 --- style/dinbrief.el +++ style/dinbrief.el @@ -32,14 +32,26 @@ @@ -23,7 +21,7 @@ index c3108466..bdfaba47 100644 + '("10pt" "11pt" "12pt" "norm" "a4paper" "a5paper" "b5paper" + "letterpaper" "legalpaper" "executivepaper" "twoside" + "addresshigh" "addressstd" "onecolumn" "twocolumn") -+ "Package options for the letter class.") ++ "Class options for the dinbrief class.") + (TeX-add-style-hook "dinbrief" @@ -39,7 +37,7 @@ index c3108466..bdfaba47 100644 (TeX-add-symbols '("address" "Absender") '("postremark" "Postvermerk") -@@ -61,7 +73,22 @@ +@@ -61,12 +73,28 @@ '("backaddress" "Retouradresse") '("signature" "Unterschrift") '("opening" "Anrede") @@ -63,7 +61,14 @@ index c3108466..bdfaba47 100644 TeX-dialect) (defmacro LaTeX-dinbrief-insert (&rest args) -@@ -77,17 +104,14 @@ + "Insert text ignoring active markers." +- `(progn (if mark-active (deactivate-mark)) ++ `(progn ++ (if (TeX-active-mark) (deactivate-mark)) + (insert ,@args))) + + (defun LaTeX-dinbrief-style () +@@ -77,17 +105,14 @@ (beginning-of-line 1)) (open-line 2) (indent-relative-first-indent-point) @@ -85,7 +90,42 @@ index c3108466..bdfaba47 100644 (defun LaTeX-dinbrief-env-recipient (environment) "Insert ENVIRONMENT and prompt for recipient and address." -@@ -246,7 +270,7 @@ +@@ -118,8 +143,10 @@ + (newline-and-indent) + (if (not (zerop (length retouradr))) + (progn +- (if mark-active (deactivate-mark)) +- (LaTeX-dinbrief-insert TeX-esc "backaddress" TeX-grop retouradr TeX-grcl) ++ (if (TeX-active-mark) (deactivate-mark)) ++ (LaTeX-dinbrief-insert TeX-esc ++ "backaddress" ++ TeX-grop retouradr TeX-grcl) + (newline-and-indent))))) + (LaTeX-dinbrief-insert TeX-esc "enabledraftstandard") + (newline-and-indent) +@@ -205,8 +232,8 @@ + "Read and write the senders address." + (interactive) + (let ((name (TeX-read-string "Absender: " (user-full-name))) +- (str (TeX-read-string "Meine Strasse: ")) +- (ort (TeX-read-string "Mein Wohnort: "))) ++ (str (TeX-read-string "Meine Strasse: ")) ++ (ort (TeX-read-string "Mein Wohnort: "))) + (if (not (zerop (length name))) + (progn + (goto-char (point-min)) ; insert before \end{document} +@@ -231,8 +258,8 @@ + (defun LaTeX-dinbrief-recipient () + "Read and return the recipient address." + (interactive) +- (let ((str (TeX-read-string "Wohnhaft in Strasse: ")) +- (ort (TeX-read-string "Aus der Ortschaft: "))) ++ (let ((str (TeX-read-string "Wohnhaft in Strasse: ")) ++ (ort (TeX-read-string "Aus der Ortschaft: "))) + (if (not (zerop (length str))) + (if (not (zerop (length ort))) + (concat str " " TeX-esc TeX-esc " " ort) +@@ -246,7 +273,7 @@ (let ((ctime-string (current-time-string)) (month-alist '(("Jan" . "Januar") ("Feb" . "Februar") @@ -94,5 +134,12 @@ index c3108466..bdfaba47 100644 ("Apr" . "April") ("May" . "Mai") ("Jun" . "Juni") --- -2.43.0 +@@ -270,4 +297,8 @@ + (setq day (concat "0" day))))) + (format "%s, den %s. %s %s" place day month year)))) + ++;; Local Variables: ++;; coding: utf-8-unix ++;; End: ++ + ;;; dinbrief.el ends here diff --git a/emacs-auctex.changes b/emacs-auctex.changes index 12c00f7..036fcb3 100644 --- a/emacs-auctex.changes +++ b/emacs-auctex.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 16 13:27:12 UTC 2024 - Dr. Werner Fink + +- Merge changes from upstream for patch dinbrief.patch + ------------------------------------------------------------------- Thu May 16 11:13:22 UTC 2024 - Dr. Werner Fink