]> git.eshelyaron.com Git - emacs.git/commit
(dired-insert-directory): Obey `file-list` and `wildcard`
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 10 Dec 2023 03:55:32 +0000 (22:55 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 10 Dec 2023 04:13:44 +0000 (23:13 -0500)
commitf7cf85c3879c6857e8478bef41cce25a94759fb8
treec5d9f77b6fd7b73b39a05ffe7c7b34d46949c48e
parent6cc1418fc3e8107cab2c9824c367ba7762235aef
(dired-insert-directory): Obey `file-list` and `wildcard`

Commit 6f6639d6ed6c's support for wildcards in directories failed
to obey `file-list` and `wildcard` arguments.  Fix it.

* lisp/dired.el (dired-insert-directory): Expand directory wildcards
only if `file-list` is nil and `wildcard` is non-nil.
Also, refer back to `dir-wildcard` instead of recomputing it.
(dired-readin-insert): Pass a non-nil `wildcard` when wildcard
expansion might be needed to preserve former behavior.
lisp/dired.el
test/lisp/dired-tests.el