diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-02-17 21:56:47 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-02-17 21:56:47 -0500 |
commit | 16b60db1d29cefa30784ed4d2965f9413bdfaf35 (patch) | |
tree | 382e04c5312c920c0fa89140dae0a71429bea023 | |
parent | 299854354c2184006194f9ff27ccba8f62e0c455 (diff) | |
download | bog-16b60db1d29cefa30784ed4d2965f9413bdfaf35.tar.gz |
bog-bib-citekeys: Rewrite with directory-files
-rw-r--r-- | bog.el | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -730,13 +730,9 @@ instead of citekeys from file names in `bog-bib-directory'." bog-bib-directory t directory-files-no-dot-files-regexp)) (when (and (file-readable-p df) (file-directory-p df)) (push df dirs))) - (push bog-bib-directory dirs)) - (-map #'file-name-base - (-mapcat - (lambda (dir) - (file-expand-wildcards - (concat (file-name-as-directory dir) "*.bib"))) - dirs))))) + (push bog-bib-directory dirs)) + (-mapcat (lambda (dir) (directory-files dir nil ".*\\.bib$")) + dirs)))) ;;; Web |