summaryrefslogtreecommitdiff
path: root/helm-tags.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-07-11 07:43:02 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-07-11 07:46:46 +0200
commitb6ff3811c8c1758c943e63a50d153956785eae58 (patch)
tree1e254854e4009b4442cd99769286d15daff0e9b7 /helm-tags.el
parent595a9e46ef12f4839472ae0089dcf483a6d1a789 (diff)
Remove some add-to-list.
* helm-tags.el (helm-etags-init): Use cl-pushnew. * helm.el (helm-log-error): Same. (helm-document-attribute): Do it. (helm-document-type-attribute): Do it.
Diffstat (limited to 'helm-tags.el')
-rw-r--r--helm-tags.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/helm-tags.el b/helm-tags.el
index 4cc4e6b5..079c2b4d 100644
--- a/helm-tags.el
+++ b/helm-tags.el
@@ -204,8 +204,9 @@ If no entry in cache, create one."
;; If an entry exists modify it.
(setcdr it (helm-etags-mtime f))
;; No entry create a new one.
- (add-to-list 'helm-etags-mtime-alist
- (cons f (helm-etags-mtime f))))))))))
+ (cl-pushnew (cons f (helm-etags-mtime f))
+ helm-etags-mtime-alist
+ :test 'equal))))))))
(defvar helm-source-etags-select nil
"Helm source for Etags.")