diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2020-04-16 12:05:02 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2020-04-16 12:14:38 +0200 |
commit | d5a7df8c02f04102d50a5cd2290262f59f2b1415 (patch) | |
tree | 6d0842717c72525cc866b9e6ad927a33288b26bd /lisp/obsolete/vc-arch.el | |
parent | 7839390f271211882414f167e8e680b3154ee929 (diff) | |
download | emacs-d5a7df8c02f04102d50a5cd2290262f59f2b1415.tar.gz emacs-d5a7df8c02f04102d50a5cd2290262f59f2b1415.tar.bz2 emacs-d5a7df8c02f04102d50a5cd2290262f59f2b1415.zip |
Use directory-files-no-dot-files-regexp wherever possible
Suggested by Paul Eggert.
* lisp/files.el (directory-files-no-dot-files-regexp):
Clarify semantics and purpose.
* lisp/dired.el (dired-re-no-dot):
Define as obsolete alias of directory-files-no-dot-files-regexp.
(dired-delete-file):
* lisp/gnus/gnus-util.el (gnus-delete-directory):
* lisp/net/ange-ftp.el (ange-ftp-delete-directory):
* lisp/obsolete/vc-arch.el (vc-arch-trim-revlib):
* lisp/org/ob-core.el (org-babel-remove-temporary-directory):
* lisp/vc/vc-rcs.el (vc-rcs-unregister):
Use directory-files-no-dot-files-regexp.
Diffstat (limited to 'lisp/obsolete/vc-arch.el')
-rw-r--r-- | lisp/obsolete/vc-arch.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/obsolete/vc-arch.el b/lisp/obsolete/vc-arch.el index bcdefac5187..93bd991eb3a 100644 --- a/lisp/obsolete/vc-arch.el +++ b/lisp/obsolete/vc-arch.el @@ -597,20 +597,21 @@ CALLBACK expects (ENTRIES &optional MORE-TO-COME); see (unless (file-writable-p rl-dir) (error "No writable revlib directory found")) (message "Revlib at %s" rl-dir) - (let* ((archives (directory-files rl-dir 'full (rx (or (not ".") "...")))) + (let* ((archives (directory-files rl-dir 'full + directory-files-no-dot-files-regexp)) (categories (apply 'append (mapcar (lambda (dir) (when (file-directory-p dir) - (directory-files dir 'full - (rx (or (not ".") "..."))))) + (directory-files + dir 'full directory-files-no-dot-files-regexp))) archives))) (branches (apply 'append (mapcar (lambda (dir) (when (file-directory-p dir) - (directory-files dir 'full - (rx (or (not ".") "..."))))) + (directory-files + dir 'full directory-files-no-dot-files-regexp))) categories))) (versions (apply 'append |