From 7ff1ff48e271764b84b70d4516738dab2895a80103fccdf7670e1a3f333a0e2e Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 12 Sep 2022 09:46:55 +0000 Subject: [PATCH] Update to AucTeX 13.1 OBS-URL: https://build.opensuse.org/package/show/editors/emacs-auctex?expand=0&rev=50 --- auctex-12.3.tar.gz | 3 - auctex-12.3.tar.gz.sig | Bin 566 -> 0 bytes auctex-13.1.tar.gz | 3 + auctex-13.1.tar.gz.sig | Bin 0 -> 566 bytes dvips.patch | 12 ++-- emacs-auctex.changes | 138 +++++++++++++++++++++++++++++++++++++++++ emacs-auctex.spec | 22 +++---- 7 files changed, 160 insertions(+), 18 deletions(-) delete mode 100644 auctex-12.3.tar.gz delete mode 100644 auctex-12.3.tar.gz.sig create mode 100644 auctex-13.1.tar.gz create mode 100644 auctex-13.1.tar.gz.sig diff --git a/auctex-12.3.tar.gz b/auctex-12.3.tar.gz deleted file mode 100644 index 350f402..0000000 --- a/auctex-12.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2fd4fe30b69457c9277fe204d3e83c8472bcf500c8fe4a810d744406174ca9dd -size 1534283 diff --git a/auctex-12.3.tar.gz.sig b/auctex-12.3.tar.gz.sig deleted file mode 100644 index 5ef6f4a8aab945d7c7068ef004b8c5e1332a1c18905e9e4fff3b40b2fad5c8ac..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 566 zcmV-60?GY}0y6{v0SEvc79j+1&E$u~RX{L*hLeCCzxvc*U~O!%1U?wC~)Ggs=G=v#cc`p zVJQ(if5Fy%z2BW}EphLm!Etm@y;+-e_Zkr{0Js78ccCftwx#H=83I=8a+m)e`xAU>yxKc zX;x|zaU40--_ch7u|lDoal|mWw-?k8$CM6Lnv zYL{CP8-rOhkaXgFimZ1TM{kKTcY$e6<>pX#-8x!&9*id^@l0iNHWLJt_d2P>tr9rR z17Ge?E$5AjUsao&xuqnW&@FYr@*pexP6d!rX6wF*VW#N^H&E;bMiJ!xOy|7;L6n1Mc9lf#}OrL!@N3T_f+Pg~!^L}~VRBlyyv9-W4A218NEea|Wy z66x>f3!{dw>I}ui1z4M}Eu_hABbA~hrr-s^pg}P_zw4r0hSGk- zw8-x_d>6nQwDI4}X5=uIRYMg}OxwvRxJPV7~clCrYlg;HGVtlkY8+T~tU zCv+cep;I_6{-%p;oKmw5xVuliHDfT12MH*bK}J*acB#FpMFXKEMv@?T3;9vN9KW;| zi>}R)`vqoV;f{5Udx~wU+x|jT>t?{*f{02XtX3%v$nYRA6dIvhUDZc%os9{5iJ5y$ zt>tRiTuUHhJ?Ftzc5jiFdp>vfR^yibAYLVOeLKafrn-$rRqKH~6(9QryDu#EdJZvl z^~Y*yh6S3;FMF`k|Do|h;T=(JiuP-4n)3DNcg+_~Bc%aerbMpauq2HwAn?Ve*K=E?1M_!?)%X*5(Z~_?}ir%R>+2dx1m5 E<8vnwJpcdz literal 0 HcmV?d00001 diff --git a/dvips.patch b/dvips.patch index bdd3376..5e8bf12 100644 --- a/dvips.patch +++ b/dvips.patch @@ -1,11 +1,15 @@ +--- + tex.el | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + --- tex.el -+++ tex.el 2015-11-14 12:10:30.386677534 +0200 -@@ -426,7 +426,7 @@ ++++ tex.el 2022-09-10 15:13:15.964170324 +0000 +@@ -423,7 +423,7 @@ string." ;; TeX-print-command. (defcustom TeX-print-command -- "{ test -e %s.dvi && %(o?)dvips -P%p %r %s; } || lpr -P%p %o" -+ "{ test -e %s.dvi && %(o?)dvips %r -f %s | lpr -P%p; } || lpr -P%p %o" +- "{ test -e %d && %(o?)dvips -P%p %r %s; } || lpr -P%p %o" ++ "{ test -e %d && %(o?)dvips %r -f %s | lpr -P%p; } || lpr -P%p %o" "Command used to print a file. First `%p' is expanded to the printer name, then ordinary expansion is diff --git a/emacs-auctex.changes b/emacs-auctex.changes index 3c14d28..a44f463 100644 --- a/emacs-auctex.changes +++ b/emacs-auctex.changes @@ -1,3 +1,141 @@ +------------------------------------------------------------------- +Mon Sep 12 08:33:25 UTC 2022 - Dr. Werner Fink + +- Update to 13.1 + * In math environments 'gather', 'gather*', 'gathered', 'multline' + and 'multline*', fill commands such as 'M-q' and 'C-c C-q C-e' are + disabled. This sorts out the inconsistency between those and + 'equation', 'displaymath' environments, in latter of which filling + is already disabled. + + If you want filling in such environments, customize + 'LaTeX-indent-environment-list' to remove them. + + Auto fill continues to work in such environment anyway. + + In addition, AUCTeX adds support of alignment at '&' sign in + 'align'-like environments such as 'alignat', 'aligned' and so on, + as well as 'matrix'-like environments such as 'pmatrix', 'bmatrix' + and so on. + + * Now two commands 'Texindex' and 'Texi2dvi' are available when you + type 'C-c C-c' in Texinfo mode. The command 'Texindex' runs + 'texindex' on index files and 'Texi2dvi' runs 'pdftexi2dvi' or + 'texi2dvi' according to the value of 'TeX-PDF-mode'. + + So you can typeset Texinfo documents into PDF or DVI format from + within AUCTeX. + + * AUCTeX's own help messages for LaTeX errors are now shown only for + LaTeX runs. AUCTeX shows raw error/warning messages found in + '.log' files for runs of formats other than LaTeX, such as plain + TeX, ConTeXt and Texinfo, as it does even for LaTeX runs when it + can't find a matching entry in its own help message catalogue. + + Due to this change, customize option 'TeX-error-description-list' + can no longer have a fallback entry that matches any error. If + your customized value includes such entry, typically '(".*" . "No + help available")', please remove it. + + * Two functions 'TeX-split-string' and 'TeX-assoc' are now obsolete + and will be removed in future release. If your personal code uses + these functions, use 'split-string' and 'assoc-string' instead. + + * The function 'TeX-read-key-val' now accepts a function call as + second argument. This change should help AUCTeX style writers who + use 'TeX-arg-key-val' and have to deal with dynamic key-values. + Example of usage: + (TeX-add-style-hook "foo" + (lambda () + (TeX-add-symbols + '("bar" (TeX-arg-key-val (function-returning-key-val)))))) + + * Since AUCTeX 12.2, 'C-x C-w' accidentally disabled the parse on + save in that buffer, even when you enabled 'TeX-auto-save' option. + This bug was fixed. + + * AUCTeX now requires GNU Emacs 24.3 or higher. ++ + * Old implementations for viewers were discarded, as announced long + before. The variables 'TeX-output-view-style' and 'TeX-view-style' + have no effect now. The former placeholders '%v' and '%vv' in + 'TeX-command-list' are ignored. + + * AUCTeX now uses lexical binding which has been introduced in Emacs + 24. This change should have no user-visible effect and require no + manual adaptions except in the following cases. + + - Entries added to the customization variable 'TeX-expand-list' + also had access to variables 'command' and 'pos'. Those are + now properly declared and named 'TeX-expand-command' and + 'TeX-expand-pos'. + + - Entries added to the customization variable 'TeX-expand-list' + had access to a variable 'file' which was bound to + 'TeX-active-master', i.e., it evaluated to either the master + or region file. This usage must be replaced with either + 'TeX-active-master' or 'TeX-active-master-with-quotes'. + + - Viewer entries in 'TeX-view-program-list' also had access to a + variable 'file' which was bound to the name of the master or + region file without extension. Instead, the function + 'TeX-active-master' has to be used now. + + - Macro argument parsing functions could set a variable + 'exit-mark' to the buffer position where point should be left + after all arguments have been read. This variable is now + named 'TeX-exit-mark'. + + - The functions in 'LaTeX-section-hook' had access or modified + the previously undeclared variables 'title', 'name', 'level', + 'done-mark', and 'toc'. These variables are now properly + declared and have the 'LaTeX-' prefix, e.g., + 'LaTeX-done-mark'. + + - The functions in 'ConTeXt-numbered-section-hook' and + 'ConTeXt-unnumbered-section-hook' had access or modified the + previously undeclared variables 'title', 'name', 'level', + 'done-mark', and 'reference'. These variables are now + properly declared and have the 'ConTeXt-' prefix, e.g., + 'ConTeXt-title'. + + - The functions in 'TeX-translate-location-hook' could access + and modify the free variables 'file', 'line', 'error', + 'offset', 'context', and 'string'. Those are now properly + declared variables with the prefix 'TeX-translate-location-', + e.g., 'TeX-translate-location-file'. + + * The constant 'LaTeX-dialect' has been renamed to 'TeX-dialect' and + moved from 'latex.el' to 'tex.el'. 'LaTeX-dialect' now is an + obsolete alias. + + * The style 'latexinfo.el' is removed from AUCTeX. 'latexinfo.el' + was meant to support latexinfo which in return was a LaTeX-2.09 + extension of Texinfo, but didn't manage to replace Texinfo. + + * The style 'siunitx.el' is updated to support package version 3. + Key-value options provided by older package versions are removed, + deprecated macros and units are not supported anymore. + + * AUCTeX has preliminary support for LaTeX-hooks. Hooks provided by + LaTeX kernel are known and available for completion in + '\AddToHook', '\RemoveFromHook' and '\AddToHookNext'. + + * AUCTeX is now able to place all generated output files, including + those that are produced by applications running under AUCTeX, + temporary files related to region processing and preview-latex + files, in an output directory. To use this feature, set the new + user option 'TeX-output-dir' to the absolute path of the output + directory or a relative path which would be interpreted as being + relative to the master file in a multifile document. + + Note that this feature doesn't work if the document includes sub + file placed in sub directory below the main file via '\include' + command. + + * Many other bugs were fixed. +- Port patch dvips.patch + ------------------------------------------------------------------- Thu Oct 14 10:07:35 UTC 2021 - Dr. Werner Fink diff --git a/emacs-auctex.spec b/emacs-auctex.spec index ecc44a8..d15fab4 100644 --- a/emacs-auctex.spec +++ b/emacs-auctex.spec @@ -1,7 +1,7 @@ # # spec file for package emacs-auctex # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,14 +34,14 @@ BuildRequires: texinfo BuildRequires: texlive-collection-latexextra BuildRequires: texlive-tex BuildRequires: texlive-texinfo -Version: 12.3 +Version: 13.1 Release: 0 Summary: AUC TeX: An Emacs Extension -License: GPL-2.0-or-later +License: GPL-3.0-or-later Group: Productivity/Editors/Emacs -Source0: http://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz -Source1: http://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz.sig -URL: http://www.gnu.org/software/auctex +Source0: https://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz +Source1: https://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz.sig +URL: https://www.gnu.org/software/auctex # Allows to select printer instance # PATCH-FEATURE-UPSTREAM dvips.patch Patch0: dvips.patch @@ -85,16 +85,16 @@ you cannot use this package for XEmacs. --with-doc-dir=/tmp/auctex/doc/preview \ --with-tex-dir=/tmp/auctex/latex/preview find , -name '*.elc' | xargs -r rm -f - make %{?_smp_mflags} - make -C doc clean - make -C doc %{?_smp_mflags} - make -C doc extradist + %make_build + %{__make} %{_make_output_sync} -C doc clean + %{__make} %{_make_output_sync} -C doc %{?_smp_mflags} + %{__make} %{_make_output_sync} -C doc extradist rm -rf /tmp/auctex %install export LC_CTYPE=ISO-8859-1 mkdir -p %{buildroot}%{_sitedir}/site-start.d - make install DESTDIR=%{buildroot} + %make_install DESTDIR=%{buildroot} rm -rf %{buildroot}%{_aucdir}/auto pushd %{buildroot}%{_aucdir}/ emacs --no-site -batch -L %{buildroot}%{_sitedir}/auctex \