summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-01-11 20:36:19 -0500
committerKyle Meyer <kyle@kyleam.com>2015-01-11 20:36:19 -0500
commit705f6b3943c885b680b5f95f535ffc52cbc46c12 (patch)
tree7a283fa7292dc585dcbff1f982ef8bcf376f5651 /bog.el
parent76ead8528f55fab265d8566dfb07880c49d673d2 (diff)
downloadbog-705f6b3943c885b680b5f95f535ffc52cbc46c12.tar.gz
Rewrite bog-all-citekeys
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/bog.el b/bog.el
index 9a0150b..204e8ce 100644
--- a/bog.el
+++ b/bog.el
@@ -301,9 +301,8 @@ word constituents."
(defun bog-all-citekeys ()
"Return all citekeys in notes."
(or (and bog-use-citekey-cache bog--all-citekeys)
- (setq bog--all-citekeys (apply 'append
- (-map 'bog-citekeys-in-file
- (bog-notes))))))
+ (setq bog--all-citekeys (-mapcat #'bog-citekeys-in-file
+ (bog-notes)))))
(defvar bog--all-heading-citekeys nil)
(defun bog-all-heading-citekeys ()