From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#27631: dired a/*/b Date: Sat, 29 Jul 2017 21:20:35 +0900 (JST) Message-ID: References: <87o9sth2oi.fsf@jidanni.org> <877ezcxtd3.fsf@calancha-pc> <83y3rrfm26.fsf@gnu.org> <87fudkv91l.fsf@calancha-pc> <87d18nk5tq.fsf@detlef> <877eyt2e6b.fsf@calancha-pc> <877eys6a9w.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-966496107-1501330837=:26107" X-Trace: blaine.gmane.org 1501330871 8651 195.159.176.226 (29 Jul 2017 12:21:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 29 Jul 2017 12:21:11 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: 27631@debbugs.gnu.org, Tino Calancha To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 29 14:21:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dbQjy-000207-GZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jul 2017 14:21:06 +0200 Original-Received: from localhost ([::1]:52222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbQk4-00084d-Ds for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jul 2017 08:21:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbQjy-00084K-LZ for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2017 08:21:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbQjv-0002V8-Fi for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2017 08:21:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58071) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dbQjv-0002V2-Br for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2017 08:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dbQju-0007Kq-Bb for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2017 08:21:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jul 2017 12:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27631 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27631-submit@debbugs.gnu.org id=B27631.150133084628154 (code B ref 27631); Sat, 29 Jul 2017 12:21:02 +0000 Original-Received: (at 27631) by debbugs.gnu.org; 29 Jul 2017 12:20:46 +0000 Original-Received: from localhost ([127.0.0.1]:60748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbQje-0007K2-Ct for submit@debbugs.gnu.org; Sat, 29 Jul 2017 08:20:46 -0400 Original-Received: from mail-pg0-f44.google.com ([74.125.83.44]:37898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbQjc-0007Jp-N0 for 27631@debbugs.gnu.org; Sat, 29 Jul 2017 08:20:45 -0400 Original-Received: by mail-pg0-f44.google.com with SMTP id k190so55506805pgk.5 for <27631@debbugs.gnu.org>; Sat, 29 Jul 2017 05:20:44 -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=PZ1iAcxz48GeXA3apeZKNRHJZTvrFTFgBru8ERdVNTY=; b=QFlkf2aebpPHnlzR5QoJ7Ul+57dFNaFApRJqJcFwdQs9nfULrIxPmpQd8XHsi+a6WP AQy6PYWgH+i6gDXEwSLzVAwqoPM8pfLKVEiXsbwgzoIGfOW2VPWzaEYANL2kEWDvcMSG rP1vPagLd8qy0EJtz5LjNo+ty1Uim+XPRCbo9KrmZKv8xwIN4NMf6fNavhvECSxSEXki KAOaVfVYD5wMbviWLkd/gGTivBFTGPITJFuDyDRVAIBOa93rEUmAc2/4NewuqJfUC2QD vgo+WszYT2pzPLKeXJz6CZO+Qf6rNRy5qH9dvJobYpko5wZnXixxhtt+g2NrV4JXNrws TRNw== 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=PZ1iAcxz48GeXA3apeZKNRHJZTvrFTFgBru8ERdVNTY=; b=YpBzhubX0WDp0ezKaT0I+3ylrUfd1St40LSA9nvTXNHQbW1j2sIUtdz2eHsBnPvlhy HdKz6fxD87p+k/cJYjQ7tMKW3WkQu9Cs3H7s5rF9F3VZtjr9fVEG6MHMjC6MoyTxACxc s20PV9hL013QlOZIA6YL3GbbPx299qtROBlCuJHLSnRUIGVbS39o0Bv+/kol/e2cL8JH 1251sabOMHHLv3aQ8k2BiB3vgorGMYhkDjDOrYhx9gu1dFOTSddvIPe6CrWJjLM/tY+1 g+5B1XMez/eq9/NLwIVw1g4CnUacecn40RSCL/7p4OfAYh8LcAi2q5sIJOdAk8QZzEdj X5RA== X-Gm-Message-State: AIVw113B5Sk5KGmFiB85J+jla69Bkosw7D95LH6+KSIx1R4ls4y7BnC7 ukcgGGIxrpDV3g== X-Received: by 10.99.143.67 with SMTP id r3mr9935840pgn.126.1501330838891; Sat, 29 Jul 2017 05:20:38 -0700 (PDT) Original-Received: from calancha-pc ([240f:6e:fb29:1:9ee6:2511:da80:1c7e]) by smtp.gmail.com with ESMTPSA id 15sm12168793pfm.32.2017.07.29.05.20.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jul 2017 05:20:38 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <877eys6a9w.fsf@detlef> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135117 Archived-At: --8323329-966496107-1501330837=:26107 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 28 Jul 2017, Michael Albinus wrote: >> If i try I) with tramp, for instance calling sudo: >> /sudo:calancha@calancha-pc:/home/calancha/soft/emacs-master/src/*/gray* RET >> then i get: >> >> tramp-file-name-handler: Couldn’t ‘cd /home/calancha/soft/emacs-master/src/\*/’ > > Same error here. The backtrace shows me: > > --8<---------------cut here---------------start------------->8--- > tramp-file-name-handler(insert-directory "/ssh:localhost:/home/albinus/src/emacs/src/*/gray*" "--dired -al" t nil) > insert-directory("/ssh:localhost:/home/albinus/src/emacs/src/*/gray*" "--dired -al" t nil) > dired-insert-directory("/ssh:localhost:/home/albinus/src/emacs/src/*/gray*" "-al" nil t t) > dired-readin-insert() > dired-readin() > dired-internal-noselect("/ssh:localhost:/home/albinus/src/emacs/src/*/gray*" nil) > dired-noselect("/ssh:localhost:~/src/emacs/src/*/gray*" nil) > dired("/ssh:localhost:~/src/emacs/src/*/gray*" nil) > funcall-interactively(dired "/ssh:localhost:~/src/emacs/src/*/gray*" nil) > call-interactively(dired nil nil) > command-execute(dired) > --8<---------------cut here---------------end--------------->8--- > > I believe it is wrong to expand wilcards in `insert-directory'. It is > not designed for that. Expanding must happen in > `dired-insert-directory', which calls then `insert-directory' for the > results. Hi Michael, thank you for your advice on this. I have a new version which handle the expansion in `dired-insert-directory'. I pushed a new branch with the newest patch: origin/feature/dired-wildcard-in-dir-bug#27631 When the user is neither using 'ls-lisp' nor 'eshell-ls', then we run in the remote host something like: (process-file "/bin/sh" nil (current-buffer) nil "-c" (format "ls %s %s" switches wildcard))) I have tested it running tramp in a remote machine and it seems to work. What do you think? Tino --8323329-966496107-1501330837=:26107--