[PATCH] Use setq-local compatible with Emacs 26
Hello all, I noticed that commit e625dc05 of 2022-02-24 made AUCTeX incompatible with Emacs 26 by using the variadic form of setq-local that was introduced in Emacs commit 88f0c566 of 2019-10-11 and first released in Emacs 27.1. The current version of AUCTeX still lists Emacs 25.1 as the minimum compatible version (based on file auctex.el.in from commit aae80c47 of 2022-04-14), so I am guessing this was unintentional. Anyway, it triggers a byte-compilation error in my configuration, so I have attached a patch to fix the issue. I have never contributed to a Savannah project before, so please let me know if the formatting needs to be adjusted, or if I need to submit elsewhere. Thanks, Radon Rosborough From 491fae80a495f1a9fa233765e5b65b752beea7ec Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Fri, 15 Apr 2022 19:26:30 -0700 Subject: [PATCH] Avoid using variadic setq-local --- latex.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/latex.el b/latex.el index dfbe78dd..5747449c 100644 --- a/latex.el +++ b/latex.el @@ -7297,8 +7297,8 @@ function would return non-nil and `(match-string 1)' would return (set (make-local-variable 'TeX-search-files-type-alist) LaTeX-search-files-type-alist) - (setq-local beginning-of-defun-function #'LaTeX-find-matching-begin - end-of-defun-function #'LaTeX-find-matching-end) + (setq-local beginning-of-defun-function #'LaTeX-find-matching-begin) + (setq-local end-of-defun-function #'LaTeX-find-matching-end) (LaTeX-indent-commands-regexp-make) -- 2.32.0
indentation problem II
Hi Please consider In which I run LaTeX-fill-environment That seems to me also a strange result. Using an array and a pmatrix is odd I confess, but I received this file in that form. Any ideas what to do? Uwe Brauer \documentclass[12pt]{article} \usepackage{a4wide} \everymath{\displaystyle} \usepackage{amsmath} \begin{document} \begin{equation}\label{Mn} \begin{array}{rcl} \lim_{n\rightarrow\infty} M^n &=& \lim_{n\rightarrow\infty} PJ^nP^{-1} \\ \\ &=& \begin{pmatrix} 1 & 1 \\ 0 & \tfrac{999}{10} \\ \end{pmatrix} \begin{pmatrix} e^{-100t} & 0 \\ 0 & e^{-\tfrac{t}{10}} \\ \end{pmatrix} \begin{pmatrix} 1 & -\tfrac{10}{999} \\ 0 & \tfrac{10}{999} \\ \end{pmatrix} \\ \\ &=& \begin{pmatrix} e^{-100t} & \tfrac{10}{999}(e^{-\tfrac{t}{10}} - e^{-100t}) \\ 0 & e^{-\tfrac{t}{10}} \\ \end{pmatrix} \end{array} \end{equation} running LaTeX-fill-environment Results in \begin{equation}\label{Mn} \begin{array}{rcl} \lim_{n\rightarrow\infty} M^n &=& \lim_{n\rightarrow\infty} PJ^nP^{-1} \\ \\ &=& \begin{pmatrix} 1 & 1 \\ 0 & \tfrac{999}{10} \\ \end{pmatrix} \begin{pmatrix} e^{-100t} & 0 \\ 0 & e^{-\tfrac{t}{10}} \\ \end{pmatrix} \begin{pmatrix} 1 & -\tfrac{10}{999} \\ 0 & \tfrac{10}{999} \\ \end{pmatrix} \\ \\ &=& \begin{pmatrix} e^{-100t} & \tfrac{10}{999}(e^{-\tfrac{t}{10}} - e^{-100t}) \\ 0 & e^{-\tfrac{t}{10}} \\ \end{pmatrix} \end{array} \end{equation} \end{document} -- I strongly condemn Putin's war of aggression against the Ukraine. I support to deliver weapons to Ukraine's military. I support the ban of Russia from SWIFT. I support the EU membership of the Ukraine. smime.p7s Description: S/MIME cryptographic signature