From 2c749d035bd86b0cb95f05c33a8271b1e47bb08fac25052a9b3efa96aa3990e8 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 20 Sep 2016 14:21:16 +0000 Subject: [PATCH 1/2] . OBS-URL: https://build.opensuse.org/package/show/editors/emacs-auctex?expand=0&rev=33 --- 0001-Fix_bug_in_subfigure_style_filee.patch | 29 +++++++++++++++++++++ emacs-auctex.changes | 6 +++++ emacs-auctex.spec | 5 +++- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 0001-Fix_bug_in_subfigure_style_filee.patch diff --git a/0001-Fix_bug_in_subfigure_style_filee.patch b/0001-Fix_bug_in_subfigure_style_filee.patch new file mode 100644 index 0000000..8ea12af --- /dev/null +++ b/0001-Fix_bug_in_subfigure_style_filee.patch @@ -0,0 +1,29 @@ +From d2c7bb3aa56930c45722482fd64174b2504bb9a8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Mos=C3=A8=20Giordano?= +Date: Wed, 20 Jan 2016 23:00:03 +0100 +Subject: Fix bug in subfigure style file + +* style/subfigure.el ("subfigure"): Move `TeX-complete-list' inside + append argument. Fixes bug#22417. +--- + style/subfigure.el | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/style/subfigure.el b/style/subfigure.el +index e129e62..5d7525b 100644 +--- a/style/subfigure.el ++++ b/style/subfigure.el +@@ -47,8 +47,8 @@ + ;; Install completion for labels: + (setq TeX-complete-list + (append +- '(("\\\\[Ss]ubref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}"))) +- TeX-complete-list) ++ '(("\\\\[Ss]ubref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")) ++ TeX-complete-list)) + + ;; Fontification + (when (and (featurep 'font-latex) +-- +cgit v1.0 + diff --git a/emacs-auctex.changes b/emacs-auctex.changes index 7b2b3d4..91397ee 100644 --- a/emacs-auctex.changes +++ b/emacs-auctex.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 20 14:20:47 UTC 2016 - werner@suse.de + +- Add patch 0001-Fix_bug_in_subfigure_style_filee.patch + to fix build with GNU Emacs 25.1 + ------------------------------------------------------------------- Fri Nov 13 19:25:26 UTC 2015 - auxsvr@gmail.com diff --git a/emacs-auctex.spec b/emacs-auctex.spec index 25f4e55..13146de 100644 --- a/emacs-auctex.spec +++ b/emacs-auctex.spec @@ -1,7 +1,7 @@ # # spec file for package emacs-auctex # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -45,6 +45,8 @@ Url: http://www.gnu.org/software/auctex # Allows to select printer instance # PATCH-FEATURE-UPSTREAM dvips.patch Patch0: dvips.patch +# PATCH-FIX-UPSTREAM +Patch1: 0001-Fix_bug_in_subfigure_style_filee.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -68,6 +70,7 @@ you cannot use this package for XEmacs. %prep %setup -n auctex-%{version} %patch0 +%patch1 -p1 %build unset ${!LC_*} From 09e8f811481ebda2df9ad508d03e8b52b3a555f6c3c0cfa7b5a2b2cc69e413d3 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 20 Sep 2016 15:34:59 +0000 Subject: [PATCH 2/2] . OBS-URL: https://build.opensuse.org/package/show/editors/emacs-auctex?expand=0&rev=34 --- emacs-auctex.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs-auctex.spec b/emacs-auctex.spec index 13146de..60575e4 100644 --- a/emacs-auctex.spec +++ b/emacs-auctex.spec @@ -124,6 +124,11 @@ you cannot use this package for XEmacs. ;; (load "preview-latex.el" nil t t) EOF + for el in auctex.el preview-latex.el + do + test -e %{buildroot}%{_sitedir}/$el || continue + mv %{buildroot}%{_sitedir}/$el %{buildroot}%{_sitedir}/site-start.d/ + done # # Preview is part of te_latex #