From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#27631: dired a/*/b Date: Fri, 28 Jul 2017 14:00:59 +0200 Message-ID: <877eys6a9w.fsf@detlef> References: <87o9sth2oi.fsf@jidanni.org> <877ezcxtd3.fsf@calancha-pc> <83y3rrfm26.fsf@gnu.org> <87fudkv91l.fsf@calancha-pc> <87d18nk5tq.fsf@detlef> <877eyt2e6b.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1501243420 6952 195.159.176.226 (28 Jul 2017 12:03:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2017 12:03:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27631@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 28 14:03:36 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 1db3zP-0001L9-Ob for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jul 2017 14:03:31 +0200 Original-Received: from localhost ([::1]:47911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db3zV-0007Mc-BE for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jul 2017 08:03:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db3y3-0006PX-IC for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 08:02:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1db3xy-000548-0O for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 08:02:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56621) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1db3xx-000544-To for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 08:02:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1db3xx-00039K-M9 for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 08:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jul 2017 12:02:01 +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.150124327012039 (code B ref 27631); Fri, 28 Jul 2017 12:02:01 +0000 Original-Received: (at 27631) by debbugs.gnu.org; 28 Jul 2017 12:01:10 +0000 Original-Received: from localhost ([127.0.0.1]:59298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db3x8-000387-Eh for submit@debbugs.gnu.org; Fri, 28 Jul 2017 08:01:10 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:54960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db3x6-00037p-Sc for 27631@debbugs.gnu.org; Fri, 28 Jul 2017 08:01:09 -0400 Original-Received: from detlef.gmx.de ([212.86.53.188]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LvhC4-1deYWe0isu-017Ub2; Fri, 28 Jul 2017 14:01:00 +0200 In-Reply-To: <877eyt2e6b.fsf@calancha-pc> (Tino Calancha's message of "Fri, 28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eg4xb62igEmkS2RJHZZe4rRJgIBe8A1S12i5L3VozcfJF9xz9AN 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:135079 Archived-At: Tino Calancha writes: > I) > The following should match something: > C-x d ~/src/*/gray* > > I got a dired buffer with 3 files: > bitmaps/gray1.xbm > bitmaps/gray3.xbm > bitmaps/gray.xbm The second time I've applied your patch it works. I get a similar result. Don't ask me what happened before, pilot error very likely. > II) > If i try I) with tramp, for instance calling sudo: > /sudo:calancha@calancha-pc:/home/calancha/soft/emacs-master/src/*/gray* R= ET > then i get: > > tramp-file-name-handler: Couldn=E2=80=99t =E2=80=98cd /home/calancha/soft= /emacs-master/src/\*/=E2=80=99 Same error here. The backtrace shows me: --8<---------------cut here---------------start------------->8--- tramp-file-name-handler(insert-directory "/ssh:localhost:/home/albinus/sr= c/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/*/gra= y*" 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. This relates to your description in etc/NEWS: *** Dired supports wildcards in the directory part of the file names. Best regards, Michael.