summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-02-17 21:56:21 -0500
committerKyle Meyer <kyle@kyleam.com>2015-02-17 21:56:21 -0500
commit299854354c2184006194f9ff27ccba8f62e0c455 (patch)
tree1ab8ec066359598e74e92172921f43754689b57b
parentf2c518cbd3e3a313ac518c177907cd75938f8402 (diff)
downloadbog-299854354c2184006194f9ff27ccba8f62e0c455.tar.gz
Rewrite bog-clean-and-rename-staged-bibs
-rw-r--r--bog.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/bog.el b/bog.el
index 783893c..6aade8e 100644
--- a/bog.el
+++ b/bog.el
@@ -648,11 +648,9 @@ Search for new BibTeX files in `bog-stage-directory', and run
This function is only useful if you use the non-standard setup of
one entry per BibTeX file."
(interactive)
- (let ((staged
- (file-expand-wildcards
- (concat (file-name-as-directory bog-stage-directory) "*.bib"))))
- (--each staged
- (bog--prepare-bib-file it t))))
+ (let ((staged (directory-files bog-stage-directory t ".*\\.bib$")))
+ (dolist (file staged)
+ (bog--prepare-bib-file file t))))
(defun bog--prepare-bib-file (file &optional new-key)
(let (bib-file)