unofficial mirror of emacs-devel@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: Re: 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@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



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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87mwcmb8nx.fsf@violet.siamics.net>
     [not found] ` <m31tpaiwgo.fsf@stories.gnus.org>
     [not found]   ` <87r3wz7h0e.fsf@violet.siamics.net>
     [not found]     ` <m38uj7p0h8.fsf@stories.gnus.org>
2014-11-19 18:37       ` debbugs.gnu.org: is it user-centric or developer-centric? Ivan Shmakov
2014-11-19 18:53         ` Glenn Morris
2014-11-19 19:27           ` Ivan Shmakov
     [not found]     ` <877fxricgb.fsf_-_@violet.siamics.net>
     [not found]       ` <87fvbfy8xv.fsf@violet.siamics.net>
     [not found]         ` <87mw4ndny0.fsf_-_@violet.siamics.net>
2015-12-25 19:00           ` Lars Ingebrigtsen [this message]
2015-12-25 23:47             ` bug#19822: url-retrieve: allow to fail when no document is associated with the URI Drew Adams
     [not found]           ` <87r3iawdyl.fsf__1890.34737782112$1451070147$gmane$org@gnus.org>
2015-12-28 22:07             ` Ted Zlatanov
2015-12-28 22:30               ` Lars Ingebrigtsen

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@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).