diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-02-19 23:02:15 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-02-19 23:02:15 -0500 |
commit | 04f545ecf42fd862ae0f7dafab12688e61c4fae2 (patch) | |
tree | 16ff5eb3298db5d3505c7df689aa0ac5538e7e2d | |
parent | 87f4e2ce8916306bb0d58c811edcc359de6fc1f1 (diff) | |
download | bog-04f545ecf42fd862ae0f7dafab12688e61c4fae2.tar.gz |
Don't sort with directory-files if not user-facing
-rw-r--r-- | bog.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -658,7 +658,7 @@ Generate a file name with the form (let (dirs) (if bog-subdirectory-group (dolist (df (directory-files bog-file-directory t - directory-files-no-dot-files-regexp)) + directory-files-no-dot-files-regexp t)) (when (and (file-readable-p df) (file-directory-p df)) (push df dirs))) (push bog-file-directory dirs)) @@ -666,7 +666,7 @@ Generate a file name with the form (lambda (dir) (cl-remove-if #'file-directory-p (directory-files - dir t directory-files-no-dot-files-regexp))) + dir t directory-files-no-dot-files-regexp t))) dirs))) (defun bog-staged-files () @@ -807,14 +807,14 @@ instead of citekeys from file names in `bog-bib-directory'." (if bog-subdirectory-group (dolist (df (directory-files bog-bib-directory t - directory-files-no-dot-files-regexp)) + directory-files-no-dot-files-regexp t)) (when (and (file-readable-p df) (file-directory-p df)) (push df dirs))) (push bog-bib-directory dirs)) (bog--maybe-sort (mapcar #'file-name-sans-extension (cl-mapcan - (lambda (dir) (directory-files dir nil ".*\\.bib$")) + (lambda (dir) (directory-files dir nil ".*\\.bib$" t)) dirs))))))) |