From: Tom Hughes <tom@compton.nu>
To: bug-gnu-emacs@gnu.org
Subject: bug#2686: tramp-file-name-handler
Date: Mon, 16 Mar 2009 11:35:47 +0000 [thread overview]
Message-ID: <49BE3993.7050901@compton.nu> (raw)
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/
next reply other threads:[~2009-03-16 11:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <sivdq6mur0.fsf@fencepost.gnu.org>
2009-03-16 11:35 ` Tom Hughes [this message]
2009-03-18 20:45 ` bug#2686: marked as done (tramp-file-name-handler) Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49BE3993.7050901@compton.nu \
--to=tom@compton.nu \
--cc=2686@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.