monnier pushed a commit to branch master
in repository elpa.

commit 0a96c76ffe0b97367f2bcc7d02e049138e7c3da1
Author: Teemu Likonen <[email protected]>
Date:   Sat Jun 21 19:59:51 2014 +0300

    Use PUSH instead of ADD-TO-LIST
    
    Duplicates are removed later.
---
 wcheck-mode.el |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/wcheck-mode.el b/wcheck-mode.el
index 560da50..dd38361 100644
--- a/wcheck-mode.el
+++ b/wcheck-mode.el
@@ -1422,10 +1422,9 @@ areas, including invisible ones. Otherwise skip 
invisible text."
                                         regexp-discard
                                         (match-string-no-properties 1)))))
                          ;; Add the match to the string list.
-                         (add-to-list
-                          'strings (match-string-no-properties 1))))
+                         (push (match-string-no-properties 1) strings)))
                   (setq old-point (point)))))
-            strings))))))
+            (delete-dups strings)))))))
 
 
 (defun wcheck--paint-strings (buffer beg end strings &optional invisible)

Reply via email to