From unknown Sat Jun 21 03:23:54 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5198: 23.1; find-file tramp ipv6 not a wildcard Reply-To: Kevin Ryde , 5198@debbugs.gnu.org Resent-From: Kevin Ryde Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 13 Dec 2009 00:05:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 5198 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12606625276573 (code B ref -1); Sun, 13 Dec 2009 00:05:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 13 Dec 2009 00:02:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.8 required=4.0 tests=AWL,FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBD025NJ006570 for ; Sat, 12 Dec 2009 16:02:07 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJbuX-00081B-9L for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 19:02:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJbuR-0007xh-To for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 19:02:04 -0500 Received: from [199.232.76.173] (port=55637 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJbuR-0007xO-Mc for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 19:01:59 -0500 Received: from mailout1-1.pacific.net.au ([61.8.2.208]:50356 helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NJbuQ-00061e-Om for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 19:01:59 -0500 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id DC6B7511F90 for ; Sun, 13 Dec 2009 11:01:52 +1100 (EST) Received: from blah.blah (ppp2D45.dyn.pacific.net.au [61.8.45.69]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 25E468C08 for ; Sun, 13 Dec 2009 11:01:51 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NJbuG-0004e4-KU for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2009 11:01:48 +1100 From: Kevin Ryde To: bug-gnu-emacs@gnu.org Date: Sun, 13 Dec 2009 11:01:47 +1100 Message-ID: <87ocm3ivx0.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) find-file thinks a tramp ipv6 filename like /[::1]:/etc/passwd has a wildcard and dispatches it to file-expand-wildcards. Eg. M-: (debug-on-entry 'file-expand-wildcards) C-x C-f /[::1]:/etc/passwd gives file-expand-wildcards("/scp:[::1]:/etc/passwd" t) I believe it shouldn't do this, ie. should not look at the remote identifier part when considering wildness. I struck this nosing around some options and defadvice tramp has for xemacs remote filename forms, but the ipv6 raw address form tickles it too. Tramp thread "defadvice file-expand-wildcards ad-do-it value" at http://comments.gmane.org/gmane.emacs.tramp/6980 Not sure how bad this is. It may depend how good file-expand-wildcards is on remote filenames. I seem to sometimes get max-specl-depth exceeded by its recursion, but I don't have a good reproducing for that yet, and in any case that would be a separate bug. In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-09-14 on raven, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default-enable-multibyte-characters: t From MAILER-DAEMON Sun Dec 20 15:10:20 2009 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NMS6d-00015N-VB for mharc-bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 15:10:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMS6b-00014i-1E for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 15:10:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMS6W-00013y-9T for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 15:10:16 -0500 Received: from [199.232.76.173] (port=42384 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMS6W-00013v-0v for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 15:10:12 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:59301) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NMS6V-0001eT-J6 for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 15:10:11 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NMRfG-00087C-JH; Sun, 20 Dec 2009 14:42:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Michael Albinus , 5198@debbugs.gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Dec 2009 19:42:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5198 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5198-submit@debbugs.gnu.org id=B5198.126133809631175 (code B ref 5198); Sun, 20 Dec 2009 19:42:02 +0000 Received: (at 5198) by debbugs.gnu.org; 20 Dec 2009 19:41:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NMRep-00086g-Ms for submit@debbugs.gnu.org; Sun, 20 Dec 2009 14:41:36 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NMJDe-0003m6-8I for 5198@debbugs.gnu.org; Sun, 20 Dec 2009 05:40:59 -0500 Received: (qmail invoked by alias); 20 Dec 2009 10:40:53 -0000 Received: from p4FC00CE6.dip0.t-ipconnect.de (EHLO arthur.local) [79.192.12.230] by mail.gmx.net (mp006) with SMTP; 20 Dec 2009 11:40:53 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/VJltlWITVshv4Ye8J5EJPVplx64miVOgHzPoVdz g13vZ1a+98bG5T From: Michael Albinus To: Kevin Ryde References: <87ocm3ivx0.fsf@blah.blah> <87d42drb0u.fsf@gmx.de> <87my1h5onf.fsf@blah.blah> Date: Sun, 20 Dec 2009 11:40:51 +0100 In-Reply-To: <87my1h5onf.fsf@blah.blah> (Kevin Ryde's message of "Fri, 18 Dec 2009 07:30:44 +1100") Message-ID: <87tyvm6i8c.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.66 X-Mailman-Approved-At: Sun, 20 Dec 2009 14:41:34 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Resent-Date: Sun, 20 Dec 2009 14:42:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: 5198@debbugs.gnu.org Subject: bug#5198: 23.1; find-file tramp ipv6 not a wildcard X-BeenThere: bug-gnu-emacs@gnu.org Reply-To: Michael Albinus , 5198@debbugs.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: , X-List-Received-Date: Sun, 20 Dec 2009 20:10:17 -0000 Kevin Ryde writes: > Michael Albinus writes: >> >> I've added a check in `file-expand-wildcards' to handle this case. > > Would find-file-noselect look at > > (file-remote-p filename 'localname) > > like file-expand-wildcards now too? No necessarily. It calls itself recursively with the result of file-expand-wildcards. > And/or would there be merit in a function that checked if there's > wildcards in a filename (ie. anything file-expand-wildcards could > expand), rather than a string-match? It might help if new wildness was > added one day, like bash style {xx,yy,zz} alternations or something. Maybe. OTOH, one could introduce it, when the need arises. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 19:18:58 2010 Received: (at control) by debbugs.gnu.org; 28 Jan 2010 00:18:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NaI65-00047s-GU for submit@debbugs.gnu.org; Wed, 27 Jan 2010 19:18:57 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NaI64-00047l-Ju for control@debbugs.gnu.org; Wed, 27 Jan 2010 19:18:56 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NaI60-0002yw-S0; Wed, 27 Jan 2010 19:18:52 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19296.55276.241906.965042@fencepost.gnu.org> Date: Wed, 27 Jan 2010 19:18:52 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: white X-Ran: h#dAKR=o@0uB4l2'os||UJ@O'SjR${$0-H9Su`8vp;@Z.XZ%kprrB!dwB2"'D@Gep9zN`v X-Debbugs-No-Ack: yes X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) close 5198 stop are messages missing from this report?