diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-10-31 02:08:19 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-11-01 01:21:31 -0400 |
commit | ce3edaf2d13eed514d27bece505519496258146a (patch) | |
tree | e5f1573b0ea81bb3ff6ba7b08983103edb40bb81 /bog.el | |
parent | b9c2f006c8a8a4358ac30fec7c7523da8ff5350f (diff) | |
download | bog-ce3edaf2d13eed514d27bece505519496258146a.tar.gz |
bog-citekeys-in-file: Replace add-to-list with push
Diffstat (limited to 'bog.el')
-rw-r--r-- | bog.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |