From: Ivan Shmakov <ivan@siamics.net>
To: 19594@debbugs.gnu.org
Subject: bug#19594: url-ftp: should not be aliased to url-file; url-file: use Tramp
Date: Wed, 14 Jan 2015 11:12:14 +0000 [thread overview]
Message-ID: <87ppahvcoh.fsf@violet.siamics.net> (raw)
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’s no FTP server
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, – 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.
--
FSF associate member #7257 np. The Alchemist — Iron Maiden … B6A0 230E 334A
next reply other threads:[~2015-01-14 11:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-14 11:12 Ivan Shmakov [this message]
2015-01-15 23:22 ` bug#19594: url-ftp: should not be aliased to url-file; url-file: use Tramp Glenn Morris
2015-01-15 23:47 ` Ivan Shmakov
2015-01-16 8:42 ` Eli Zaretskii
2015-01-18 18:50 ` bug#19594: using commit identifiers in bug reports Ivan Shmakov
2015-01-18 18:50 ` Ivan Shmakov
2015-01-18 18:58 ` Eli Zaretskii
2015-01-23 14:52 ` Ivan Shmakov
2015-01-23 16:21 ` Eli Zaretskii
2015-01-23 17:06 ` Dmitry Gutov
2015-01-23 20:33 ` Eli Zaretskii
2015-01-23 20:45 ` Ivan Shmakov
2015-01-23 21:23 ` Eli Zaretskii
2015-01-30 20:54 ` Ivan Shmakov
2015-01-18 20:33 ` Dmitry Gutov
2015-01-19 3:30 ` Eli Zaretskii
2015-01-19 3:32 ` Dmitry Gutov
2019-10-01 16:24 ` bug#19594: url-ftp: should not be aliased to url-file; url-file: use Tramp Stefan Kangas
2019-10-01 17:09 ` Lars Ingebrigtsen
2019-10-01 17:25 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ppahvcoh.fsf@violet.siamics.net \
--to=ivan@siamics.net \
--cc=19594@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.