Accepting request 1102168 from editors

- Run TeX-auto-generate-global in emacs only once if auctex or
  TeXLive becomes updated to generate all auto lisp files. 

- 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)

OBS-URL: https://build.opensuse.org/request/show/1102168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/emacs-auctex?expand=0&rev=43
This commit is contained in:
Dominique Leuenberger 2023-08-03 15:30:47 +00:00 committed by Git OBS Bridge
commit b833b6c4df
8 changed files with 115 additions and 17 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2b797e0eaf8e657aa7d4baa5a99badad683d1ffdc1b7c58ced9f2aa02eabcda8
size 1600209

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ac7800d1668878aef02f9a6441e4690815171757ae65fd523e829c5de874aa3
size 3001160

3
auctex-13.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e7e402abcf846694eba7719925bf095c23ef33a5e6602201c74b6ca60944035
size 1667548

BIN
auctex-13.2.tar.gz.sig Normal file

Binary file not shown.

View File

@ -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

View File

@ -1,3 +1,73 @@
-------------------------------------------------------------------
Thu Aug 3 11:31:29 UTC 2023 - Dr. Werner Fink <werner@suse.de>
- 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 <werner@suse.de>
- Update to 13.2
• AUCTeX no longer refuses to insert dollar sign when you type $ at
point where AUCTeX thinks the current math mode didnt start with
dollar(s). AUCTeX assumes the user knows that it isnt 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 arent 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 <werner@suse.de>

View File

@ -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