summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
Diffstat (limited to 'bog.el')
-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