help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filename auto complete doesn't work in tramp mode


From: Michael Albinus
Subject: Re: Filename auto complete doesn't work in tramp mode
Date: Thu, 23 May 2013 15:03:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]