unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Ivan Shmakov <ivan@siamics.net>
Cc: 19822@debbugs.gnu.org, emacs-devel@gnu.org
Subject: bug#19822: url-retrieve: allow to fail when no document is associated with the URI
Date: Fri, 25 Dec 2015 20:00:34 +0100	[thread overview]
Message-ID: <87r3iawdyl.fsf__1890.34737782112$1451070147$gmane$org@gnus.org> (raw)
In-Reply-To: <87mw4ndny0.fsf_-_@violet.siamics.net> (Ivan Shmakov's message of "Mon, 09 Feb 2015 16:55:35 +0000")

Ivan Shmakov <ivan@siamics.net> writes:

> The handling of the news: (nntp:), irc:, and (as it seems) ftp:
> (file:) URI schemes is implemented in such a way that a
> /successful/ url-retrieve call is /not/ in fact guaranteed to
> return a “retrieved document” of any kind.  Consider, e. g.:
>
> (let ((url-proxy-services nil))
> (list (url-retrieve "news://news.aioe.org/alt.sources"
> (lambda (&rest any) (message "news: %S" any)))
> (url-retrieve "irc://irc.freenode.net:6667/x-test-channel"
> (lambda (&rest any) (message "irc:  %S" any)))))
>
> Here, the first call starts up Gnus and opens a *Summary* buffer
> for the group; the second starts Rcirc by default; either call
> returns nil.

I think all these non-http{s,} things in the URL library should be
marked obsolete and removed.  There is very little utility to them (some
have been broken for years without anybody noticing), and they are very
fiddly to maintain.

Anybody mind if I remove them for Emacs 25.2?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2015-12-25 19:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06 19:15 bug#17959: eww: FTP is not supported; but with ftp_proxy, it is Ivan Shmakov
2014-11-04 16:40 ` Ted Zlatanov
2014-11-10 21:20 ` Lars Magne Ingebrigtsen
2014-11-19  8:04   ` Ivan Shmakov
2014-11-19 17:24     ` Lars Magne Ingebrigtsen
2014-12-16 20:09     ` bug#17959: support accessing FTP services via HTTP proxies Ivan Shmakov
2015-01-12 21:40       ` Ivan Shmakov
2015-02-09 16:55         ` bug#19822: url-retrieve: allow to fail when no document is associated with the URI Ivan Shmakov
2015-12-25 19:00           ` Lars Ingebrigtsen [this message]
2015-12-28 22:07             ` Ted Zlatanov
     [not found]             ` <87fuym1b2r.fsf@lifelogs.com>
2015-12-28 22:30               ` Lars Ingebrigtsen
     [not found]           ` <87r3iawdyl.fsf@gnus.org>
2015-12-25 23:47             ` Drew Adams
2019-09-30  1:03           ` Stefan Kangas
2019-09-30  5:47             ` Lars Ingebrigtsen
2019-09-30  7:21               ` Eli Zaretskii
2019-09-30  7:30                 ` Lars Ingebrigtsen
2019-09-30  8:22                   ` Eli Zaretskii
2019-09-30 14:40                     ` Lars Ingebrigtsen
2019-09-30 15:05                       ` Eli Zaretskii
2019-10-01 13:19                       ` Stefan Kangas
2019-10-01 13:37                         ` Eli Zaretskii
2019-10-01 13:44                           ` Stefan Kangas
2019-10-01 14:51                             ` Eli Zaretskii
2019-10-01 15:13                               ` Stefan Kangas
2019-10-01 15:24                                 ` Eli Zaretskii
2019-10-01 13:56                         ` Lars Ingebrigtsen
2019-10-01 14:06                           ` Stefan Kangas
2019-10-01 14:24                             ` Stefan Kangas
2019-10-01 15:13                               ` Lars Ingebrigtsen
2019-10-01 16:07                                 ` Stefan Kangas
2015-02-09 17:04         ` bug#17959: support accessing FTP services via HTTP proxies Ivan Shmakov

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='87r3iawdyl.fsf__1890.34737782112$1451070147$gmane$org@gnus.org' \
    --to=larsi@gnus.org \
    --cc=19822@debbugs.gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ivan@siamics.net \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).