From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: can't see existing directory on remote machine... workaround Date: Thu, 8 Oct 2020 11:43:43 -0400 Message-ID: References: <976c9210-67fe-d3f6-ca17-9c1a33567a4f@mousecar.com> Reply-To: gebser@mousecar.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11859"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 08 17:45:33 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQY6m-0002rh-38 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Oct 2020 17:45:32 +0200 Original-Received: from localhost ([::1]:55946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQY6l-0001US-13 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Oct 2020 11:45:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQY59-0001St-1q for help-gnu-emacs@gnu.org; Thu, 08 Oct 2020 11:43:51 -0400 Original-Received: from mout.perfora.net ([74.208.4.194]:42659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQY53-0001lR-H4 for help-gnu-emacs@gnu.org; Thu, 08 Oct 2020 11:43:49 -0400 Original-Received: from [192.168.0.17] ([96.27.75.237]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1M7bVJ-1kIZKU3a2f-0086Qp for ; Thu, 08 Oct 2020 17:43:43 +0200 In-Reply-To: <976c9210-67fe-d3f6-ca17-9c1a33567a4f@mousecar.com> Content-Language: en-US X-Provags-ID: V03:K1:8g5gMu6B+yVHWRpbR0n2oXM1m0EQ67v/R3nkf9kMkg3HOhhKQ/y EdjsFb7jc2C9AK2FP4VkmBSj/X+q4nFwLgbKFgif186KTDNWCzOkyJievs9N82+lXvWmoV2 V+CDoNqPC4GYW5FaMnvNXVC89K82vNmqrdUsxQbK8JTKhRUAbjtu8aHYNldMeZ6mKfvH97+ hA+aGEYT1hAEDSKKM/gGQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:v6CjTyc4//k=:CEucYNUbWuzeiFlIYXWY/p uZcq3intLkm7lvvkVhN5OufZ/VwjUlJYYG1JQwdY0rJISLM3kcxaTDZzwTYN2awLCYX0IpdIE jRLsybO2SiLHcL1kKJ/U+1t+VddE6V03mpGVP56MUGO7f2VFP/HgKG758AXFthPgEXFGRCc7S HujVvSDdLh0O3PvdhKnAHzcHFtAd7nt6xi3hP2tAOcNoG/486/Iu8ebpOYuTI4RYX6il5wJ3o 2ThWNOLp/Mpj1rblwLjl93ODK4leHVXhPMDKYzViyYJVRjPCe8YAP7GyRBEpV4S9OT6iD3MsS cGUGaAndObvvyIu1mUO33kCnelg/plhiCRpx6IPvliDTtqFhePrTkb2vMkri2D+0fXWa6hFen DZRncjsMQUFgPX6wCkjnOBBhLA8CrYaDOuqHM4kOrYJqEnXBj1DL79lFmp1tI8wEbKaF9Gn0+ EN9ePlOn8gXBMuQPxjDivzox/rbQQTcNN+GmLMHInBbU1c8tbPPmKN8NJP+FlZLyj9/DMi0wa uI9DPESuy6nadknhKNojutWCRxu4dQO13mCE8LOX/2g30GKUsPblp55qlxQy/z7HERARW+Nwa iP+v41DVdFhx0nhA6CbL0+m8eu3GLt1RqksROj44kAaHraCZZdH8/iblBUZJk+SLFj2fCU+oi 2ZNBbWVwbae7ISD/GqKe9h7zCCYUfUbjH1vO3PVFMneiDSYZ90LnXENW69vJw5a9+uJBTExDc dnrPiFoGJJ+sJidD48FJJomiH8eF30+KcmpvTkj6/C6NU7P3G9NmT0FRbxL7tySsl0bOw6hf Received-SPF: none client-ip=74.208.4.194; envelope-from=gebser@mousecar.com; helo=mout.perfora.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/08 11:43:44 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.214, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124378 Archived-At: On 10/8/20 11:17 AM, ken wrote: > My emacs has a file loaded which resides in a directory on a remote > (Linux) machine.  If from within that file's buffer window I run "C-x > C-d RETURN" (to show the files in that directory, Emacs throws an error: > > Debugger entered--Lisp error: (file-missing "Setting current directory" > "No such file or directory" "/remo:~/dir/dir2/") >   call-process("/bin/bash" nil t nil "-c" "\\ls -d -CF -- ") >   #f(compiled-function (arg1 arg2 &optional arg3 arg4) # 0x1fe9634981e3>)("/remo:~/dir/dir2/" "-CF" t nil) >   ls-lisp--insert-directory(#f(compiled-function (arg1 arg2 &optional > arg3 arg4) #) "/remo:~/dir/dir2/" "-CF" t nil) >   apply(ls-lisp--insert-directory #f(compiled-function (arg1 arg2 > &optional arg3 arg4) #) ("/remo:~/dir/dir2/" > "-CF" t nil)) >   insert-directory("/remo:~/dir/dir2/" "-CF" t nil) >   list-directory("/remo:~/dir/dir2/" nil) >   funcall-interactively(list-directory "/remo:~/dir/dir2/" nil) >   call-interactively(list-directory nil nil) >   command-execute(list-directory) > > When logged into that remote machine and cd'd into that same directory, > the bash command in the second line of the debugger output yields this: > > $ ls -d -CF -- > ./ > > I restarted emacs, but that changed nothing. > > When I try to open a new or an existing file in that directory, emacs > prompts, offering to create the directory and its parent.  > > The emacs version, the latest available in this distro, is 27.1, release > 4.1. > 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/"