From ce3edaf2d13eed514d27bece505519496258146a Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 31 Oct 2014 02:08:19 -0400 Subject: bog-citekeys-in-file: Replace add-to-list with push --- bog.el | 4 ++-- 1 file 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 -- cgit v1.2.3