diff --git a/auctex-13.1.tar.gz b/auctex-13.1.tar.gz deleted file mode 100644 index b05109d..0000000 --- a/auctex-13.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b797e0eaf8e657aa7d4baa5a99badad683d1ffdc1b7c58ced9f2aa02eabcda8 -size 1600209 diff --git a/auctex-13.1.tar.gz.sig b/auctex-13.1.tar.gz.sig deleted file mode 100644 index 4325c53..0000000 Binary files a/auctex-13.1.tar.gz.sig and /dev/null differ diff --git a/auctex-13.2-auto-TL-2023.tar.xz b/auctex-13.2-auto-TL-2023.tar.xz new file mode 100644 index 0000000..3c15c57 --- /dev/null +++ b/auctex-13.2-auto-TL-2023.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ac7800d1668878aef02f9a6441e4690815171757ae65fd523e829c5de874aa3 +size 3001160 diff --git a/auctex-13.2.tar.gz b/auctex-13.2.tar.gz new file mode 100644 index 0000000..b445aba --- /dev/null +++ b/auctex-13.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e7e402abcf846694eba7719925bf095c23ef33a5e6602201c74b6ca60944035 +size 1667548 diff --git a/auctex-13.2.tar.gz.sig b/auctex-13.2.tar.gz.sig new file mode 100644 index 0000000..a298b33 Binary files /dev/null and b/auctex-13.2.tar.gz.sig differ diff --git a/dvips.patch b/dvips.patch index 5e8bf12..fdb736c 100644 --- a/dvips.patch +++ b/dvips.patch @@ -4,7 +4,7 @@ --- tex.el +++ tex.el 2022-09-10 15:13:15.964170324 +0000 -@@ -423,7 +423,7 @@ string." +@@ -429,7 +429,7 @@ string." ;; TeX-print-command. (defcustom TeX-print-command diff --git a/emacs-auctex.changes b/emacs-auctex.changes index c47c921..56e3b5d 100644 --- a/emacs-auctex.changes +++ b/emacs-auctex.changes @@ -1,3 +1,73 @@ +------------------------------------------------------------------- +Thu Aug 3 11:31:29 UTC 2023 - Dr. Werner Fink + +- Run TeX-auto-generate-global in emacs only once if auctex or + TeXLive becomes updated to generate all auto lisp files. + +------------------------------------------------------------------- +Wed Aug 2 11:11:34 UTC 2023 - Dr. Werner Fink + +- Update to 13.2 + • AUCTeX no longer refuses to insert dollar sign when you type ‘$’ at + point where AUCTeX thinks the current math mode didn’t start with + dollar(s). AUCTeX assumes the user knows that it isn’t in math + mode actually. + You can keep the former behavior by enabling the new customize + option ‘TeX-refuse-unmatched-dollar’. + * AUCTeX supports completion-at-point of macro and environment + arguments in LaTeX buffers. The responsible function recognizes + the argument position and extracts the corresponding candidates + from the variables ‘TeX-symbol-list’ and ‘LaTeX-environment-list’. + * AUCTeX underlines the argument of macros which produce underlined + text in the final product with ‘font-latex-underline-face’. The + corresponding keyword class is called ‘underline-command’. See the + section for fontification of macros if you dislike this feature and + wish to deactivate it. + * Support for the Sioyek document viewer is added. + * AUCTeX now requires GNU Emacs 25.1 or higher. + * AUCTeX tracks the change in Emacs where initial inputs in the + minibuffer during queries are getting phased out. Queries for the + mandatory arguments of macros and environments are adjusted where + applicable. The value which will be used after hitting ‘RET’ + without other input is shown in the prompt in parentheses prefixed + with ‘default’. For this change the signature of the function + ‘TeX-arg-length’ is altered. The old argument list was: + (defun TeX-arg-length (optional &optional prompt + initial-input definition default) + whereas the new one is: + (defun TeX-arg-length (optional &optional prompt + default initial-input definition) + Note the position change of ‘DEFAULT’. + * Indenting of conditionals is improved. Code inside constructs like + ‘\ifx . \else . \fi’ is correctly indented. An interface for style + files is also introduced which can add their macros to the + indentation engine. Check the file ‘algpseudocode.el’ for an + example. + * You can optionally enable indent inside square brackets ‘[]’ by new + user options ‘TeX-indent-open-delimiters’ and + ‘TeX-indent-close-delimiters’. + * Now ‘tex-buf.el’ is merged into ‘tex.el’ and no longer exists. If + your personal code has ‘(require 'tex-buf)’, one of the following + prescriptions would serve. + 1. Remove ‘(require 'tex-buf)’. + 2. Replace it with ‘(require 'tex)’. + 3. Replace it with ‘(require 'latex)’. + * When you edit a document divided into multiple files, auto parsed + information for all sub files are saved under ‘auto’ subdirectory + at master directory when ‘TeX-parse-self’ and ‘TeX-auto-save’ + options are enabled. Now you can have support ‘.el’ file saved + under ‘auto’ subdirectory of each directory of the sub file when + the sub files aren’t located at the master directory. + To achieve that, set new user option ‘TeX-auto-save-aggregate’ to + ‘nil’. + * There was another hook where former dynamic free variables could be + used. The usage was invalidated at version 13.1, by introduction + of lexical binding over AUCTeX. + The functions in ‘TeX-region-hook’ could access the free variables + ‘master-buffer’ and ‘orig-buffer’. Those are now named + ‘TeX-region-master-buffer’ and ‘TeX-region-orig-buffer’, + respectively. + ------------------------------------------------------------------- Thu Apr 13 09:23:22 UTC 2023 - Dr. Werner Fink diff --git a/emacs-auctex.spec b/emacs-auctex.spec index 4240f5e..f9891c8 100644 --- a/emacs-auctex.spec +++ b/emacs-auctex.spec @@ -16,11 +16,13 @@ # +%bcond_with tex4auto +%define tlversion 2023 +%if %{undefined ext_el} +%define ext_el .gz +%endif + Name: emacs-auctex -BuildRequires: emacs-x11 -BuildRequires: ghostscript_any -BuildRequires: texlive -BuildRequires: texlive-latex Obsoletes: ge_auc Provides: auc-tex Provides: auctex @@ -29,12 +31,18 @@ Requires: emacs Requires: texlive-latex Requires: texlive-tools Supplements: (texlive and emacs) +BuildRequires: emacs-x11 BuildRequires: makeinfo BuildRequires: texinfo +%if %{with tex4auto} +BuildRequires: ghostscript_any +BuildRequires: texlive BuildRequires: texlive-collection-latexextra +BuildRequires: texlive-latex BuildRequires: texlive-tex BuildRequires: texlive-texinfo -Version: 13.1 +%endif +Version: 13.2 Release: 0 Summary: AUC TeX: An Emacs Extension License: GPL-3.0-or-later @@ -42,6 +50,7 @@ Group: Productivity/Editors/Emacs 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 Source2: auctex.keyring +Source3: auctex-%{version}-auto-TL-%{tlversion}.tar.xz URL: https://www.gnu.org/software/auctex # Allows to select printer instance # PATCH-FEATURE-UPSTREAM dvips.patch @@ -65,6 +74,7 @@ you cannot use this package for XEmacs. %define _sitedir %{_datadir}/emacs/site-lisp %define _aucdir %{_sitedir}/auctex +%define _smp_mflags -j1 %prep %setup -n auctex-%{version} @@ -87,7 +97,7 @@ you cannot use this package for XEmacs. --with-texmf-dir=%{_datadir}/texmf \ --with-doc-dir=/tmp/auctex/doc/preview \ --with-tex-dir=/tmp/auctex/latex/preview - find , -name '*.elc' | xargs -r rm -f + find . -name '*.elc' | xargs -r rm -f %make_build %{__make} %{_make_output_sync} -C doc clean %{__make} %{_make_output_sync} -C doc %{?_smp_mflags} @@ -98,15 +108,28 @@ you cannot use this package for XEmacs. export LC_CTYPE=ISO-8859-1 mkdir -p %{buildroot}%{_sitedir}/site-start.d %make_install DESTDIR=%{buildroot} - rm -rf %{buildroot}%{_aucdir}/auto - pushd %{buildroot}%{_aucdir}/ - emacs --no-site -batch -L %{buildroot}%{_sitedir}/auctex \ + pushd %{buildroot}%{_aucdir}/auto/ +%if %{with tex4auto} + cwd + echo "Run the command TeX-auto-generate-global in mini buffer" + emacs-gtk --no-site -L %{buildroot}%{_sitedir}/auctex \ --eval '(setq TeX-lisp-directory "%{buildroot}%{_aucdir}")' \ --eval '(setq TeX-auto-global "%{buildroot}%{_aucdir}/auto")' \ - -l %{buildroot}%{_sitedir}/tex-site.el -f TeX-auto-generate-global + -l %{buildroot}%{_sitedir}/tex-site.el + exit 1 +%else + TLVERSION=$(rpm -q --qf '%%{VERSION}' -f /etc/texmf) + if test %{tlversion} -eq ${TLVERSION%%%%.*} + then + tar --use-compress-program=xz -xf %{S:3} + touch %{buildroot}%{_aucdir}/auto/.nosearch + else + echo Rerun with %%bcond_without tex4auto to generate new + echo auctex-%{version}-auto-TL-${TLVERSION%%%%.*}.tar.xz + exit 1 + fi +%endif popd - touch %{buildroot}%{_aucdir}/auto/.nosearch - find %{buildroot}%{_aucdir}/auto/ -name '*.elc' | xargs -r rm -f cat <<-EOF > %{buildroot}%{_sitedir}/suse-start-auctex.el ;;; suse-start-auctex.el ;; @@ -155,7 +178,9 @@ done %doc %{_infodir}/*.info*.gz %{_aucdir}/*.el %{_aucdir}/*.elc -%{_aucdir}/auto/*.el +%{_aucdir}/auto/*.el%{ext_el} +%{_aucdir}/auto/*.elc +%{_aucdir}/auto/.nosearch %{_aucdir}/images/*.xpm %{_aucdir}/style/*.el %{_aucdir}/style/*.elc