Skip to content

Commit

Permalink
Use PUSH instead of ADD-TO-LIST
Browse files Browse the repository at this point in the history
Duplicates are removed later.
  • Loading branch information
tlikonen committed Jun 21, 2014
1 parent 09fb447 commit 0a96c76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wcheck-mode.el
Expand Up @@ -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)
Expand Down

0 comments on commit 0a96c76

Please sign in to comment.