From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel 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 Message-ID: <87r3iawdyl.fsf@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 1451070085 8084 80.91.229.3 (25 Dec 2015 19:01:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Dec 2015 19:01:25 +0000 (UTC) Cc: 19822@debbugs.gnu.org, emacs-devel@gnu.org To: Ivan Shmakov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 25 20:01:13 2015 Return-path: Envelope-to: ged-emacs-devel@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 1aCXbz-0005ny-Q6 for ged-emacs-devel@m.gmane.org; Fri, 25 Dec 2015 20:01:11 +0100 Original-Received: from localhost ([::1]:36182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCXbz-0001us-5c for ged-emacs-devel@m.gmane.org; Fri, 25 Dec 2015 14:01:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCXbo-0001un-9F for emacs-devel@gnu.org; Fri, 25 Dec 2015 14:01:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCXbk-0007w1-W5 for emacs-devel@gnu.org; Fri, 25 Dec 2015 14:01:00 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:58539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCXbk-0007vx-PN for emacs-devel@gnu.org; Fri, 25 Dec 2015 14:00:56 -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-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196852 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