From 705f6b3943c885b680b5f95f535ffc52cbc46c12 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 11 Jan 2015 20:36:19 -0500 Subject: Rewrite bog-all-citekeys --- bog.el | 5 ++--- 1 file 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 () -- cgit v1.2.3