From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: ange-ftp with lftp Date: Thu, 09 May 2019 17:00:38 +0200 Message-ID: <871s17u0yx.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="179955"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Andy Norman , Maintainer To: _RDS_ Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 09 17:01:53 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOkYT-000kes-Lc for ged-emacs-devel@m.gmane.org; Thu, 09 May 2019 17:01:53 +0200 Original-Received: from localhost ([127.0.0.1]:56122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOkYS-0005Tn-GH for ged-emacs-devel@m.gmane.org; Thu, 09 May 2019 11:01:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOkXp-0005TS-2r for emacs-devel@gnu.org; Thu, 09 May 2019 11:01:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOkXZ-0003DU-JA for emacs-devel@gnu.org; Thu, 09 May 2019 11:01:07 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:35299) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOkXX-0003Ce-Qg for emacs-devel@gnu.org; Thu, 09 May 2019 11:00:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1557414040; bh=aYZpge8zulMojg5sCU0Puc7K8Yk3ezac/6WakD+OQJk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=W5YaiNMXzPggcF8DOYpYxh1VFsB+NymYj/76g+zu7PqAM0f2QvqUEqnjQoRzSTwoz uJKUNvvijL/8rvhtF+bcwsP0F0U1wYsGw3J+n8y+ZqfTEIjmkfWRCrhJoOUVICIinU vhGF7B4lfMB9xP52pfK2MbWHAn3zZnhosYiolVAg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([178.20.95.22]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5VDE-1gfEWz458M-016t32; Thu, 09 May 2019 17:00:40 +0200 In-Reply-To: (RDS's message of "Sun, 5 May 2019 09:51:02 -0700") X-Provags-ID: V03:K1:6r2kUCaGaLDfL3O8Vo7x7qDN4jdRv6vd9u8Llyz9c/VLoT0hLf8 qH5HFesYk5r0Vi2+ZM1Z3ppE6r7cgBrr43g6qAdcNniRtXzklcZGt3kXpBnxtL0W+1g38Z4 DA7qsNhb12wtyMXNbyb9g9ZVnoA4yEjuf78h6c8gYtVgFdAucgKn2nhOGaTSRour2Vfe/Gy x3lfYUBDBp4Q32/4R/vlg== X-UI-Out-Filterresults: notjunk:1;V03:K0:jf/tfN0Y6gA=:AqN6YhP4TzfkF5HpdZZXiX tNSzNVsNfHWL4/6cFEeBo7J+hW0GYpuXee/C0k7xHEf+oeXPiozl/uS5r1BVqiZSMAwePdcJz 1LRZWMu9swaFPvp01v3IBWSDl1eEY7P/oQVN76sTTshomDcxFCf5ww7jzFiqfT7lKB295hAfr 365hBvxusvu8THHbjAryP9GXCKG7Wi/90IR0+GeTSugdzhyo37Mk6E8Kl0ybaGtMxJHIPUN8P ByiRQTXej8lbFC6jTfLGiFdGHyh6EedNoFusfix7f1r8duNWcedf9XNpPg+w1M9Wvq15ebGlI /KxMn3CqnFY+KGpK8i9T9sdWq5BmqnpJcmwFd6tc2CrT1Au0xD5D5oeKI9FI+z9AQNH8L0fir 6kVVhyDwpUG5X2FI5FNcCT5hDF+FXMLUFwPno1mAMeiE81aeCAYuUgZR6UHIXjWaXo6RKO5mv QgGWhIAr7cWJf5JHzkTShYGLDL7bsopdjOVi/WsKLHahS8FneuPmwWXNBUHFGUKzx8TlPSduD tn3AMiDtNZQn9FzUJbcCAFANc6W3YfP7bv+ed97/iVc10Q38cflTzr4rKlAKZ8IqzqfR0RJ6S HojEMgPm+8YrpbRj6b7clwxSWKIJ5GDPXl2W47Mpib90Ug1P9+1UrvY2Jini/fFvtAjvdFIhD RqrkDA7HkmZy3vsXJg9jN5IYfst9taFZc9WIjbKehi2b9dsOmgH7nWR4znjxyr/bYPGgc+UGP Y7RmYkhhvwLy6hy4Ny4/kNn1+dTqCQoUrirkXVKO+rlwfM48fEhDxkHmJyit5XPaYc2yuFIX X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236336 Archived-At: _RDS_ writes: > I am attempting to use ange-ftp in emacs 26.2 with lftp 4.8.4. > > lftp as a standalone client is fine. Inside an emacs terminal it is > operational, too. > > However, upon executing > > emacs /ftp:anonymous@slackware.cs.utah.edu:/slackware/ > > from a console or xterm or invoking C-x C-f ..., > > the emacs messages buffer displays > > "Loading ange-ftp...done > For information about GNU Emacs and the GNU system, type C-h C-a. > Opening FTP connection to slackware.cs.utah.edu... > tramp-file-name-handler: FTP Error: OPEN request failed: LFTP | > Version 4.8.4 | Copyright (c) 1996-2017 Alexander V. Lukyanov" > > Here's the relevant entries in some key files > > init.el > (load "ange-ftp") ;;redundant? > (require 'ange-ftp) > (setq ange-ftp-default-user "anonymous") > (setq ange-ftp-generate-anonymous-password t) > (setq ange-ftp-ftp-program-name "lftp") > (setq ange-ftp-ftp-program-args '("-v")) AS Yuri said, "-v" is not an lftp option. So I would set ange-ftp-ftp-program-args to '() (or nil). And there are more variables to adapt. For example, comint-prompt-regexp in the internal ange-ftp buffer has the value "^ftp> ", which doesn't fit to lftp. This is hard-coded in function internal-ange-ftp-mode. Finally, you'll need to debug ange-ftp in order to let it run with lftp. > Thank you. > > Guido Best regards, Michael.