branch: elpa
commit 84dfb7646584e81333f15027656724ce7a93369e
Author: Mosè Giordano <[email protected]>
Commit: Mosè Giordano <[email protected]>
Do not use add-to-list for let-bound variable
* style/tikz.el (TeX-TikZ-find-named-points): Replace add-to-list with
`push'.
---
style/tikz.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/style/tikz.el b/style/tikz.el
index 8b1cc3a..e468dc3 100644
--- a/style/tikz.el
+++ b/style/tikz.el
@@ -164,14 +164,14 @@ them as a list of strings, dropping the '()'."
(let* ((env-end (save-excursion
(LaTeX-find-matching-end)
(point)))
- (matches ()))
+ (matches))
;; TODO: Handle cases where we are in a nested environment, \scope
;; for example.
(save-excursion
(LaTeX-find-matching-begin)
(save-match-data
(while (re-search-forward TeX-TikZ-point-name-regexp env-end t)
- (add-to-list 'matches (match-string 1)))))
+ (push (match-string 1) matches))))
matches))
(defun TeX-TikZ-arg-named-point (_ignored &optional prefix)