From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#19594: url-ftp: should not be aliased to url-file; url-file: use Tramp Date: Tue, 1 Oct 2019 18:24:56 +0200 Message-ID: References: <87ppahvcoh.fsf@violet.siamics.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="98460"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 19594@debbugs.gnu.org To: Ivan Shmakov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 01 18:44:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFLG7-000PN9-B5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Oct 2019 18:44:19 +0200 Original-Received: from localhost ([::1]:44814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFLG5-00029k-S5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Oct 2019 12:44:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55148) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFKyW-0008Au-9j for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 12:26:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFKyP-0003Je-Tc for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 12:26:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54008) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFKyP-0003JN-Qc for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 12:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFKyP-0007hS-JZ for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 12:26:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87ppahvcoh.fsf@violet.siamics.net> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Oct 2019 16:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19594 X-GNU-PR-Package: emacs Original-Received: via spool by 19594-submit@debbugs.gnu.org id=B19594.156994712729532 (code B ref 19594); Tue, 01 Oct 2019 16:26:01 +0000 Original-Received: (at 19594) by debbugs.gnu.org; 1 Oct 2019 16:25:27 +0000 Original-Received: from localhost ([127.0.0.1]:34593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFKxl-0007gA-SV for submit@debbugs.gnu.org; Tue, 01 Oct 2019 12:25:27 -0400 Original-Received: from mail-pl1-f180.google.com ([209.85.214.180]:46511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFKxf-0007fo-8K for 19594@debbugs.gnu.org; Tue, 01 Oct 2019 12:25:20 -0400 Original-Received: by mail-pl1-f180.google.com with SMTP id q24so5704521plr.13 for <19594@debbugs.gnu.org>; Tue, 01 Oct 2019 09:25:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=9ZMsgyJSvfa4DZwtB5IsRGZMuHL5FEOAngfKYq8P3uQ=; b=UGT1dL5UxpcSYd5VctHch+a5woKo08iafhDL+gaHqGJ0zvfc87IigIFDVIGTzTwyZb 0qJ7WML6GwbPWIRfD5vbMufnOwkCo9acfdN6BUnvgkRj55jNF6H2OiFuvztS6JvxHm6Q xplBOBAOc2n4bcaR7KUaDhWtBfyU+2RU7jYYEJEt7gooQUmckvruP0qXBvDoUIPza5VM bFIcSGj8nf7meVJ9Y8TCxdR0nfK4pYAcZ18Buj8+GKbnFh0grMpfla76OzzjNpcXZE/X mglpwzO68fHNczcNPwoIcy4lCqgvOSUC0MrYGg/0EcIHvMmQBfmIqbfp/33WoF8JNOyw Kszg== X-Gm-Message-State: APjAAAXhXC+UcU9EdCe0cHmdezXriUr+RWYfhCf/OwhwXMAIDdHDUh/O G7FxRhBY2EePyzBn7koYOf9/4KwXJLfYdU3yUFyBJFIZfyE= X-Google-Smtp-Source: APXvYqx/lZErzjzFL6E/uC4Zy1+apcu7y38Db5AEabwf6gc4wE5bRjJESupTM7T1se0CXz5j1yw19JsXAujcdkYq7bI= X-Received: by 2002:a17:902:a515:: with SMTP id s21mr27743115plq.259.1569947109287; Tue, 01 Oct 2019 09:25:09 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168042 Archived-At: Ivan Shmakov writes: > Package: emacs > Severity: minor > > As of 88bc8332eb14 (2015-01-07 13:51:41 +0000), url-ftp is > implemented as an alias to url-file, which results in the > following (unexpected) behavior. > > (let ((url-proxy-services nil)) > (url-retrieve-synchronously "ftp://localhost/dev/null")) > > Returns: a buffer. Expected: failure, as there=E2=80=99s no FTP serv= er > running on localhost. > > (let ((url-proxy-services nil)) > (url-retrieve-synchronously "file://remote.example/dev/null")) > > Results in a internal-ange-ftp-mode buffer opened. Expected: > the contents of the file, as retrieved via Tramp. > > I understand that FTP was once the only widespread file transfer > protocol /and/ that ange-ftp was once the only Emacs package > providing access to remote filesystems. Now that Emacs has > Tramp, I see no reason for using ange-ftp for retrieving > resources denoted by file: scheme URIs, =E2=80=93 unless so is the > preference of the user. > > My suggestion would be that the FTP-specific code be split off > url-file.el into url-ftp.el (so that ftp: URIs would exclusively > denote resources available via FTP), /and/ new Tramp interface > (hopefully trivial) be coded into url-file.el. If the long-term plan now is to phase out the entire url library, perhaps we should close this as wontfix? Best regards, Stefan Kangas