From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: _RDS_ Newsgroups: gmane.emacs.devel Subject: Re: ange-ftp with lftp Date: Thu, 9 May 2019 09:18:56 -0700 Message-ID: References: <871s17u0yx.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ad9c5b058876d028" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="73479"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Andy Norman , Maintainer To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 09 18:30:57 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 1hOlwe-000Ixp-HW for ged-emacs-devel@m.gmane.org; Thu, 09 May 2019 18:30:56 +0200 Original-Received: from localhost ([127.0.0.1]:57584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOlwd-0007V5-IK for ged-emacs-devel@m.gmane.org; Thu, 09 May 2019 12:30:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOllp-0004t5-6q for emacs-devel@gnu.org; Thu, 09 May 2019 12:19:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOlln-0005Cx-V7 for emacs-devel@gnu.org; Thu, 09 May 2019 12:19:45 -0400 Original-Received: from mail-vs1-xe2c.google.com ([2607:f8b0:4864:20::e2c]:40339) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOlll-0004xU-RF for emacs-devel@gnu.org; Thu, 09 May 2019 12:19:42 -0400 Original-Received: by mail-vs1-xe2c.google.com with SMTP id c24so1782194vsp.7 for ; Thu, 09 May 2019 09:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6sJLzv57nOjTbH1hUG2T1y9OIbUoCTHxT+3YKRaGICQ=; b=tnq4AFTx3yv5Nd9H8rpKQor0ofROaGmFKV+voNyW0JHcxQRxj1DTE2DGBiEAT4FR96 jV8XbkYio1r/rWbl0gmnfS/jF0nZ22w0DRfkdNRJygvHwbgdxvA+gHlaWUhz9mtTOR9N W7FDPA+oVgwsGjO3ginA2PDe1J6Jcqkwy6CY6dV2JAm28q5nSWX8CBzqwI+a6AnjMcC5 jWkx81Vs6LzHZoNxr9T5G/zZoxIqLRm3o/rmOE8l/AHB9JGnfIxJ7hlqpYgy8m+PhDwP z/jsRaHsI7mWUlkEknjVfgEh/ciqePDqp1bqszeUsMzDgqXnQmRP5/1fVph3Xuni7chA tIgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6sJLzv57nOjTbH1hUG2T1y9OIbUoCTHxT+3YKRaGICQ=; b=cL4EpQHlz3MUwHrkF+WJjgFA76awIBNZzBmiqKIxAi+0ERRlDZ23S4hYgUuqWDWPdC Oy2CbmtsLTjrOWz2OOC2MEvqO5M6HHk4g2PoLBZ4UPB1vjeAG/Qr3X5xE/dOYDFkAkPd qs4Q1QMWpYUDcQ+E9j7YWsbeQo8L6PHJk6d15wkNoxSvxcozJ6Hv0FjgopuRP1iQxWFz HiDMomNNIvgulIur6Ef2rrnW97K7yKynApkTGOTBtuplX3yDYKk7fKfJX1OiyccGheqO ND+vz2ZvHuCQdXH7b8xv9Pqbbw3H0zoG/I7gHpTMRZIRd0yNfTtuVMQHDg3eEdZytCsh Pt5w== X-Gm-Message-State: APjAAAVZkgsOk7reBap+GM0D/4V3kIZAS3XOTySV1ybaHhXA5kUPts9A 7F9WvhuXwRHu1ZylwUgYuiNEJNnUWuO0wt0ioLk= X-Google-Smtp-Source: APXvYqz9kJGGa8NSdHimGGen0rCAlClckNHSnhsJhiPmrjHUv0b/lS3eOu0BhtNjl6UP2SzIDmFEtXxTkigwJ/XDopk= X-Received: by 2002:a67:af10:: with SMTP id v16mr2801753vsl.149.1557418772109; Thu, 09 May 2019 09:19:32 -0700 (PDT) In-Reply-To: <871s17u0yx.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::e2c X-Mailman-Approved-At: Thu, 09 May 2019 12:29:59 -0400 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:236339 Archived-At: --000000000000ad9c5b058876d028 Content-Type: text/plain; charset="UTF-8" Thanks for all the suggestions. Slackware does not use ftp, only lftp. But, CentOS has both. The ftp client there acted properly. For my purposes, I'll just use lftp in a terminal & forgo dired. Guido On Thu, May 9, 2019 at 8:00 AM Michael Albinus wrote: > _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. > --000000000000ad9c5b058876d028 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for all the suggestions.

Slackwa= re does not use ftp, only lftp. But, CentOS has both. The ftp client there = acted properly.

For my purposes, I'll just use= lftp in a terminal & forgo dired.

Guido=C2=A0=




On Thu, May 9, 2019 at 8= :00 AM Michael Albinus <michae= l.albinus@gmx.de> wrote:
_RDS_ <rds1944@gmail.com> 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
>
>=C2=A0 =C2=A0 =C2=A0emacs /ftp:anonymous@slackware.cs.utah.edu:/slackwa= re/
>
> 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
>=C2=A0 =C2=A0(load "ange-ftp") ;;redundant?
>=C2=A0 =C2=A0(require 'ange-ftp)
>=C2=A0 =C2=A0(setq ange-ftp-default-user "anonymous")
>=C2=A0 =C2=A0(setq ange-ftp-generate-anonymous-password t)
>=C2=A0 =C2=A0(setq ange-ftp-ftp-program-name "lftp")
>=C2=A0 =C2=A0(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.
--000000000000ad9c5b058876d028--