From unknown Fri Aug 15 21:20:01 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2686: tramp-file-name-handler Reply-To: Tom Hughes , 2686@debbugs.gnu.org Resent-From: Tom Hughes Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 16 Mar 2009 11:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2686 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123720336429544 (code B ref -1); Mon, 16 Mar 2009 11:45:02 +0000 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 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 unknown Fri Aug 15 21:20:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Tom Hughes Subject: bug#2686 closed by Glenn Morris (Re: bug#2686: tramp-file-name-handler) Message-ID: References: <49BE3993.7050901@compton.nu> X-Emacs-PR-Message: they-closed 2686 X-Emacs-PR-Package: emacs Reply-To: 2686@debbugs.gnu.org Date: Wed, 18 Mar 2009 20:45:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1237409105-3595-1" This is a multi-part message in MIME format... ------------=_1237409105-3595-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #2686: tramp-file-name-handler It has been closed by Glenn Morris . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Glenn Morris by replying to this email. --=20 2686: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2686 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1237409105-3595-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1237409105-3595-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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/ ------------=_1237409105-3595-1--