From: Michael Albinus <michael.albinus@gmx.de>
To: Ravi <ra.ravi.rav@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Filename auto complete doesn't work in tramp mode
Date: Thu, 23 May 2013 15:03:22 +0200 [thread overview]
Message-ID: <87mwrlc0h1.fsf@gmx.de> (raw)
In-Reply-To: <CAFQs6PeVMm_uu0JPnYwt+aM8dJ-b96AT4VMy8hZaJn8H+aOMXg@mail.gmail.com> (Ravi's message of "Thu, 23 May 2013 17:51:44 +0530")
Ravi <ra.ravi.rav@gmail.com> writes:
> Hi Michael,
Hi Ravi,
> Thanks, at least its some start! I do not know Perl and know little
> elisp but will surely try to triage the problem as much as I can.
>
> The log is available in base64 encoding at:
> http://pastebin.com/qbbAFC8n
> (you can copy paste text in a text editor, save it and run command
> "base64 -d <filename>" to get original contents)
Thanks for this. In fact, "M-x base64-decode-region" in an Emacs buffer
is sufficient :-)
Well, it looks like there is a Perl problem on your remote host. Tramp
checks for Perl versions, but it might not be good enough in your case.
What happens, if you call the following in a remote shell on that host:
--8<---------------cut here---------------start------------->8---
which \perl5
--8<---------------cut here---------------end--------------->8---
And if it looks trustworthy, please call the following in the remote
shell:
--8<---------------cut here---------------start------------->8---
\perl5 -e 'sub case {
my $str = shift;
if ($ARGV[2]) {
return lc($str);
}
else {
return $str;
}
}
opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n");
@files = readdir(d); closedir(d);
foreach $f (@files) {
if (case(substr($f, 0, length($ARGV[1]))) eq case($ARGV[1])) {
if (-d "$ARGV[0]/$f") {
print "$f/\n";
}
else {
print "$f\n";
}
}
}
print "ok\n"
' /home/ '' 0
--8<---------------cut here---------------end--------------->8---
> Thanks a lot for you efforts Michael.
> -Ravi
Best regards, Michael.
next prev parent reply other threads:[~2013-05-23 13:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-21 6:27 Filename auto complete doesn't work in tramp mode Ravi
2013-05-21 7:54 ` Michael Albinus
2013-05-21 8:03 ` ken
2013-05-22 6:35 ` Ravi
2013-05-22 8:46 ` Michael Albinus
2013-05-23 12:21 ` Ravi
2013-05-23 13:03 ` Michael Albinus [this message]
2013-05-23 14:23 ` Ravi
2013-05-24 7:17 ` Michael Albinus
2013-05-24 13:22 ` Ravi
2013-05-22 6:34 ` Ravi
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=87mwrlc0h1.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
--cc=ra.ravi.rav@gmail.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.
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).