summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-10-31 02:08:19 -0400
committerKyle Meyer <kyle@kyleam.com>2014-11-01 01:21:31 -0400
commitce3edaf2d13eed514d27bece505519496258146a (patch)
treee5f1573b0ea81bb3ff6ba7b08983103edb40bb81
parentb9c2f006c8a8a4358ac30fec7c7523da8ff5350f (diff)
downloadbog-ce3edaf2d13eed514d27bece505519496258146a.tar.gz
bog-citekeys-in-file: Replace add-to-list with push
-rw-r--r--bog.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/bog.el b/bog.el
index 15ece92..cbe9324 100644
--- a/bog.el
+++ b/bog.el
@@ -317,8 +317,8 @@ be preceded by a characters in `bog-allowed-before-citekey'."
(org-mode)
(insert-file-contents file)
(while (re-search-forward bog-citekey-format nil t)
- (add-to-list 'refs (match-string-no-properties 0))))
- refs))
+ (push (match-string-no-properties 0) refs)))
+ (-distinct refs)))
(defun bog-heading-citekeys-in-file (file)
(with-temp-buffer