From unknown Fri Aug 15 15:30:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2686 <2686@debbugs.gnu.org> To: bug#2686 <2686@debbugs.gnu.org> Subject: Status: tramp-file-name-handler Reply-To: bug#2686 <2686@debbugs.gnu.org> Date: Fri, 15 Aug 2025 22:30:36 +0000 retitle 2686 tramp-file-name-handler reassign 2686 emacs submitter 2686 Tom Hughes severity 2686 normal thanks From tom@compton.nu Mon Mar 16 04:36:04 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Mar 2009 11:36:04 +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=3.0 required=4.0 tests=ONEWORD 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.13.8/8.13.8/Debian-3) with ESMTP id n2GBa034029537 for ; Mon, 16 Mar 2009 04:36:02 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjB6u-0003uX-5R for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 07:36:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjB6p-0003sa-VU for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 07:35:59 -0400 Received: from [199.232.76.173] (port=49080 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjB6p-0003sX-P9 for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 07:35:55 -0400 Received: from gate.compton.nu ([217.169.19.106]:41371 helo=gosford.compton.nu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LjB6p-0006PG-Au for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 07:35:55 -0400 Received: from bericote.compton.nu ([2001:8b0:bd:1:218:f3ff:fe9f:32b6]:35081) by gosford.compton.nu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LjB6i-0004QE-2T for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 11:35:51 +0000 Received: from vauxhall.uk.cyberscience.com ([172.16.2.15]:45127 ident=thh) by bericote.compton.nu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LjB6h-0003Lc-Sq for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 11:35:47 +0000 Message-ID: <49BE3993.7050901@compton.nu> Date: Mon, 16 Mar 2009 11:35:47 +0000 From: Tom Hughes User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: tramp-file-name-handler Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) In emacs 22.3 any attempt to tab complete a local filename in a buffer which is visiting a remote file using tramp results in a "Not a tramp file name" error. In other words if I just do C-x C-f to load a file, and starting a local filename without first killing the minibuffer contents, then I get that error if I hit tab to do completion. The reason for this is the addition of a call to substitute-in-file-name at the top of tramp-file-name-handler. This was intended to expand environment variables but has the side effect of removing the tramp filename from the start of the buffer leaving just a local filename. When that value is then passed to with-parsed-tramp-file-name it raises the error when it tries to dissect the name. I guess the solution is to check the foreign flag before making the call to with-parsed-tramp-file-name and if it is not set to just pass the operation on? Tom -- Tom Hughes (tom@compton.nu) http://www.compton.nu/ From rgm@gnu.org Wed Mar 18 13:38:47 2009 Received: (at 2686-done) by emacsbugs.donarmstrong.com; 18 Mar 2009 20:38:47 +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=-6.0 required=4.0 tests=HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2IKcihQ002242 for <2686-done@emacsbugs.donarmstrong.com>; Wed, 18 Mar 2009 13:38:45 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Lk2XD-000853-Rt; Wed, 18 Mar 2009 16:38:43 -0400 From: Glenn Morris To: 2686-done@debbugs.gnu.org Subject: Re: bug#2686: tramp-file-name-handler References: <49BE3993.7050901@compton.nu> X-Spook: Abbas bomb covert video NASA LLNL Iran BCCI Roswell X-Ran: 4pKE=bl}'nfP0>%m=|}aw6L}wM'%T4mqbs2|yoFwZ}DwER0?4ShPb*.IHKKdP$[RU6V"&C X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 18 Mar 2009 16:38:43 -0400 In-Reply-To: <49BE3993.7050901@compton.nu> (Tom Hughes's message of "Mon, 16 Mar 2009 11:35:47 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Tom Hughes wrote: > In emacs 22.3 any attempt to tab complete a local filename in a buffer > which is visiting a remote file using tramp results in a "Not a tramp > file name" error. > > In other words if I just do C-x C-f to load a file, and starting a local > filename without first killing the minibuffer contents, then I get that > error if I hit tab to do completion. Thanks. I can see this in emacs 22.3, but it seems to be already fixed in the current CVS trunk, so will be fixed in Emacs 23.1. From unknown Fri Aug 15 15:30:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Thu, 16 Apr 2009 14:24:08 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator