[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex a589542 15/26: Add defensive `save-match-data'
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex a589542 15/26: Add defensive `save-match-data' |
Date: |
Thu, 12 Aug 2021 11:18:22 -0400 (EDT) |
branch: externals/auctex
commit a589542d9296cd18f117efbbd77e1f84d6a095a7
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Add defensive `save-match-data'
* preview.el.in (preview-set-texinputs): Follow the instruction
"Simple Match Data Access" in elisp reference:
A search which fails may or may not alter the match data. In the
current implementation, it does not, but we may change it in the future.
Don’t try to rely on the value of the match data after a failing search.
---
preview.el.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/preview.el.in b/preview.el.in
index b73b779..9dda658 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -2981,7 +2981,7 @@ With prefix argument REMOVE, remove it again."
(setq pattern (regexp-quote preview-TeX-style-dir))
(dolist (env (cons "TEXINPUTS=" (copy-sequence process-environment)))
(if (string-match "\\`\\(TEXINPUTS[^=]*\\)=" env)
- (unless (string-match pattern env)
+ (unless (save-match-data (string-match pattern env))
(setenv (match-string 1 env)
(concat preview-TeX-style-dir
(substring env (match-end 0))))))))))
- [elpa] externals/auctex 01b30cb 02/26: Fix filling of code-and-comment lins where code ended in \% (bug#48937), (continued)
- [elpa] externals/auctex 01b30cb 02/26: Fix filling of code-and-comment lins where code ended in \% (bug#48937), Tassilo Horn, 2021/08/12
- [elpa] externals/auctex ae6a21d 07/26: Fix arguments given to makeglossaries, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex c504093 06/26: ; * latex.el: Avoid potential compiler warning., Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 8c81f42 09/26: Fix doc strings and comment, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 98a059a 10/26: ; * doc/changes.texi: Fix markups., Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 30a7d81 11/26: Update document, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 9b4627c 08/26: ; Fix TODO, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex d813213 12/26: Improve tool bar appearance, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 4a0bfe3 17/26: Clean up temporal markers, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 21a725b 14/26: Fix order of arguments, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex a589542 15/26: Add defensive `save-match-data',
Tassilo Horn <=
- [elpa] externals/auctex ac9405b 13/26: * doc/auctex.texi (Modes and Hooks): Fix hook name., Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 5aef4bb 16/26: Add support for LaTeX hook macros, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex f200e28 18/26: * tex-fold.el (TeX-fold-macro-spec-list): Add entry for "footref"., Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 2ca3d18 21/26: Fix slowdown of font lock in doctex mode, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 41610c7 24/26: Add index files as clean target in Texinfo mode, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 097ec6c 25/26: Avoid superfluous output directories, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex ceb169a 26/26: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 14e485c 20/26: ; Suppress spurious space in info output, Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 5d33c2a 19/26: Be more precise about the first element in `LaTeX-math-list', Tassilo Horn, 2021/08/12
- [elpa] externals/auctex 0152938 22/26: Update style/ulem.el, Tassilo Horn, 2021/08/12