unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Live System User <nyc4bos@aol.com>
To: 10085@debbugs.gnu.org
Cc: Michael Albinus <michael.albinus@gmx.de>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#10085: Tramp method completions
Date: Sat, 23 Apr 2016 16:08:32 -0400	[thread overview]
Message-ID: <8760v8xf3z.fsf@aol.com> (raw)
In-Reply-To: <87ty5yu6or.fsf@gmx.de>

Hi,

I reported this bug to the tramp-devel mailing list and was told that
this bug was already reported as Bug#10085.

This bug is still present in GNU Emacs 25.0.92.1

Should I open up a new bug report and have Bug#10085 merged
with it so that this old bug (initially reported in November, 2011).
may receive renewed attention?  Or should I just add my bug report
to Bug#10085 as I am now doing?

Here is my bug report below.

Thanks.

I'm having a problem with Tramp and completion.

1. I type C-x C-f (find-file)
   I see "Find file: ~/ in the echo area
2. I type /ssh: and TAB
   I see as completion candidates

Click on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
ssh:127.0.0.1:
ssh:localhost.localdomain:
ssh:localhost:

3. I type : so the prompt now displays:

    Find file: ~//ssh::


4. I press TAB and see the error:

Tramp: Opening connection for ssh using ssh...failed


Now the prompt says:

  Find file: ~//ssh:ssh:

and, of course, if I were to press another TAB it would yields
a "[No match]" message

5. If I then remove the ~/ and second ssh from prompt so that it
   now displays:

     Find file: /ssh::

  and press TAB, the completion candidates now yield:

Click on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
ssh:127.0.0.1: 	ssh:localhost.localdomain:
ssh:localhost: 	ssh:ssh:



Why was ssh:ssh added as a completion canidate?

This probably why the prompt now shows:

  Find file: /ssh:ssh

6. If I then remove the second ssh: so that prompt shows:

     Find file: /ssh::

  and press TAB, I get the error:

Tramp: Opening connection for ssh using ssh...failed

 and the prompt returns back to:

  Find file: /ssh:ssh:


It appears that once Tramp gets ahold of ~// it doesn't
let go.

This is into contrast to not invoking Tramp.

Consider:

 C-x C-f

and the prompt

 Find file: ~/

and typing /etc so that the prompt is now:

  Find file: ~//etc

Pressing TAB yields

  Find file: ~//etc/

and another TAB shows the files in /etc as completion
canndidates.

The ~/ here (and in Tramp after step 2 above) is greyed out.

Also, it appears that

   ~//ssh:: TAB
   ~//ssh:localhost: TAB

behave diffently as it appears that ~//ssh:localhost: TAB works as I
expect whereas ~//ssh:: TAB does not.

Perhaps :: doesn't imply localhost?


Thanks.







  parent reply	other threads:[~2016-04-23 20:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-20 15:58 bug#10085: 24.0.91; completion-pcm--find-all-completions returns wrong remote file names Michael Albinus
2011-11-22 17:04 ` Stefan Monnier
2011-11-22 22:13   ` Michael Albinus
2011-11-22 23:05     ` Stefan Monnier
2011-11-23  6:43       ` Michael Albinus
2011-11-23 14:04         ` Stefan Monnier
2011-11-23 20:28           ` Michael Albinus
2011-11-24  2:10             ` Stefan Monnier
2016-04-27 14:16             ` Stefan Monnier
2016-04-27 18:37               ` Michael Albinus
2016-04-27 19:16                 ` Stefan Monnier
2016-05-02  7:19                   ` Michael Albinus
2011-11-22 19:05 ` Stefan Monnier
2011-11-22 21:55   ` Michael Albinus
2012-03-30 18:28 ` Stefan Monnier
2012-03-31 12:36   ` Michael Albinus
2012-03-31 15:29     ` Stefan Monnier
2016-04-23 20:08 ` Live System User [this message]
2016-04-24  8:22   ` bug#10085: Tramp method completions Michael Albinus

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760v8xf3z.fsf@aol.com \
    --to=nyc4bos@aol.com \
    --cc=10085@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=monnier@iro.umontreal.ca \
    /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 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).