branch: externals/auctex commit ba0b1af33f04378d9dd8758921717d71a1c6cac7 Author: Ikumi Keita <ik...@ikumi.que.jp> Commit: Ikumi Keita <ik...@ikumi.que.jp>
Prevent inadvertent destruction of list variable * latex.el (LaTeX-common-initialization): Apply `copy-sequence' to the last argument of `delete-dups'+`append'. --- latex.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/latex.el b/latex.el index 6a8b2fd..b4fd7d3 100644 --- a/latex.el +++ b/latex.el @@ -6219,7 +6219,10 @@ function would return non-nil and `(match-string 1)' would return (setq-local TeX-auto-full-regexp-list (delete-dups (append LaTeX-auto-regexp-list - plain-TeX-auto-regexp-list))) + ;; Prevent inadvertent destruction + ;; of `plain-TeX-auto-regexp-list'. + (copy-sequence + plain-TeX-auto-regexp-list)))) (LaTeX-set-paragraph-start) (setq paragraph-separate