unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Joshua Branson <jbranso@fastmail.com>
Cc: 32591@debbugs.gnu.org
Subject: bug#32591: 26.1; Ido-find-file does not intuitiely support tramp
Date: Thu, 30 Aug 2018 17:19:11 +0200	[thread overview]
Message-ID: <87d0tzx4pc.fsf@gmx.de> (raw)
In-Reply-To: <87mut4q63l.fsf@fastmail.com> (Joshua Branson's message of "Thu,  30 Aug 2018 10:30:54 -0400")

Joshua Branson <jbranso@fastmail.com> writes:

Hi Joshua,

> 1)  Default Emacs Tramp and Ido mode have non-intuitive ways of
> searching for a remote file.
>
> M-x ido-find-file 
>
> "Find File: ~//ssh:joshua@localhost#2222"  TAB does not prompt me for a
> password.  Instead I just see "[No Match]".

There's no way to know that it is a remote file name. The second colon
is missing.

I bet, that typing "Find File: ~//ssh:joshua@localhost#2222:" gives you
what you want.

> 2)  Default Emacs Tramp and Ido mode have non-intuitive ways of opening
> remote files.
>
> M-x ido-find-file
>
> "Find File: ~//ssh:joshua@localhost#2222:/home/joshua/hello"
>
> Sometimes opens a local file instead of opening a remote file.  I can't
> reliably reproduce this behavior though.

This is more interesting. But I would need a reliable recipe to see the problem.

> 3)  Ido grays out the initial "~/" if one starts to type out tramp
> syntax, but un-greys out those characters when it shouldn't.
>
> Type the following in ido-find-file
>
> "Find File:  ~//ssh:joshua@localhost#2222"
>
> "~/" is greyed out.

Ido greys out "~/" because of the double slash. It has nothing to do with
a remote file name. Again, there is no remote file name, only a string
which might be a remote file name when it is complete.

> Type a : to specify a path and watch the "~/" get un-greyed out.

That seems to be an ido problem. With plain "M-x find-file" I cannot
reproduce it.

However, even if this grey out does not work as expected, I believe that
opening the file (after entering RET) still works as expected.

> Thanks for listening

Best regards, Michael.





  parent reply	other threads:[~2018-08-30 15:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-30 14:30 bug#32591: 26.1; Ido-find-file does not intuitiely support tramp Joshua Branson
2018-08-30 14:26 ` Colin Baxter
2018-08-31 14:50   ` Joshua Branson
2018-08-30 15:19 ` Michael Albinus [this message]
2021-08-12 13:25   ` Lars Ingebrigtsen
2021-08-12 14:15     ` Andreas Schwab
2021-08-12 14:27     ` 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=87d0tzx4pc.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=32591@debbugs.gnu.org \
    --cc=jbranso@fastmail.com \
    /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).