diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-02-17 21:56:21 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-02-17 21:56:21 -0500 |
commit | 299854354c2184006194f9ff27ccba8f62e0c455 (patch) | |
tree | 1ab8ec066359598e74e92172921f43754689b57b /bog.el | |
parent | f2c518cbd3e3a313ac518c177907cd75938f8402 (diff) | |
download | bog-299854354c2184006194f9ff27ccba8f62e0c455.tar.gz |
Rewrite bog-clean-and-rename-staged-bibs
Diffstat (limited to 'bog.el')
-rw-r--r-- | bog.el | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) |