From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Hughes Newsgroups: gmane.emacs.bugs Subject: bug#2686: tramp-file-name-handler Date: Mon, 16 Mar 2009 11:35:47 +0000 Message-ID: <49BE3993.7050901@compton.nu> Reply-To: Tom Hughes , 2686@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237213049 8640 80.91.229.12 (16 Mar 2009 14:17:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2009 14:17:29 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 15:18:46 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LjDeG-00017K-61 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2009 15:18:36 +0100 Original-Received: from localhost ([127.0.0.1]:39236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjDct-0001KD-Ov for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2009 10:17:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjBXq-0007LS-5c for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 08:03:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjBXl-0007Ei-Br for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 08:03:49 -0400 Original-Received: from [199.232.76.173] (port=56345 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjBXl-0007Ec-7B for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 08:03:45 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37434) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LjBXk-0002qO-In for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 08:03:44 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2GC3gt9003087; Mon, 16 Mar 2009 05:03:42 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2GBj2CD030819; Mon, 16 Mar 2009 04:45:02 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Tom Hughes Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 16 Mar 2009 11:45:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2686 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123720336429544 (code B ref -1); Mon, 16 Mar 2009 11:45:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 16 Mar 2009 11:36:04 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 User-Agent: Thunderbird 2.0.0.19 (X11/20090105) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 16 Mar 2009 08:03:49 -0400 X-Mailman-Approved-At: Mon, 16 Mar 2009 10:16:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26396 Archived-At: 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/