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

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

[elpa] 350/352: Use PUSH instead of ADD-TO-LIST


From: Stefan Monnier
Subject: [elpa] 350/352: Use PUSH instead of ADD-TO-LIST
Date: Mon, 07 Jul 2014 14:05:51 +0000

monnier pushed a commit to branch master
in repository elpa.

commit 0a96c76ffe0b97367f2bcc7d02e049138e7c3da1
Author: Teemu Likonen <address@hidden>
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

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