From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: dired-tests.el fails on MS-Windows Date: Fri, 4 Aug 2017 22:44:21 +0900 (JST) Message-ID: References: <83zibjz519.fsf@gnu.org> <87d18fw79z.fsf@calancha-pc> <83pocfyurp.fsf@gnu.org> <83y3qzwjx9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-618524009-1501854263=:15299" X-Trace: blaine.gmane.org 1501860300 30642 195.159.176.226 (4 Aug 2017 15:25:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2017 15:25:00 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Eli Zaretskii , Emacs developers , Tino Calancha To: Fabrice Popineau Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 04 17:24:56 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddeT9-0007iL-Ex for ged-emacs-devel@m.gmane.org; Fri, 04 Aug 2017 17:24:55 +0200 Original-Received: from localhost ([::1]:45459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddeTF-0005VT-I2 for ged-emacs-devel@m.gmane.org; Fri, 04 Aug 2017 11:25:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddcwW-0003es-Nm for emacs-devel@gnu.org; Fri, 04 Aug 2017 09:48:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddcvS-0008AZ-Ir for emacs-devel@gnu.org; Fri, 04 Aug 2017 09:47:08 -0400 Original-Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:37535) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddctt-00068k-BX; Fri, 04 Aug 2017 09:44:25 -0400 Original-Received: by mail-pg0-x22f.google.com with SMTP id y129so8223126pgy.4; Fri, 04 Aug 2017 06:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=PcdpMrRcdRmrO3t7NCd2mV1Ois0Z8chld1R6U1yjWDE=; b=mlA+/erVUCs2NNq4WmBMcmtk6eeZVC4kSuLnK+PsLao7PC3CN6sIJfCzh64HwUpxql WJHEwV/KyvLgywQiL52Tmq6+FPzQH1nu47riQhX2DR6umRsqabTTTPB2nYHFXTNbr8Nu wgmw9XkTlh0AbdznldM6P0IlyShCUrZmu4ScC5enzgOaKAvqmb9BXlABDmOGxWkVrG32 AiTvvLt+P0DlFXYWePKOK8RvRqLVyaQunnRMr78uE+46tLABqW/SzJ31y0G2wfrBT7Xi 0mdNyrv6kpF9XjoOIAWqYSTONkIHmuhxL/OmPMeg36tjvzXAh+SSiVe6fEO4xc3KZ0pl 3tww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=PcdpMrRcdRmrO3t7NCd2mV1Ois0Z8chld1R6U1yjWDE=; b=QG9NKVJ0p/xPiE1eXDxwQv2o5J+dmZFgL/ykhWrImfH0Yo1K8jIhoGBknGSA6MvljW 4b/6FUA365xdDqISpVXNG13M2+oEZUVoHNlYq7iua9jMRkK84/CEBiyARePxh4Aeidan b9OYUdl/mBdFi16HR4Yzg/JjAUX5eLDQ9QKdBUP3m/SJ1JTIIrbuebnqgmNkLp0R7Xer Dl36jXjg0OuROjP8sONw6nvaxUU8xpOJ+tfqnKDcSVG1PC23rGcixr7jR+xqoiA3myfF ouw4yC/Ux85FuFoZiXw3WBOG7q05O5T+LuTct81dj2LwU57ybgYpYOZMxyYUKcRUSl4E YGAA== X-Gm-Message-State: AIVw110TKzQvmY63l8yOlPVNNykS9m0pb3nMxYGcta3FhYeb4NlATNJG nURnn9jHGK6+Xw== X-Received: by 10.84.140.235 with SMTP id 98mr2913165plt.26.1501854264343; Fri, 04 Aug 2017 06:44:24 -0700 (PDT) Original-Received: from calancha-pc (170.224.128.101.dy.bbexcite.jp. [101.128.224.170]) by smtp.gmail.com with ESMTPSA id l17sm4558840pfk.146.2017.08.04.06.44.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Aug 2017 06:44:23 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217295 Archived-At: --8323329-618524009-1501854263=:15299 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT 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 --8323329-618524009-1501854263=:15299--