From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Filename auto complete doesn't work in tramp mode Date: Thu, 23 May 2013 15:03:22 +0200 Message-ID: <87mwrlc0h1.fsf@gmx.de> References: <87sj1gsr88.fsf@gmx.de> <519B2A48.1010201@mousecar.com> <87sj1f9zbx.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1369314233 28813 80.91.229.3 (23 May 2013 13:03:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 May 2013 13:03:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ravi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 23 15:03:53 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UfVBQ-0002ud-MZ for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 15:03:52 +0200 Original-Received: from localhost ([::1]:50764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfVBP-0007vp-Ua for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 09:03:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfVBA-0007vL-JH for help-gnu-emacs@gnu.org; Thu, 23 May 2013 09:03:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfVB5-00033U-IG for help-gnu-emacs@gnu.org; Thu, 23 May 2013 09:03:36 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:59185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfVB2-00031W-9R for help-gnu-emacs@gnu.org; Thu, 23 May 2013 09:03:31 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.32]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MKOUK-1Udr0y41o6-001kKr for ; Thu, 23 May 2013 15:03:26 +0200 Original-Received: (qmail invoked by alias); 23 May 2013 13:03:26 -0000 Original-Received: from p5DCA3241.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [93.202.50.65] by mail.gmx.net (mp032) with SMTP; 23 May 2013 15:03:26 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19W7s1HlQ5WBpecn4G0+ponmC/P/fkSqRvv1Qb2rY RGpsemdAzkT3t7 In-Reply-To: (Ravi's message of "Thu, 23 May 2013 17:51:44 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90996 Archived-At: Ravi 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.=E2=80=8B > > 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 " 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 =3D shift; if ($ARGV[2]) { return lc($str); } else { return $str; } } opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); @files =3D 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.