From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#19822: url-retrieve: allow to fail when no document is associated with the URI Date: Mon, 30 Sep 2019 03:03:53 +0200 Message-ID: References: <87mw4ndny0.fsf_-_@violet.siamics.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="50183"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 19822@debbugs.gnu.org, Ivan Shmakov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 30 03:05:20 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEk7r-000CrC-0y for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 03:05:19 +0200 Original-Received: from localhost ([::1]:43018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEk7p-0003Vg-9t for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 21:05:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57000) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEk7g-0003St-Cl for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 21:05:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEk7c-0007BZ-Tn for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 21:05:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEk7c-0007BV-QX for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 21:05:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEk7a-0003lX-91 for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 21:05:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87mw4ndny0.fsf_-_@violet.siamics.net> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Sep 2019 01:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19822 X-GNU-PR-Package: emacs Original-Received: via spool by 19822-submit@debbugs.gnu.org id=B19822.156980545814394 (code B ref 19822); Mon, 30 Sep 2019 01:05:02 +0000 Original-Received: (at 19822) by debbugs.gnu.org; 30 Sep 2019 01:04:18 +0000 Original-Received: from localhost ([127.0.0.1]:56293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEk6o-0003k2-Si for submit@debbugs.gnu.org; Sun, 29 Sep 2019 21:04:18 -0400 Original-Received: from mail-pl1-f177.google.com ([209.85.214.177]:43145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEk6j-0003ji-Tz for 19822@debbugs.gnu.org; Sun, 29 Sep 2019 21:04:13 -0400 Original-Received: by mail-pl1-f177.google.com with SMTP id f21so3215360plj.10 for <19822@debbugs.gnu.org>; Sun, 29 Sep 2019 18:04:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=b/4Pvu/42h7IzZs5vPCpZu3Tj7ov2oTptUk28Xcr3qs=; b=Q38APVJarfVvVfjbw3xhB6AcHltAePJiez7s+Zg4wUcL/GbQbacJ8D5KmTH1QuLNcD 6S38MCXz0vO+XSzE5QEx1mB+PgAGR9Qe95WcWXxKj2RqFIBeuPpJ+v7/iavPg9mpr2ZL e16d4SZV3aoWeexA9eylbBhueUHQ0WWQaCUthEx332VgXN9w90czqIy3u84EeXxPRhD5 lR33F7ARoE9PAskXZOahi4MIBIyGTvyhjVBTbqR8Zq+M7Ow+hamCgwucgXfDeeGsgt6d 0XMwto3F0IWxp6P86fEQ1I4DYuJqVRBJVunH3UB3kX3md78cszuIEpc+ml7eQHIivS8/ D/qw== X-Gm-Message-State: APjAAAXhzsFviMnu4j5SKFt4OWL4Yw65rIY4galZ2IvD4dIQR25GI71G pHAkHy64bha0cMOyHJbqzsZ8rUi9cya2vWD37oU= X-Google-Smtp-Source: APXvYqy8mpNANg7XI1lKwSQ/zJ1OLqRJv34TxfB7I/B5pwksknb1C1bMvEBz7EkihHrRa92Di7surwdFTO9cPohIfXU= X-Received: by 2002:a17:902:d88f:: with SMTP id b15mr16649948plz.251.1569805444275; Sun, 29 Sep 2019 18:04:04 -0700 (PDT) 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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:167786 Archived-At: Lars Ingebrigtsen writes: > 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 =E2=80=9Cretrieved document=E2=80=9D 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? Hi Lars, This is a good idea, but it seems like it was never done? There was no one protesting the proposal at the time (December 2015). Perhaps we should move some of them to obsolete/ before Emacs 27.1? Best regards, Stefan Kangas