|
From: | Tino Calancha |
Subject: | Re: dired-tests.el fails on MS-Windows |
Date: | Fri, 4 Aug 2017 22:44:21 +0900 (JST) |
User-agent: | Alpine 2.20 (DEB 67 2015-01-07) |
On Fri, 4 Aug 2017, Fabrice Popineau wrote:
(with-temp-file (expand-file-name "b.txt" dir2)) - (setq buf (dired (expand-file-name "dir*/*.txt" dir))) + (setq buf (dired (cons dir (file-expand-wildcards "dir*/*.txt")))) (dired-toggle-marks) (should (cdr (dired-get-marked-files)))) (delete-directory dir 'recursive) Am I wrong thinking that `expand-file-name' is not supposed to expand "dir*/*.txt"?
Well we are using expand for 2 different things. 1) Expand filename with directory: (expand-file-name "lis*/*file" source-directory) => "/home/calancha/soft/emacs-master/lis*/*file" ;; Like a concatenation of file + dir. 2) Expand shell wildcards. (dired (expand-file-name "lis*/*file" source-directory)) Shows a dired buffer with 3 files: lispref/Makefile lispintro/Makefile lisp/Makefile
[Prev in Thread] | Current Thread | [Next in Thread] |