From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs 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 Message-ID: <87r3iawdyl.fsf__1890.34737782112$1451070147$gmane$org@gnus.org> References: <87mwcmb8nx.fsf@violet.siamics.net> <87r3wz7h0e.fsf@violet.siamics.net> <877fxricgb.fsf_-_@violet.siamics.net> <87fvbfy8xv.fsf@violet.siamics.net> <87mw4ndny0.fsf_-_@violet.siamics.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451070147 8850 80.91.229.3 (25 Dec 2015 19:02:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Dec 2015 19:02:27 +0000 (UTC) Cc: 19822@debbugs.gnu.org, emacs-devel@gnu.org To: Ivan Shmakov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 25 20:02:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aCXcx-00079o-Gw for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Dec 2015 20:02:11 +0100 Original-Received: from localhost ([::1]:36185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCXcw-0002Rf-T6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Dec 2015 14:02:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCXcs-0002RS-2G for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 14:02:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCXco-0008Es-Sy for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 14:02:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCXco-0008Eo-PJ for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 14:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aCXco-0003pf-Iv for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 14:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Dec 2015 19:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19822 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19822-submit@debbugs.gnu.org id=B19822.145107006614640 (code B ref 19822); Fri, 25 Dec 2015 19:02:02 +0000 Original-Received: (at 19822) by debbugs.gnu.org; 25 Dec 2015 19:01:06 +0000 Original-Received: from localhost ([127.0.0.1]:35320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCXbo-0003nY-1Y for submit@debbugs.gnu.org; Fri, 25 Dec 2015 14:01:06 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:41114) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCXbl-0003nN-W3 for 19822@debbugs.gnu.org; Fri, 25 Dec 2015 14:00:58 -0500 Original-Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aCXbP-0002tp-82; Fri, 25 Dec 2015 20:00:35 +0100 In-Reply-To: <87mw4ndny0.fsf_-_@violet.siamics.net> (Ivan Shmakov's message of "Mon, 09 Feb 2015 16:55:35 +0000") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aCXbP-0002tp-82 MailScanner-NULL-Check: 1451674835.58307@5RP4WTz1hNMPiaKX8fZK/g 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: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110414 Archived-At: Ivan Shmakov 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 =93retrieved document=94 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? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no