GNU bug report logs - #2686
tramp-file-name-handler

Previous Next

Package: emacs;

Reported by: Tom Hughes <tom <at> compton.nu>

Date: Mon, 16 Mar 2009 11:45:02 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2686 in the body.
You can then email your comments to 2686 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2686; Package emacs. (Mon, 16 Mar 2009 11:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tom Hughes <tom <at> compton.nu>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 16 Mar 2009 11:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Tom Hughes <tom <at> compton.nu>
To: bug-gnu-emacs <at> gnu.org
Subject: tramp-file-name-handler
Date: Mon, 16 Mar 2009 11:35:47 +0000
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 <at> compton.nu)
http://www.compton.nu/





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 18 Mar 2009 20:45:04 GMT) Full text and rfc822 format available.

Notification sent to Tom Hughes <tom <at> compton.nu>:
bug acknowledged by developer. (Wed, 18 Mar 2009 20:45:05 GMT) Full text and rfc822 format available.

Message #10 received at 2686-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 2686-done <at> debbugs.gnu.org
Subject: Re: bug#2686: tramp-file-name-handler
Date: Wed, 18 Mar 2009 16:38:43 -0400
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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Thu, 16 Apr 2009 14:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 124 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.