unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2686: tramp-file-name-handler
@ 2009-03-16 11:35 ` Tom Hughes
  2009-03-18 20:45   ` bug#2686: marked as done (tramp-file-name-handler) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Hughes @ 2009-03-16 11:35 UTC (permalink / raw)
  To: bug-gnu-emacs

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/







^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#2686: marked as done (tramp-file-name-handler)
  2009-03-16 11:35 ` bug#2686: tramp-file-name-handler Tom Hughes
@ 2009-03-18 20:45   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2009-03-18 20:45 UTC (permalink / raw)
  To: Glenn Morris

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]


Your message dated Wed, 18 Mar 2009 16:38:43 -0400
with message-id <sivdq6mur0.fsf@fencepost.gnu.org>
and subject line Re: bug#2686: tramp-file-name-handler
has caused the Emacs bug report #2686,
regarding tramp-file-name-handler
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
2686: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2686
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 3309 bytes --]

From: Tom Hughes <tom@compton.nu>
To: bug-gnu-emacs@gnu.org
Subject: tramp-file-name-handler
Date: Mon, 16 Mar 2009 11:35:47 +0000
Message-ID: <49BE3993.7050901@compton.nu>

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/




[-- Attachment #3: Type: message/rfc822, Size: 1998 bytes --]

From: Glenn Morris <rgm@gnu.org>
To: 2686-done@emacsbugs.donarmstrong.com
Subject: Re: bug#2686: tramp-file-name-handler
Date: Wed, 18 Mar 2009 16:38:43 -0400
Message-ID: <sivdq6mur0.fsf@fencepost.gnu.org>

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-18 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <sivdq6mur0.fsf@fencepost.gnu.org>
2009-03-16 11:35 ` bug#2686: tramp-file-name-handler Tom Hughes
2009-03-18 20:45   ` bug#2686: marked as done (tramp-file-name-handler) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).