From unknown Sun Jun 22 07:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34685: 26.1; function nnrss-get-namespace-prefix always returns nil Resent-From: wenbushi Original-Sender: "Debbugs-submit" Resent-CC: help-debbugs@gnu.org Resent-Date: Thu, 28 Feb 2019 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34685 X-GNU-PR-Package: nnrss X-GNU-PR-Keywords: To: 34685@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155136816618446 (code B ref -1); Thu, 28 Feb 2019 15:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Feb 2019 15:36:06 +0000 Received: from localhost ([127.0.0.1]:55387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gzNj8-0004md-If for submit@debbugs.gnu.org; Thu, 28 Feb 2019 10:36:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gzKqV-0007le-Uk for submit@debbugs.gnu.org; Thu, 28 Feb 2019 07:31:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:53535) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gzKqO-0000UN-11 for submit@debbugs.gnu.org; Thu, 28 Feb 2019 07:31:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzKqK-0003vy-Bb for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2019 07:31:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzKqJ-0000SZ-1M for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2019 07:31:16 -0500 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]:40732) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzKqI-0000S0-Il for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2019 07:31:14 -0500 Received: by mail-io1-xd34.google.com with SMTP id p17so16398615iol.7 for ; Thu, 28 Feb 2019 04:31:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=qh1o5Lsxg2RhFoOMxB1c8lnHWeIW8DKXswprVYxneco=; b=W4ZZq+81yhJh8VCEe0T9fY2VKkWUEYuflcrnREm7jHHjb4ven0UVdgS+9yHPo7R6sX 5E2RwmCB7s+qXMHIjEOZwjiqe/tnReB09YmTbeeoc+XybabOrNlac/QO3zlMrZZiMtOn JZ1jTn7bCZo7y2moSuJS3iXxDZ/MRStQDDJgGT7ZAvxJOlNKmWDf4DueUhf/jpZdaMgS 1iX60oQnbOuIBKKuH/DbSyW74SxiLNausyBfKc0a2tBgMBrd4ITeYOY2XBKHgZNWLo33 lLysURwVF3dg4liTvZ6GJbbRt2ji7OpSYoHzAfiLeciasz2h2LadUqPpbo6Cw93hMPJw iTkg== 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; bh=qh1o5Lsxg2RhFoOMxB1c8lnHWeIW8DKXswprVYxneco=; b=dHL0xGbjCo7/uRdsKsrdEcBEo+19x6JDPR3K2yjfRCVkNsRPYsQikEkAWyz1MYSyb+ J8VUOdjzQeaGjzLJoewE2xeT54MLdFhGgUl+2kC9VHB8PmmMGAAwPvUltoVFesCOKSUh lnSjxIHoIVliORUpQgG1muBufIGYbz4cPcUmsVM02WoIkqQ+0V36/ZPBbgmDRUIOjJ7u F9/x1i2KbYF7CG1KN8DfQqTf38AdPFNUgWpKZaHFlFOAHcog6dazKsSTPnwbXIYa4z1q ARaT4RQuwiPTtKL0+Et1R6Y2R44sENvjgfIiD47cg30cFuxyd/07BX1jWiG6HDl0ps5z lugQ== X-Gm-Message-State: APjAAAWSKcAyV9NuTq6wtYQ7xfKFfEqIlcrC+Tr9jDMiZTOJzInKypYz YhAgRQQv9DdhKr+MZ/UwYV2MJlCzczYhNNIDD9cKzpikmhXssw== X-Google-Smtp-Source: APXvYqzOwRfNKG9epEUGmY6i8rtY40eqepGmKN+rn1LMIvwr8OHtag3DaSmC9nM55Dhr9m4fVCFmZrfGcCx2ikqN5Qw= X-Received: by 2002:a5d:8c98:: with SMTP id g24mr5237420ion.103.1551357073151; Thu, 28 Feb 2019 04:31:13 -0800 (PST) MIME-Version: 1.0 From: wenbushi Date: Thu, 28 Feb 2019 20:31:02 +0800 Message-ID: Content-Type: multipart/alternative; boundary="00000000000043decb0582f37758" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d34 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Thu, 28 Feb 2019 10:36:00 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --00000000000043decb0582f37758 Content-Type: text/plain; charset="UTF-8" Package: nnrss The function "nnrss-get-namespace-prefix" in gnus/nnrss.el always returns nil, which causes the contents in "" tag of an RSS XML not showing in the gnus article buffer. Here is a fix: --- nnrss.el 2019-02-28 20:02:29.224675750 +0800 +++ nnrss-fixed.el 2019-02-28 20:02:04.534267796 +0800 @@ -1031,7 +1031,7 @@ "Given EL (containing a parsed element) and URI (containing a string that gives the URI for which you want to retrieve the namespace prefix), return the prefix." - (let* ((prefix (car (rassoc uri (cadar el)))) + (let* ((prefix (car (rassoc uri (cadar (nthcdr 2 (car el)))))) (nslist (if prefix (split-string (symbol-name prefix) ":"))) (ns (cond ((eq (length nslist) 1) ; no prefix given the argument "el" in the function is a list of the parsed XML, like(some fields are ignored) ((rss ((version . "2.0") (xmlns:atom . "http://www.w3.org/2005/Atom")) (channel ((xmlns:content . "http://purl.org/rss/1.0/modules/content/ ")) (title nil "RSS title") (item nil (title nil "article title") (content:encoded nil "article content"))))) The function "nnrss-get-namespace-prefix" should extract tag "xmlns:content". But it only returns nil because "(cadar el)" matches nothing. Hope it helps. --00000000000043decb0582f37758 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Package: nnrss

The function "= nnrss-get-namespace-prefix" in gnus/nnrss.el always returns nil,
wh= ich causes the contents in "<content:encoded>" tag of an RS= S XML not
showing in the gnus article buffer.

Here is a fix:
<= br>--- nnrss.el=C2=A0=C2=A0=C2=A0 2019-02-28 20:02:29.224675750 +0800
++= + nnrss-fixed.el=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2019-02-28 20:02:04.53426779= 6 +0800
@@ -1031,7 +1031,7 @@
=C2=A0=C2=A0 "Given EL (containing= a parsed element) and URI (containing a string
=C2=A0that gives the URI= for which you want to retrieve the namespace
=C2=A0prefix), return the = prefix."
-=C2=A0 (let* ((prefix (car (rassoc uri (cadar el))))
+= =C2=A0 (let* ((prefix (car (rassoc uri (cadar (nthcdr 2 (car el))))))
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (nslist (if prefix
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (split-string (symbol-name prefi= x) ":")))
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (ns= (cond ((eq (length nslist) 1) ; no prefix given


the argument &q= uot;el" in the function is a list of the parsed XML, like(some
fiel= ds are ignored)

((rss ((version . "2.0") (xmlns:atom . &qu= ot;http://www.w3.org/2005/Atom&= quot;))
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (channel ((xmlns:content . "= http://purl.org/rss/1.= 0/modules/content/"))
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (title nil "RSS title&qu= ot;)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 (item nil
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (title nil "article title")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (content:encoded nil "article content")))))
The function "nnrss-get-namespace-prefix" should extract tag"xmlns:content". But it only returns nil because "(cadar el= )" matches
nothing.

Hope it helps.
--00000000000043decb0582f37758-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 28 11:20:13 2019 Received: (at control) by debbugs.gnu.org; 28 Feb 2019 16:20:13 +0000 Received: from localhost ([127.0.0.1]:55413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gzOPt-00069N-1R for submit@debbugs.gnu.org; Thu, 28 Feb 2019 11:20:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gzOPr-000697-Ny for control@debbugs.gnu.org; Thu, 28 Feb 2019 11:20:12 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzOPc-0003PC-41 for control@debbugs.gnu.org; Thu, 28 Feb 2019 11:19:58 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gzOPS-0002GY-DY for control@debbugs.gnu.org; Thu, 28 Feb 2019 11:19:50 -0500 Subject: control message for bug 34685 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 28 Feb 2019 11:19:46 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) reassign 34685 emacs,gnus From unknown Sun Jun 22 07:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34685: 26.1; function nnrss-get-namespace-prefix always returns nil Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 05 Apr 2019 00:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34685 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: wenbushi Cc: 34685@debbugs.gnu.org Received: via spool by 34685-submit@debbugs.gnu.org id=B34685.15544254678453 (code B ref 34685); Fri, 05 Apr 2019 00:52:01 +0000 Received: (at 34685) by debbugs.gnu.org; 5 Apr 2019 00:51:07 +0000 Received: from localhost ([127.0.0.1]:44870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCD4V-0002CG-IP for submit@debbugs.gnu.org; Thu, 04 Apr 2019 20:51:07 -0400 Received: from mail-qt1-f175.google.com ([209.85.160.175]:35483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCD4P-0002BZ-Nu; Thu, 04 Apr 2019 20:51:04 -0400 Received: by mail-qt1-f175.google.com with SMTP id h39so5585370qte.2; Thu, 04 Apr 2019 17:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=4R6ahSH5V3IZfJ7UNnkLla+2MkwP8d8o0ADVZO4/0LQ=; b=dxrZPq6t8+Z1MMTMAQo/iRX1uQpAO6fQm9uwUPWaiqeyJNyWyK9aMZbBFLH283R02m xOousIH9hCJS3XRmcSmAWK2JVpGT5gF4Jj4Lh8PlsIpnrp67+1KL5HG72Yw2QxBgjrX/ s3BZiPigJdrkm6DVFQ6Vb5sWZzzCWK43Y4HtDFYZ3nrEodEbBfv1jbLegk6tUkxTROYx D1Fcb6yhylpBxXzi8ezfHGGGz9ooCkSDWgJJtnBkAKyvWHkYGJpPO/GR2nMlZ5YFV5zD k8U/yWdJKB5GKLng50w5u/1Xrk0lb/vzS1Pjhn84vOqfjOI5KPe7NZXGG3Cbhv2z3m43 fzoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=4R6ahSH5V3IZfJ7UNnkLla+2MkwP8d8o0ADVZO4/0LQ=; b=cq/aLDfQYao6amFL8lOe40iFCIAej/sdkGp+g/MTvWLfTX3fJfHcl2MArhdwptysob 7xdALXLaVNFojTdiE7BVlNSQzpW72DHBjcYGC6XmrMZiJtLoyDfsCf9S9VPDcWctid5u D6l9zonsvaaYejls9hCfp0nRMSxnFiuCx9RDD44Ucfw+9QlUpSyja+boELjZaeLGe1f+ taSqHHpOLrKR555UxS3IVhn5likHOV6G4s9krlQj85cQ8n/I5YHLqTZpj2xlv5mJDI6I iYdC/5kceaz5Oci8Vmtm4BSL13PyDFcCKjkLNSLEda5YNByE6AgsB/Ivgz7GdnCinSey KnMQ== X-Gm-Message-State: APjAAAXFMYKg53F9OFHebb1TnXwGUy4iPj2eM5YGYvPNZ3fy3gWVGu61 a4JBNfDnwH922Oi4FGNgRUY2lM2X X-Google-Smtp-Source: APXvYqyQKzTgc5pkACNXoNAkt4H5zopVkvvxO8MdtN4vKwv7kCbgJgPLSdMBx/4tRQxr3/xJxIsiDw== X-Received: by 2002:ac8:262c:: with SMTP id u41mr8612561qtu.198.1554425456037; Thu, 04 Apr 2019 17:50:56 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id y5sm11288790qkl.73.2019.04.04.17.50.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 17:50:55 -0700 (PDT) From: Noam Postavsky References: Date: Thu, 04 Apr 2019 20:50:54 -0400 In-Reply-To: (wenbushi@gmail.com's message of "Thu, 28 Feb 2019 20:31:02 +0800") Message-ID: <8736mxe0lt.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 34685 + moreinfo quit wenbushi writes: > The function "nnrss-get-namespace-prefix" in gnus/nnrss.el always > returns nil, which causes the contents in "" tag of > an RSS XML not showing in the gnus article buffer. > > Here is a fix: > > --- nnrss.el 2019-02-28 20:02:29.224675750 +0800 > +++ nnrss-fixed.el 2019-02-28 20:02:04.534267796 +0800 > @@ -1031,7 +1031,7 @@ > "Given EL (containing a parsed element) and URI (containing a string > that gives the URI for which you want to retrieve the namespace > prefix), return the prefix." > - (let* ((prefix (car (rassoc uri (cadar el)))) > + (let* ((prefix (car (rassoc uri (cadar (nthcdr 2 (car el)))))) > the argument "el" in the function is a list of the parsed XML, like(some > fields are ignored) > > ((rss ((version . "2.0") (xmlns:atom . "http://www.w3.org/2005/Atom")) > (channel ((xmlns:content . "http://purl.org/rss/1.0/modules/content/")) > (title nil "RSS title") > (item nil > (title nil "article title") > (content:encoded nil "article content"))))) > > The function "nnrss-get-namespace-prefix" should extract tag > "xmlns:content". But it only returns nil because "(cadar el)" matches > nothing. That's only due to the particular encoding of your RSS feed though, isn't it? I believe xmlns prefixes can technically go on any element in a document; I expect the current code works for some feeds, and your fix would break things for them. We should gather some test cases to be able to fix this properly. From unknown Sun Jun 22 07:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34685: 26.1; function nnrss-get-namespace-prefix always returns nil References: In-Reply-To: Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 12 Apr 2019 10:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34685 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: moreinfo To: 34685@debbugs.gnu.org Cc: wenbushi Received: via spool by 34685-submit@debbugs.gnu.org id=B34685.155506450013065 (code B ref 34685); Fri, 12 Apr 2019 10:22:01 +0000 Received: (at 34685) by debbugs.gnu.org; 12 Apr 2019 10:21:40 +0000 Received: from localhost ([127.0.0.1]:55491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEtJS-0003Oe-Rb for submit@debbugs.gnu.org; Fri, 12 Apr 2019 06:21:40 -0400 Received: from mail-qt1-f182.google.com ([209.85.160.182]:42266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEtJR-0003OP-BZ for 34685@debbugs.gnu.org; Fri, 12 Apr 2019 06:21:37 -0400 Received: by mail-qt1-f182.google.com with SMTP id p20so10535740qtc.9 for <34685@debbugs.gnu.org>; Fri, 12 Apr 2019 03:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version; bh=/p7U1ph4BwGcVpHy+RHlFSrCk3lSz1F2/sOXoY/1eo0=; b=jzZTJHaCiL7l9Dz+MWDGgoCPvmEENSCEo3Qxq3nVVsl01W9nDqE/ZOJokiouX2vKn0 py/J1YEmQmv3HCS7YiLubXrEiwpzBOVcvSDIDmDxX6Y8bA15EzNzk6SEiDBX29Ox/Nak 5UYgt3Tl6uldwDaEzK8TrF0/5wxdohq37TdIYwlYv3LxTdc4bi3J6ZXYAKO4r7pmoU3f PLL3UvUREJXy2gr6DqiepARLvhmJZ59kyGd2FaHS0SVNUqgFI4JXq9uxh28O03J7zvda fsW/gvjIeEnLalNRVpe0fASje7DUo+OVeLJxoriWWf7Q9IJqq9fMY4CeVzm/oXQMbW7p wRCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=/p7U1ph4BwGcVpHy+RHlFSrCk3lSz1F2/sOXoY/1eo0=; b=s66f/zaN3xqfpwihsdJHJvMymT9G50ynjErx6ObIGc2gRGgfsh2YOWM/khyWnlPZNf 5vKExE7ctu77px4ssMrbIvUNv7aa9oIZHtOniIVl1Ra+s1PRI16bZIQLbbQCD8g870rL v0D7OSeXbdzNPHarAhHjdQA5PVUtasFaP61Nki0pgWPsSK++qezx8fCfCt1BlesCUbck RKk0B/7bMveboB0dVrKrf3rzEGaf1M9AVVNF2mAV2C84JozUn9xYCpvWi6mA8mozfp1H OCOqIVowVj7VbKXXlj64AfuQlNDfsTDPCZq4oDaHDM2xU6bn6ApljDUNuYMJ4rZrbPXj WSpA== X-Gm-Message-State: APjAAAWfdNVIshLTug2B7XANGAjw5NTTy9LKmj53IQis3LOgmKOuAdWJ 2yk45iQDwCh6D4O6Q+61j8g= X-Google-Smtp-Source: APXvYqyZ+JqbrfOkFuaPURIKyT/XX/RZbRDci+UrkbZyC3gLRZN4bEKEosWeYlfZ59LUXpzM0uAxUA== X-Received: by 2002:ac8:1a81:: with SMTP id x1mr45181130qtj.47.1555064491519; Fri, 12 Apr 2019 03:21:31 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id n6sm17880065qte.11.2019.04.12.03.21.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Apr 2019 03:21:30 -0700 (PDT) From: Noam Postavsky Date: Fri, 12 Apr 2019 06:21:29 -0400 Message-ID: <87a7gva5hy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain [forwarding to list, please use "Reply All" to keep 34685@debbugs.gnu.org on Cc] --=-=-= Content-Type: message/rfc822 Content-Disposition: inline References: <8736mxe0lt.fsf@gmail.com> In-Reply-To: <8736mxe0lt.fsf@gmail.com> From: wenbushi Date: Thu, 11 Apr 2019 14:01:23 +0800 Message-ID: Subject: Re: bug#34685: 26.1; function nnrss-get-namespace-prefix always returns nil To: Noam Postavsky MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="====-=-=" --====-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Yeah. You're right. Sorry the inconvenience of this mistake. I've found the tag of my rss feed wasn't in the right place after several days and forgot to close this issue. After that I didn't check the format requirements of rss xml carefully though and just made a patch to fix it. The original codes works well for all other feeds except the outlier I tested at first(so unlucky!). Maybe it's quite rare for an rss xml to put its tags in the wrong places. Thanks for the reply. I should be more careful at testing. --====-=-=-- --=-=-=-- From unknown Sun Jun 22 07:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34685: 26.1; function nnrss-get-namespace-prefix always returns nil Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 12 Apr 2019 11:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34685 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: moreinfo To: 34685@debbugs.gnu.org Cc: wenbushi Received: via spool by 34685-submit@debbugs.gnu.org id=B34685.155507013729813 (code B ref 34685); Fri, 12 Apr 2019 11:56:02 +0000 Received: (at 34685) by debbugs.gnu.org; 12 Apr 2019 11:55:37 +0000 Received: from localhost ([127.0.0.1]:55540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEumP-0007ki-Dg for submit@debbugs.gnu.org; Fri, 12 Apr 2019 07:55:37 -0400 Received: from mail-qt1-f174.google.com ([209.85.160.174]:41368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEumM-0007kP-K9; Fri, 12 Apr 2019 07:55:35 -0400 Received: by mail-qt1-f174.google.com with SMTP id w30so10794413qta.8; Fri, 12 Apr 2019 04:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=xZE68q1bhMPhtjP91GprpbyBqu5NbjzJ1XSnQte4F1Q=; b=rbekEIJs8attc2zO97PIdA8kTgrYyGjvQmNDzjqWfJninemIl/l2ny2UT5w7i5PC0e iyQdHLvgNhCuVPSxKnEYFQ4s2Pyp58qx48rmB7d6ZhtOwYIMudAhblNaiBbdaNIBNbvM DpVqJWFIsTweJYDM4j2+gn27FGNs9XIe5WZSjjAoFoccsdHbofAcyNQj2MV+R+AQJJr4 YaqT8GssCDSWAI1FCaPwlWKowZg+BixqiyzlYxpFuw/ocHVb0Ttj7Bt6DboRfDbwHp0f TYfU6prcBkstSiGrelUwOYOg51XOTUUeu6DISG6kFq5vFzncqIZGNo3S7WQAERXLDUqu B+Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=xZE68q1bhMPhtjP91GprpbyBqu5NbjzJ1XSnQte4F1Q=; b=T3cDHFp8NNsrR4KYFbqUQwm034beQl3VoXusWSOA/EGJbegzsPGzOCWi+CEteDqNJ2 EY4iDLs6uh7WTIkRMTbGnesvG6aLmL3ec/cl2zH17790utLxaAWYCUmB+MDGkZt1a6Ad z/tX/oJ97TiqDNq3PpHDC1wu05uu4bu4NjjQDRsSDeXibDC7ieTQ1Trf0+SBkcsQm5fr AiVymgpnUbAhKRYCE2qgb0upBBNnNja0J2LUwAuzYBYJVyCh/Hifukp/Os+ZPI8swOsR H06CN5+ZdvjooPyJzOfGiOKM9HLwJBE0TUJ61XJQ0at3w0LwdMqi/mEf+bJXbNit3FYZ iCaQ== X-Gm-Message-State: APjAAAVSg1ZoyOaWnir81PhLq5CCwZDAdi9ti3UIBs+5F5Xpx5hNMkIq H7lv9ISEoyci8eE84/wAr30NcTvW X-Google-Smtp-Source: APXvYqwT1CwutQZZUJYu03KKTVlG2Qfh/1iRtIVh7XgvA4nU3vG9JR+VK+OZb5FR6tfG3gX+uWdTYQ== X-Received: by 2002:ac8:1b63:: with SMTP id p32mr47860931qtk.173.1555070128610; Fri, 12 Apr 2019 04:55:28 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id r15sm28569112qtb.22.2019.04.12.04.55.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Apr 2019 04:55:27 -0700 (PDT) From: Noam Postavsky References: <87a7gva5hy.fsf@gmail.com> Date: Fri, 12 Apr 2019 07:55:26 -0400 In-Reply-To: <87a7gva5hy.fsf@gmail.com> (Noam Postavsky's message of "Fri, 12 Apr 2019 06:21:29 -0400") Message-ID: <877ebza15d.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 34685 minor quit Noam Postavsky writes: > From: wenbushi > I've found the tag of my rss feed wasn't in the right place after several > days and forgot to close this issue. After that I didn't check the format > requirements of rss xml carefully though and just made a patch to fix it. > The original codes works well for all other feeds except the outlier I > tested at first(so unlucky!). Maybe it's quite rare for an rss xml to put > its tags in the wrong places. Well, if it's only the one feed, I guess this is not too urgent a bug, but I don't think the feed is technically wrong. As I said before, XML allows xmlns attributes anywhere in the document, so nnrss should be fixed to handle it. But we need to have test cases both of the "outlier" case and "typical" cases to get it right. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 25 10:45:14 2019 Received: (at control) by debbugs.gnu.org; 25 Sep 2019 14:45:14 +0000 Received: from localhost ([127.0.0.1]:42305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iD8Xa-0006DZ-D6 for submit@debbugs.gnu.org; Wed, 25 Sep 2019 10:45:14 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iD8XZ-0006Bl-2P for control@debbugs.gnu.org; Wed, 25 Sep 2019 10:45:13 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iD8XW-0004Lg-CJ for control@debbugs.gnu.org; Wed, 25 Sep 2019 16:45:12 +0200 Date: Wed, 25 Sep 2019 16:45:09 +0200 Message-Id: <8736gktoy2.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #34685 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 34685 - moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 34685 - moreinfo quit From unknown Sun Jun 22 07:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34685: 26.1; function nnrss-get-namespace-prefix always returns nil Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 26 Sep 2019 22:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34685 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Noam Postavsky Cc: 34685@debbugs.gnu.org, wenbushi Received: via spool by 34685-submit@debbugs.gnu.org id=B34685.156953726126334 (code B ref 34685); Thu, 26 Sep 2019 22:35:01 +0000 Received: (at 34685) by debbugs.gnu.org; 26 Sep 2019 22:34:21 +0000 Received: from localhost ([127.0.0.1]:45497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDcL6-0006qg-OM for submit@debbugs.gnu.org; Thu, 26 Sep 2019 18:34:21 -0400 Received: from quimby.gnus.org ([80.91.231.51]:43086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDcL5-0006qW-Dl for 34685@debbugs.gnu.org; Thu, 26 Sep 2019 18:34:19 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDcL1-0000c1-D2; Fri, 27 Sep 2019 00:34:17 +0200 From: Lars Ingebrigtsen References: <87a7gva5hy.fsf@gmail.com> <877ebza15d.fsf@gmail.com> Date: Fri, 27 Sep 2019 00:34:15 +0200 In-Reply-To: <877ebza15d.fsf@gmail.com> (Noam Postavsky's message of "Fri, 12 Apr 2019 07:55:26 -0400") Message-ID: <87y2yahel4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Noam Postavsky writes: > Well, if it's only the one feed, I guess this is not too urgent a bug, > but I don't think the feed is technically wrong. As I said before, XML > allows xmlns attributes anywhere in the document, so [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Noam Postavsky writes: > Well, if it's only the one feed, I guess this is not too urgent a bug, > but I don't think the feed is technically wrong. As I said before, XML > allows xmlns attributes anywhere in the document, so nnrss should be > fixed to handle it. But we need to have test cases both of the > "outlier" case and "typical" cases to get it right. I've now fixed this more generally by searching through the DOM for the URI. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 26 18:34:32 2019 Received: (at control) by debbugs.gnu.org; 26 Sep 2019 22:34:32 +0000 Received: from localhost ([127.0.0.1]:45500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDcLI-0006r4-4M for submit@debbugs.gnu.org; Thu, 26 Sep 2019 18:34:32 -0400 Received: from quimby.gnus.org ([80.91.231.51]:43102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDcLE-0006qv-VR for control@debbugs.gnu.org; Thu, 26 Sep 2019 18:34:30 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDcL7-0000cA-B8 for control@debbugs.gnu.org; Fri, 27 Sep 2019 00:34:23 +0200 Date: Fri, 27 Sep 2019 00:34:21 +0200 Message-Id: <87woduheky.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #34685 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 34685 fixed close 34685 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 34685 fixed close 34685 27.1 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 08:10:50 2021 Received: (at control) by debbugs.gnu.org; 9 Aug 2021 12:10:50 +0000 Received: from localhost ([127.0.0.1]:56161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD47G-0001R9-Lp for submit@debbugs.gnu.org; Mon, 09 Aug 2021 08:10:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD47E-0001Qu-IK for control@debbugs.gnu.org; Mon, 09 Aug 2021 08:10:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ynqHVIY5PRj11VeHy8r1KGFiwkGSEzZlw5tFyuvOLJM=; b=Y2jA7DMJYqc23lW2qJCtGwLNYH dBRN9JZ3g3E9sfj51A7LAnkP1QJkN2keg0egPzJh0eto84/38E8i86PMv82Ad/zZGzqdPOS0APBtq qXgNwEyi3ZDPHT5/8bhfczsATeeOrX1H/3LeDwTf9gyIKGFUJlES7w1rdBdZ2aE1ogTA=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD476-0005Ad-Dl for control@debbugs.gnu.org; Mon, 09 Aug 2021 14:10:42 +0200 Date: Mon, 09 Aug 2021 14:10:39 +0200 Message-Id: <87a6lq6cow.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #34685 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: unarchive 34685 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) unarchive 34685 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 08:10:56 2021 Received: (at control) by debbugs.gnu.org; 9 Aug 2021 12:10:56 +0000 Received: from localhost ([127.0.0.1]:56164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD47L-0001RR-R3 for submit@debbugs.gnu.org; Mon, 09 Aug 2021 08:10:56 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD47J-0001R1-U3 for control@debbugs.gnu.org; Mon, 09 Aug 2021 08:10:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5l7F3boOsdivYAB72pFGtPPRJFFrisQ1R7t2KJissRE=; b=s4v3WnPzT0cgcrWea8GSW9XeW/ lM/0PGCCDFLOB+EbMd6iV0hdKM1Yppf2BCM5NvWX9kvkUb5YBjXJyRE8MgM+skRdSERUd5ythGMVN 8sHLzeaTHROJxTD9NEJJQMfcnLOVLh7gknGeJys6Tr99wFYkaMqF0ezLyD2HjgH9qiwI=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD47C-0005Ak-6h for control@debbugs.gnu.org; Mon, 09 Aug 2021 14:10:48 +0200 Date: Mon, 09 Aug 2021 14:10:44 +0200 Message-Id: <878s1a6cor.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #34685 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: reopen 34685 tags 34685 - fixed patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) reopen 34685 tags 34685 - fixed patch quit From unknown Sun Jun 22 07:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34685: 26.1; function nnrss-get-namespace-prefix always returns nil Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Mon, 09 Aug 2021 12:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34685 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Benjamin Riefenstahl Cc: 34685@debbugs.gnu.org, wenbushi , Noam Postavsky Received: via spool by 34685-submit@debbugs.gnu.org id=B34685.16285112275834 (code B ref 34685); Mon, 09 Aug 2021 12:14:02 +0000 Received: (at 34685) by debbugs.gnu.org; 9 Aug 2021 12:13:47 +0000 Received: from localhost ([127.0.0.1]:56172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD4A3-0001Vz-9j for submit@debbugs.gnu.org; Mon, 09 Aug 2021 08:13:46 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD4A0-0001Vl-Iu for 34685@debbugs.gnu.org; Mon, 09 Aug 2021 08:13:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UtgZrCnqq4cV80y4W/5ff/J+6FxfLpat8xF1OdHsGUI=; b=BdT9kljW4+HPjgXqTvKg1t0oh/ kK7bpXzbG9Egw5ARKlWLr3IWRiBfYSZree4MQKp/XATShHYWtod8dXeqgECbFpBhmFG5Oit/LvCUj ecFxBw8Tox9yTQ4AYFGJvZD4kAGp6UJjbTBrzY58+vOi2Dt7t+UifrqUzpCowdBJeM6s=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD49r-0005Bs-A5; Mon, 09 Aug 2021 14:13:34 +0200 From: Lars Ingebrigtsen References: <87a7gva5hy.fsf@gmail.com> <877ebza15d.fsf@gmail.com> <87y2yahel4.fsf@gnus.org> <877dgx76x0.fsf@arrian.i-did-not-set--mail-host-address--so-tickle-me> Date: Mon, 09 Aug 2021 14:13:29 +0200 In-Reply-To: <877dgx76x0.fsf@arrian.i-did-not-set--mail-host-address--so-tickle-me> (Benjamin Riefenstahl's message of "Sat, 07 Aug 2021 15:00:59 +0200") Message-ID: <877dgu6ck6.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Benjamin Riefenstahl writes: > LS09LT0tPQpDb250ZW50LVR5cGU6IHRleHQvcGxhaW4KCkhpIExhcnMsCgpMYXJzIEluZ2Vicmln > dHNlbiB3cml0ZXM6Cj4gSSd2ZSBub3cgZml4ZWQgdGhpcyBtb3JlIGdlbmVyYWxseSBieSBzZWFy Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Benjamin Riefenstahl writes: > LS09LT0tPQpDb250ZW50LVR5cGU6IHRleHQvcGxhaW4KCkhpIExhcnMsCgpMYXJzIEluZ2Vicmln > dHNlbiB3cml0ZXM6Cj4gSSd2ZSBub3cgZml4ZWQgdGhpcyBtb3JlIGdlbmVyYWxseSBieSBzZWFy Your message arrived kinda destroyed, but I used my decoder ring: > This doesn't seem to work. I encountered the problem just now on Emacs > master with https://sql-ledger.com/userforum/index.php?mode=rss . The > attached patch fixes it for me. [...] > - (let* ((prefix (car (rassoc uri (dom-attributes > + (let* ((prefix (car (or (rassoc uri (dom-attributes el)) > + (rassoc uri > + (dom-attributes [...] > +(defconst test-nnrss-xml > + '((rss > + ((version . "2.0") > + (xmlns:dc . "http://purl.org/dc/elements/1.1/")) > + (channel > + ((xmlns:content . "http://purl.org/rss/1.0/modules/content/")))))) The problem here is that this test XML isn't a valid DOM -- it's a list of DOMs. A valid DOM would be (defconst test-nnrss-xml '(rss ((version . "2.0") (xmlns:dc . "http://purl.org/dc/elements/1.1/")) (channel ((xmlns:content . "http://purl.org/rss/1.0/modules/content/"))))) and in this case the test works fine. So if EL is a list of nodes, then it's the caller of nnrss-get-namespace-prefix here that should be adjusted to pass in the car of the list instead? Could you try that and see whether that works? (And send a new patch; I've applied your test (adjusted).) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sun Jun 22 07:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34685: 26.1; function nnrss-get-namespace-prefix always returns nil Resent-From: Benjamin Riefenstahl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Mon, 09 Aug 2021 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34685 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 34685@debbugs.gnu.org, wenbushi , Noam Postavsky Received: via spool by 34685-submit@debbugs.gnu.org id=B34685.16285266121301 (code B ref 34685); Mon, 09 Aug 2021 16:31:02 +0000 Received: (at 34685) by debbugs.gnu.org; 9 Aug 2021 16:30:12 +0000 Received: from localhost ([127.0.0.1]:57630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD8AG-0000Kt-0k for submit@debbugs.gnu.org; Mon, 09 Aug 2021 12:30:12 -0400 Received: from odoacer.turtle-trading.net ([93.241.193.16]:50295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD8AC-0000Ja-9u for 34685@debbugs.gnu.org; Mon, 09 Aug 2021 12:30:09 -0400 Received: from zenobia.turtle-trading.net ([192.168.2.109]) by odoacer.turtle-trading.net with esmtp (Exim 4.80) (envelope-from ) id 1mD8A5-0001zk-4n; Mon, 09 Aug 2021 18:30:01 +0200 Received: from benny by zenobia.turtle-trading.net with local (Exim 4.92) (envelope-from ) id 1mD8A5-000878-2d; Mon, 09 Aug 2021 18:30:01 +0200 From: Benjamin Riefenstahl References: <87a7gva5hy.fsf@gmail.com> <877ebza15d.fsf@gmail.com> <87y2yahel4.fsf@gnus.org> <877dgx76x0.fsf@arrian.i-did-not-set--mail-host-address--so-tickle-me> <877dgu6ck6.fsf@gnus.org> Date: Mon, 09 Aug 2021 18:30:01 +0200 In-Reply-To: <877dgu6ck6.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 09 Aug 2021 14:13:29 +0200") Message-ID: <87tujymvhy.fsf@turtle-trading.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi Lars, > Benjamin Riefenstahl writes: >> LS09LT0tPQpDb250ZW50LVR5cGU6IHRleHQvcGxhaW4KCkhpIExhcnMsCgpMYXJzIEluZ2Vicmln >> dHNlbiB3cml0ZXM6Cj4gSSd2ZSBub3cgZml4ZWQgdGhpcyBtb3JlIGdlbmVyYWxseSBieSBzZWFy Lars Ingebrigtsen writes: > Your message arrived kinda destroyed, but I used my decoder ring: Sorry about that. My laptop does not have email setup correctly, that made things complicated in this case. >> +(defconst test-nnrss-xml >> + '((rss >> + ((version . "2.0") >> + (xmlns:dc . "http://purl.org/dc/elements/1.1/")) >> + (channel >> + ((xmlns:content . "http://purl.org/rss/1.0/modules/content/")))))) > The problem here is that this test XML isn't a valid DOM -- it's a > list of DOMs. A valid DOM would be I originally just copied this from the output of the debugger, so this is what nnrss-get-namespace-prefix gets passed. I just checked, the structure is the result of xml-parse-region, is that supposed to create something that matches the use of dom-search? When I try it on some test XML it does create this same structure again. Test code: (with-temp-buffer (insert " ") (xml-parse-region (point-min) (point-max))) > So if EL is a list of nodes, then it's the caller of > nnrss-get-namespace-prefix here that should be adjusted to pass in the > car of the list instead? Could you try that and see whether that > works? What is passed to nnrss-get-namespace-prefix is also used in other places and the calling function is a bit complicated so I'd rather not change it. I attach another change in nnrss-get-namespace-prefix function instead. I note that your previous work on this bug is the first time that nnrss.el uses functions from dom.el. It maybe should use it more, but that is a project for another day, I would say. > (And send a new patch; I've applied your test (adjusted).) See below. Thanks for your time, benny --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Fix-nnrss-get-namespace-prefix-bug-34685.patch >From f7f9bc841aa9a4b6fd5a3d8dcffd259f01b10591 Mon Sep 17 00:00:00 2001 From: Benjamin Riefenstahl Date: Mon, 9 Aug 2021 18:06:31 +0200 Subject: [PATCH] Fix nnrss-get-namespace-prefix (bug#34685) nnrss-get-namespace-prefix gets passed the result of xml-parse-region and that is not quite what dom-search expects. * lisp/gnus/nnrss.el (nnrss-get-namespace-prefix): Use the car of parameter el to match what dom-search expects. * test/lisp/gnus/nnrss-tests.el (test-nnrss-xml): Adjust to what xml-parse-region produces. --- lisp/gnus/nnrss.el | 7 ++++--- test/lisp/gnus/nnrss-tests.el | 10 +++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el index 0f12ee0e9d..97c9f18a60 100644 --- a/lisp/gnus/nnrss.el +++ b/lisp/gnus/nnrss.el @@ -954,9 +954,10 @@ nnrss-get-namespace-prefix "Given EL (containing a parsed element) and URI (containing a string that gives the URI for which you want to retrieve the namespace prefix), return the prefix." - (let* ((prefix (car (rassoc uri (dom-attributes - (dom-search - el + (let* ((dom (car el)) + (prefix (car (rassoc uri (dom-attributes + (dom-search + dom (lambda (node) (rassoc uri (dom-attributes node)))))))) (nslist (if prefix diff --git a/test/lisp/gnus/nnrss-tests.el b/test/lisp/gnus/nnrss-tests.el index 01b374a2f6..92b7dacf18 100644 --- a/test/lisp/gnus/nnrss-tests.el +++ b/test/lisp/gnus/nnrss-tests.el @@ -27,11 +27,11 @@ test-nnrss-normalize "Fri, 17 Sep 2004 05:09:49 +0000"))) (defconst test-nnrss-xml - '(rss - ((version . "2.0") - (xmlns:dc . "http://purl.org/dc/elements/1.1/")) - (channel - ((xmlns:content . "http://purl.org/rss/1.0/modules/content/"))))) + '((rss + ((version . "2.0") + (xmlns:dc . "http://purl.org/dc/elements/1.1/")) + (channel + ((xmlns:content . "http://purl.org/rss/1.0/modules/content/")))))) (ert-deftest test-nnrss-namespace-top () (should (equal (nnrss-get-namespace-prefix -- 2.20.1 --=-=-=-- From unknown Sun Jun 22 07:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34685: 26.1; function nnrss-get-namespace-prefix always returns nil Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Tue, 10 Aug 2021 13:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34685 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Benjamin Riefenstahl Cc: 34685@debbugs.gnu.org, wenbushi , Noam Postavsky Received: via spool by 34685-submit@debbugs.gnu.org id=B34685.162860330926964 (code B ref 34685); Tue, 10 Aug 2021 13:49:02 +0000 Received: (at 34685) by debbugs.gnu.org; 10 Aug 2021 13:48:29 +0000 Received: from localhost ([127.0.0.1]:58788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDS7E-00070k-Jy for submit@debbugs.gnu.org; Tue, 10 Aug 2021 09:48:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDS78-00070O-W2 for 34685@debbugs.gnu.org; Tue, 10 Aug 2021 09:48:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OpznrSsp7ZrJ1AHo4scxYZqPw2tu8zscxfR5lHJtWLU=; b=jWefeO2KIRNKFJG2Dzq4VcY00+ 873HkTgNKWWsPe6sjAvLKuZh9+XAzuV4+EreHQEaFcTbZr87bpgjlvlD4b/Qjp25c6iZW3mMae4t1 O6+2VC260f2xlpRfPeoYo4gN2d2h1hs/ZS5G/x8lKAETyPvYRpYv2WzEPaQCS6miaDb8=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDS6x-0002jG-Bj; Tue, 10 Aug 2021 15:48:11 +0200 From: Lars Ingebrigtsen References: <87a7gva5hy.fsf@gmail.com> <877ebza15d.fsf@gmail.com> <87y2yahel4.fsf@gnus.org> <877dgx76x0.fsf@arrian.i-did-not-set--mail-host-address--so-tickle-me> <877dgu6ck6.fsf@gnus.org> <87tujymvhy.fsf@turtle-trading.net> Date: Tue, 10 Aug 2021 15:48:06 +0200 In-Reply-To: <87tujymvhy.fsf@turtle-trading.net> (Benjamin Riefenstahl's message of "Mon, 09 Aug 2021 18:30:01 +0200") Message-ID: <87fsvhza09.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Benjamin Riefenstahl writes: > I originally just copied this from the output of the debugger, so this > is what nnrss-get-namespace-prefix gets passed. I just checked, the > structure is the result of xml-parse-region, is that su [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Benjamin Riefenstahl writes: > I originally just copied this from the output of the debugger, so this > is what nnrss-get-namespace-prefix gets passed. I just checked, the > structure is the result of xml-parse-region, is that supposed to create > something that matches the use of dom-search? When I try it on some > test XML it does create this same structure again. > > Test code: > > (with-temp-buffer > (insert " > > ") > (xml-parse-region (point-min) (point-max))) Ah, I see. xml-parse-region returns a list of dom objects, while libxml-parse-xml-region just returns a single object, which is probably where the confusion here originates from. (dom.el was written after libxml2 support was added, and written with the output from that in mind.) >> (And send a new patch; I've applied your test (adjusted).) > > See below. Thanks; applied to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 10 09:48:41 2021 Received: (at control) by debbugs.gnu.org; 10 Aug 2021 13:48:42 +0000 Received: from localhost ([127.0.0.1]:58791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDS7S-00071E-3j for submit@debbugs.gnu.org; Tue, 10 Aug 2021 09:48:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDS7N-00070q-DF for control@debbugs.gnu.org; Tue, 10 Aug 2021 09:48:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=x/Nguh1NgmLuGWkNqVDNXCqvMufM2L9PyT/Un5EnPrE=; b=tdAYXwbqbly+Ae+F8ebRxQRRwu 7pCzZhElrHsgEZ55Umzl6k4jK/14gkP2UW47mfdfjmbmgXUyk71p5UcLkkmsn72XUG4Id78XY7/je WYGuTDlFoKDS1FQX9+NwHdCwrQ7b9UZhwgZ196/WE4BhHcd4KGX1hTCg8BHTOMC+hEx8=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDS7F-0002jT-4E for control@debbugs.gnu.org; Tue, 10 Aug 2021 15:48:27 +0200 Date: Tue, 10 Aug 2021 15:48:23 +0200 Message-Id: <87eeb1z9zs.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #34685 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 34685 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 34685 28.1 quit