From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#34685: 26.1; function nnrss-get-namespace-prefix always returns nil Date: Tue, 10 Aug 2021 15:48:06 +0200 Message-ID: <87fsvhza09.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1731"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 34685@debbugs.gnu.org, wenbushi , Noam Postavsky To: Benjamin Riefenstahl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 10 15:49:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDS83-0000DD-R9 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 15:49:15 +0200 Original-Received: from localhost ([::1]:49386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDS82-0007av-DY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 09:49:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDS7r-0007Zj-32 for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 09:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47245) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDS7q-0008MQ-Oe for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 09:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDS7q-00071q-AD; Tue, 10 Aug 2021 09:49:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 34685-submit@debbugs.gnu.org id=B34685.162860330926964 (code B ref 34685); Tue, 10 Aug 2021 13:49:02 +0000 Original-Received: (at 34685) by debbugs.gnu.org; 10 Aug 2021 13:48:29 +0000 Original-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 Original-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=; Original-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 In-Reply-To: <87tujymvhy.fsf@turtle-trading.net> (Benjamin Riefenstahl's message of "Mon, 09 Aug 2021 18:30:01 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211494 Archived-At: 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