emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] elpa 84dfb76 13/51: Do not use add-to-list for let-bound variable


From: Tassilo Horn
Subject: [elpa] elpa 84dfb76 13/51: Do not use add-to-list for let-bound variable
Date: Sun, 22 May 2016 07:22:48 +0000 (UTC)

branch: elpa
commit 84dfb7646584e81333f15027656724ce7a93369e
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]