]> git.eshelyaron.com Git - emacs.git/commit
(file-expand-wildcards): Handle patterns ending in "/"
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 10 Dec 2023 00:46:07 +0000 (19:46 -0500)
committerEshel Yaron <me@eshelyaron.com>
Thu, 21 Dec 2023 20:50:51 +0000 (21:50 +0100)
commit8bc521bf202e8a378681310eddb7bf58dd2587ab
treea7ef418d392a53d2501fb8a9a50473668077d226
parentb9d51d968f43b0228a4e8201f3fe696a2022a761
(file-expand-wildcards): Handle patterns ending in "/"

The bug was encountered via the ls-lisp advice on Dired but
it actually affects all uses of `file-expand-wildcards`,
so better fix it there.

* lisp/files.el (file-expand-wildcards): Fix bug#60819.
* lisp/ls-lisp.el (ls-lisp--dired): Undo commit b365a7cc32e2.
* test/lisp/files-tests.el (files-tests--expand-wildcards): New test.

(cherry picked from commit 6cc1418fc3e8107cab2c9824c367ba7762235aef)
lisp/files.el
lisp/ls-lisp.el
test/lisp/files-tests.el