From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87377 Path: news.gmane.org!.POSTED!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: nnrss broken on Emacs master? Date: Tue, 21 Feb 2017 09:39:10 +0900 Organization: Emacsen advocacy group Message-ID: References: <23567.1487395783@alto> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1487637612 25681 195.159.176.226 (21 Feb 2017 00:40:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2017 00:40:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) To: ding@gnus.org Original-X-From: ding-owner+m35598@lists.math.uh.edu Tue Feb 21 01:40:07 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfyUu-0005nF-M5 for ding-account@gmane.org; Tue, 21 Feb 2017 01:40:04 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id 4ab91fe1-f7ce-11e6-b719-b499baa2b07a; Tue, 21 Feb 2017 00:40:07 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cfyUJ-000372-UL; Mon, 20 Feb 2017 18:39:27 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cfyUH-00036R-7S for ding@lists.math.uh.edu; Mon, 20 Feb 2017 18:39:25 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cfyUF-0007QT-Nc for ding@lists.math.uh.edu; Mon, 20 Feb 2017 18:39:25 -0600 Original-Received: from mail-hampton.hostforweb.net ([205.234.186.191] helo=hampton.hostforweb.net) by quimby.gnus.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1cfyUE-0001ec-7W for ding@gnus.org; Tue, 21 Feb 2017 01:39:22 +0100 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cfyU4-004FrG-T1 for ding@gnus.org; Mon, 20 Feb 2017 18:39:14 -0600 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:guvghmvd/MpTEIcs3NK6fahpo+g= X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87377 Archived-At: --=-=-= On Fri, 17 Feb 2017 21:29:43 -0800, Mike Kupfer wrote: > I have a few nnrss groups. When I read them with Emacs 21.5.91, the > postings appear as multipart/alternative with buttons, e.g., [...] > When I read them with Emacs master (a83b6692), I get stuff that looks > like > -----8<-----8<----- > Newsgroups: ACM Queue Blogroll > Subject: The Road to Debugging Success > From: blog dds > Date: Thu, 16 Feb 2017 13:55:44 GMT > MIME-Version: 1.0 > Content-Type: text/plain > Message-ID: <1738@ACM_Queue_Blogroll.nnrss> > <#multipart type=alternative> > <#part type="text/plain"> > A colleague recently asked me how to debug a Linux embedded system ----->8----->8----- > Sometimes the text/plain version has HTML markup, which makes it hard to > read. Fixed in master: > Are nnrss groups working for anyone else? I needed to tweak `url-insert-file-contents' temporarily as follows to make nnrss work. It will probably cause some trouble if the server is not working properly, though. :( --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- lisp/url/url-hanrlers.el~ 2017-01-04 22:17:18 +0000 +++ lisp/url/url-hanrlers.el 2017-02-21 00:36:20 +0000 @@ -339,23 +339,6 @@ (defun url-insert-file-contents (url &optional visit beg end replace) (let ((buffer (url-retrieve-synchronously url))) (unless buffer (signal 'file-error (list url "No Data"))) - (with-current-buffer buffer - ;; XXX: This is HTTP/S specific and should be moved to url-http - ;; instead. See http://debbugs.gnu.org/17549. - (when (bound-and-true-p url-http-response-status) - ;; Don't signal an error if VISIT is non-nil, because - ;; 'insert-file-contents' doesn't. This is required to - ;; support, e.g., 'browse-url-emacs', which is a fancy way of - ;; visiting the HTML source of a URL: in that case, we want to - ;; display a file buffer even if the URL does not exist and - ;; 'url-retrieve-synchronously' returns 404 or whatever. - (unless (or visit - (and (>= url-http-response-status 200) - (< url-http-response-status 300))) - (let ((desc (nth 2 (assq url-http-response-status url-http-codes)))) - (kill-buffer buffer) - ;; Signal file-error per http://debbugs.gnu.org/16733. - (signal 'file-error (list url desc)))))) (url-insert-buffer-contents buffer url visit beg end replace))) (put 'insert-file-contents 'url-file-handlers 'url-insert-file-contents) --=-=-=--