From: ken <gebser@mousecar.com>
To: help-gnu-emacs@gnu.org
Subject: Re: can't see existing directory on remote machine... workaround
Date: Sun, 11 Oct 2020 08:17:50 -0400 [thread overview]
Message-ID: <5d5402b1-c492-5339-61f0-f55a0e96838a@mousecar.com> (raw)
In-Reply-To: <87mu0uh2vl.fsf@gmx.de>
On 10/10/20 5:00 AM, Michael Albinus wrote:
> ken <gebser@mousecar.com> writes:
>
> Hi Ken,
>>>> I found a workaround... I change the default, inserting "scp:" ... e.g.,
>>>> "/remo:~/dir/dir2/" -> "/scp:remo:~/dir/dir2/". I doubt, however, that
>>>> this workaround will change the emacs code.
>>>>
>>>> "/remo:~/dir/dir2/"
>>> I don't know whether adding "/scp:" counts as a workaround. But for sure
>>> "/remo:~/dir/dir2/" is not remote directory, a leading connection method
>>> (like "scp") is mandatory.
>>>
>> Well, then it should have been put in place automatically by emacs and
>> it wasn't.
> "Emacs" doesn't put anything in place automatically. Which package do
> you have in mind, which shall "put in place" this automatically?
>
> IOW, could you pls give us a reproducible scenario, starting with
> "emacs -Q"?
>
> Best regards, Michael.
Hi, Michael,
When I said "automatically, I meant that, for instance, when I have a
remote file open and I do "C-x C-d", emacs "automatically" puts the
current directory into the minibuffer (so that it can be edited if
desired), and then I hit "Enter" to display the file listing for that
directory. And the "current directory" here means the directory where
the file resides that was currently open. In the same way, if I have a
remote file open and then do "C-x C-f", again emacs *automatically* puts
the current directory into the minibuffer (again, which can be edited if
desired), I type in the name of the file I want to open, hit "Enter",
and emacs opens a buffer for that file. All this is great, fantastic,
and the way it should be. It's so great, in fact, that I don't notice
anymore the *entire* contents of the prompt in the minibuffer, but just
the right-hand part of the minibuffer prompt relevant to the work I'm
doing at that moment. It's worked that way for decades. So frankly, I
don't remember, because it works so well, whether there was always the
"scp:" as part of the minibuffer prompt for remote files or not. I
believe so, but that's going on very faint memory of when tramp was
first implemented in emacs decades ago and I wondered at and marveled
over its ability to seamlessly open and edit files on remote machines
pretty much in just the same way as if they were local files, this at a
time when with Windows you had to remember and specify whether a file
was on "A:" or "C:" or wherever, as if they were separate filesystems...
because, for MS, they were. Not having to remember is great... but then
occasionally remembering is helpful.
As for "which package" provides this functionality, I don't know. It
used to be a package called "tramp", which I'm sure you're quite
familiar with (being its Hauptaccoucher), but it appears all the tramp
functionality has been incorporated into emacs and so it's no longer a
separate package; "rpm -qa| grep -i tramp" returns nothing and I don't
see mention of "tramp" anymore in the dozens of emacs status messages
that go flying by when I do anything with remote files. But I probably
missed the memo on that, so while I'd very much like to know, I can't say.
It appears that the problem has fixed itself. Since implementing my
workaround for that one file, emacs now automatically includes that
"scp:" in all the minibuffer prompts for remote files. I don't know how
that could have happened, how that one small fix could propagate itself
to all subsequent instances, but my suspicion is that a recent version
update created a small corruption in my ".emacs.desktop", one which left
out that little "scp:" for one file and then all subsequent files and
directories until I put it back in, at which time it put it back in
again for all files and directories. But that's just a blind guess
based on the chronology of the problem's occurrence. Hopefully we won't
have to figure it out with certainty because the problem is now gone
forever. But if it comes back, say, after a reboot or another version
update, and the workaround fails, then we take another look.
Thanks for your reply and your interest.
Regards,
ken
next prev parent reply other threads:[~2020-10-11 12:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-08 15:17 can't see existing directory on remote machine ken
2020-10-08 15:43 ` can't see existing directory on remote machine... workaround ken
2020-10-08 17:31 ` Michael Albinus
2020-10-09 18:19 ` ken
2020-10-10 9:00 ` Michael Albinus
2020-10-11 12:17 ` ken [this message]
2020-10-11 14:00 ` 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=5d5402b1-c492-5339-61f0-f55a0e96838a@mousecar.com \
--to=gebser@mousecar.com \
--cc=help-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.
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).