GNU bug report logs - #42851
27.1; nXML schema-locating file

Previous Next

Package: emacs;

Reported by: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>

Date: Thu, 13 Aug 2020 14:58:02 UTC

Severity: normal

Tags: confirmed, fixed

Found in version 27.1

Fixed in version 27.2

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42851 in the body.
You can then email your comments to 42851 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Thu, 13 Aug 2020 14:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ladislav Lhotka <ladislav.lhotka <at> nic.cz>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 13 Aug 2020 14:58:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1; nXML schema-locating file
Date: Thu, 13 Aug 2020 16:25:36 +0200
In Git commit 165f738382 (Update Org to 9.3), the nXML schema-locating
file etc/schema/schemas.xml got rewritten to the version that is in Org
distribution and contains only two OpenDocument schemas. This means that
all other RELAX NG schemas in etc/schema (such as xslt.rnc) cannot be
directly used.

Thanks, Ladislav

-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Thu, 13 Aug 2020 17:48:01 GMT) Full text and rfc822 format available.

Message #8 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>, 42851 <at> debbugs.gnu.org
Cc: Bastien <bzg <at> gnu.org>
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Thu, 13 Aug 2020 10:47:31 -0700
tags 42851 + confirmed
thanks

Ladislav Lhotka <ladislav.lhotka <at> nic.cz> writes:

> In Git commit 165f738382 (Update Org to 9.3), the nXML schema-locating
> file etc/schema/schemas.xml got rewritten to the version that is in Org
> distribution and contains only two OpenDocument schemas. This means that
> all other RELAX NG schemas in etc/schema (such as xslt.rnc) cannot be
> directly used.

Indeed, that looks like a mistake that should be reverted.

Besides deletions of lines, the only thing I see added to schemas.xml in
commit 165f738382 is this line:

+<?xml version="1.0"?>

The rest I think should obviously be reverted, but should that line be
kept?  Bastien, do you have any comments?

Best regards,
Stefan Kangas




Added tag(s) confirmed. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 13 Aug 2020 17:48:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Sun, 20 Sep 2020 18:55:01 GMT) Full text and rfc822 format available.

Message #13 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>
Cc: Bastien <bzg <at> gnu.org>, 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Sun, 20 Sep 2020 18:54:33 +0000
Stefan Kangas <stefankangas <at> gmail.com> writes:

> Ladislav Lhotka <ladislav.lhotka <at> nic.cz> writes:
>
>> In Git commit 165f738382 (Update Org to 9.3), the nXML schema-locating
>> file etc/schema/schemas.xml got rewritten to the version that is in Org
>> distribution and contains only two OpenDocument schemas. This means that
>> all other RELAX NG schemas in etc/schema (such as xslt.rnc) cannot be
>> directly used.
>
> Indeed, that looks like a mistake that should be reverted.
>
> Besides deletions of lines, the only thing I see added to schemas.xml in
> commit 165f738382 is this line:
>
> +<?xml version="1.0"?>
>
> The rest I think should obviously be reverted, but should that line be
> kept?  Bastien, do you have any comments?

Bastien, could you please take a look at this when you find some time?

Thanks in advance.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Tue, 22 Sep 2020 12:59:02 GMT) Full text and rfc822 format available.

Message #16 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>, 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Tue, 22 Sep 2020 14:57:52 +0200
Hi Stefan,

Stefan Kangas <stefan <at> marxist.se> writes:

> Bastien, could you please take a look at this when you find some
> time?

I will, thanks for the heads up.  

Don't hold your breath though, I can hear some hard deadlines flying
over my head already.

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Tue, 22 Sep 2020 13:10:01 GMT) Full text and rfc822 format available.

Message #19 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Bastien <bzg <at> gnu.org>
Cc: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>, 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Tue, 22 Sep 2020 15:08:59 +0200
Bastien <bzg <at> gnu.org> writes:

> > Bastien, could you please take a look at this when you find some
> > time?
>
> I will, thanks for the heads up.
>
> Don't hold your breath though, I can hear some hard deadlines flying
> over my head already.

Thanks!  It would be great to get this sorted before Emacs 27.2.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Tue, 22 Sep 2020 13:21:02 GMT) Full text and rfc822 format available.

Message #22 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>, 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Tue, 22 Sep 2020 15:20:15 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> Thanks!  It would be great to get this sorted before Emacs 27.2.

Do you have a tentative date for Emacs 27.2?

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Tue, 22 Sep 2020 13:46:02 GMT) Full text and rfc822 format available.

Message #25 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Bastien <bzg <at> gnu.org>
Cc: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>, 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Tue, 22 Sep 2020 15:45:37 +0200
Bastien <bzg <at> gnu.org> writes:

> > Thanks!  It would be great to get this sorted before Emacs 27.2.
>
> Do you have a tentative date for Emacs 27.2?

I'm hoping our maintainers will chime in, but based on past release
dates I'd guess a couple of months at least.  Perhaps not until early
next year?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Wed, 23 Sep 2020 09:17:01 GMT) Full text and rfc822 format available.

Message #28 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>, 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Wed, 23 Sep 2020 11:15:49 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> Bastien <bzg <at> gnu.org> writes:
>
>> > Thanks!  It would be great to get this sorted before Emacs 27.2.
>>
>> Do you have a tentative date for Emacs 27.2?
>
> I'm hoping our maintainers will chime in, but based on past release
> dates I'd guess a couple of months at least.  Perhaps not until early
> next year?

Thanks.  I'm hoping of going down to the bottom of my Org todo list by
the end of the year, so that should be okay.

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Wed, 23 Sep 2020 13:16:02 GMT) Full text and rfc822 format available.

Message #31 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>
Cc: Stefan Kangas <stefan <at> marxist.se>, 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Wed, 23 Sep 2020 15:15:19 +0200
Hi,

Ladislav Lhotka <ladislav.lhotka <at> nic.cz> writes:

> This bug is clearly a regression, so it shouldn't be too difficult
> to revert the offending change.

Can you look for the offending change?

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Wed, 23 Sep 2020 13:46:02 GMT) Full text and rfc822 format available.

Message #34 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Bastien <bzg <at> gnu.org>, Ladislav Lhotka <ladislav.lhotka <at> nic.cz>
Cc: 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Wed, 23 Sep 2020 13:45:33 +0000
Bastien <bzg <at> gnu.org> writes:

> Can you look for the offending change?

This should work in the Emacs repository:

git diff 165f73838^..165f73838 etc/schema/schemas.xml

But I'm not sure what changed in org-mode.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Wed, 23 Sep 2020 15:44:01 GMT) Full text and rfc822 format available.

Message #37 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>
To: Bastien <bzg <at> gnu.org>, Stefan Kangas <stefan <at> marxist.se>
Cc: 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Wed, 23 Sep 2020 12:37:31 +0200
Bastien <bzg <at> gnu.org> writes:

> Stefan Kangas <stefan <at> marxist.se> writes:
>
>> Bastien <bzg <at> gnu.org> writes:
>>
>>> > Thanks!  It would be great to get this sorted before Emacs 27.2.
>>>
>>> Do you have a tentative date for Emacs 27.2?
>>
>> I'm hoping our maintainers will chime in, but based on past release
>> dates I'd guess a couple of months at least.  Perhaps not until early
>> next year?
>
> Thanks.  I'm hoping of going down to the bottom of my Org todo list by
> the end of the year, so that should be okay.

This bug is clearly a regression, so it shouldn't be too difficult to revert the offending change.

Thanks, Ladislav

>
> -- 
>  Bastien

-- 
Ladislav Lhotka 
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Wed, 23 Sep 2020 15:44:02 GMT) Full text and rfc822 format available.

Message #40 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Ladislav Lhotka <ladislav.lhotka <at> nic.cz>
To: Stefan Kangas <stefan <at> marxist.se>, Bastien <bzg <at> gnu.org>
Cc: 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: 27.1; nXML schema-locating file
Date: Wed, 23 Sep 2020 16:23:06 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> Bastien <bzg <at> gnu.org> writes:
>
>> Can you look for the offending change?
>
> This should work in the Emacs repository:
>
> git diff 165f73838^..165f73838 etc/schema/schemas.xml
>
> But I'm not sure what changed in org-mode.

I believe Org mode has always had that trimmed-down schemas.xml that only covers their needs.

Ladislav

-- 
Ladislav Lhotka 
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67




Added indication that bug 42851 blocks43018 Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 31 Oct 2020 16:16:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Sat, 31 Oct 2020 22:12:01 GMT) Full text and rfc822 format available.

Message #45 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Yasuhiro KIMURA <yasu <at> utahime.org>
To: 42851 <at> debbugs.gnu.org
Subject: [PATCH] Recover etc/schema/schemas.xml
Date: Sun,  1 Nov 2020 07:10:57 +0900
In commit 165f738382 most lines of this file were removed. It is
obvious regression. So recover them now.

While I'm here, update copyright year to 2020.
---
 etc/schema/schemas.xml | 58 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

diff --git a/etc/schema/schemas.xml b/etc/schema/schemas.xml
index f1e0ed7856..40175b056b 100644
--- a/etc/schema/schemas.xml
+++ b/etc/schema/schemas.xml
@@ -1,7 +1,65 @@
 <?xml version="1.0"?>
+<!-- Copyright (C) 2003-2004, 2007-2020 Free Software Foundation, Inc.
+
+This file is part of GNU Emacs.
+
+GNU Emacs is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+GNU Emacs is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>. -->
+
 <locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
+  <transformURI fromPattern="*.xml" toPattern="*.rnc"/>
+
+  <uri pattern="*.xsl" typeId="XSLT"/>
+  <uri pattern="*.html" typeId="XHTML"/>
+  <uri pattern="*.rng" typeId="RELAX NG"/>
+  <uri pattern="*.rdf" typeId="RDF"/>
+  <uri pattern="*.dbk" typeId="DocBook"/>
+
+  <namespace ns="http://www.w3.org/1999/XSL/Transform" typeId="XSLT"/>
+  <namespace ns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" typeId="RDF"/>
+  <namespace ns="http://www.w3.org/1999/xhtml" typeId="XHTML"/>
+  <namespace ns="http://relaxng.org/ns/structure/1.0" typeId="RELAX NG"/>
+  <namespace ns="http://thaiopensource.com/ns/locating-rules/1.0"
+	     uri="locate.rnc"/>
+
+  <documentElement localName="stylesheet" typeId="XSLT"/>
+  <documentElement prefix="xsl" localName="transform" typeId="XSLT"/>
+
+  <documentElement localName="html" typeId="XHTML"/>
+
+  <documentElement localName="grammar" typeId="RELAX NG"/>
+
+  <documentElement prefix="" localName="article" typeId="DocBook"/>
+  <documentElement prefix="" localName="book" typeId="DocBook"/>
+  <documentElement prefix="" localName="chapter" typeId="DocBook"/>
+  <documentElement prefix="" localName="part" typeId="DocBook"/>
+  <documentElement prefix="" localName="refentry" typeId="DocBook"/>
+  <documentElement prefix="" localName="section" typeId="DocBook"/>
+
+  <documentElement localName="RDF" typeId="RDF"/>
+  <documentElement prefix="rdf" typeId="RDF"/>
+
+  <documentElement localName="locatingRules" uri="locate.rnc"/>
+
+  <typeId id="XSLT" uri="xslt.rnc"/>
+  <typeId id="RELAX NG" uri="relaxng.rnc"/>
+  <typeId id="XHTML" uri="xhtml.rnc"/>
+  <typeId id="DocBook" uri="docbook.rnc"/>
+  <typeId id="RDF" uri="rdfxml.rnc"/>
+
   <documentElement prefix="office" typeId="OpenDocument"/>
   <documentElement prefix="manifest" localName="manifest" typeId="OpenDocument Manifest"/>
   <typeId id="OpenDocument" uri="od-schema-v1.2-os.rnc"/>
   <typeId id="OpenDocument Manifest" uri="od-manifest-schema-v1.2-os.rnc"/>
+
 </locatingRules>
-- 
2.29.2





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Sun, 01 Nov 2020 13:04:02 GMT) Full text and rfc822 format available.

Message #48 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Yasuhiro KIMURA <yasu <at> utahime.org>
Cc: 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: [PATCH] Recover etc/schema/schemas.xml
Date: Sun, 01 Nov 2020 14:03:19 +0100
Yasuhiro KIMURA <yasu <at> utahime.org> writes:

> In commit 165f738382 most lines of this file were removed. It is
> obvious regression. So recover them now.

Thanks; applied to Emacs 28.

Since this was a (partial) reversion of a commit, doing it without a
copyright assignment should be fine, I think.

This change was small enough to apply without assigning copyright to the
FSF, but for future patches you want to submit, it might make sense to
get the paperwork started now, so that subsequent patches can be applied
speedily. Would you be willing to sign such paperwork?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 01 Nov 2020 13:04:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 42851 <at> debbugs.gnu.org and Ladislav Lhotka <ladislav.lhotka <at> nic.cz> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 01 Nov 2020 13:04:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Sun, 01 Nov 2020 13:27:02 GMT) Full text and rfc822 format available.

Message #55 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Yasuhiro KIMURA <yasu <at> utahime.org>
Cc: 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: [PATCH] Recover etc/schema/schemas.xml
Date: Sun, 1 Nov 2020 05:26:29 -0800
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Yasuhiro KIMURA <yasu <at> utahime.org> writes:
>
>> In commit 165f738382 most lines of this file were removed. It is
>> obvious regression. So recover them now.
>
> Thanks; applied to Emacs 28.

I think this should go to emacs-27.  It's a clear regression from 26.3.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Mon, 02 Nov 2020 14:59:02 GMT) Full text and rfc822 format available.

Message #58 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: Yasuhiro KIMURA <yasu <at> utahime.org>, 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: [PATCH] Recover etc/schema/schemas.xml
Date: Mon, 02 Nov 2020 15:58:09 +0100
Stefan Kangas <stefankangas <at> gmail.com> writes:

> I think this should go to emacs-27.  It's a clear regression from 26.3.

OK; cherry-picked and pushed.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42851; Package emacs. (Mon, 02 Nov 2020 15:56:01 GMT) Full text and rfc822 format available.

Message #61 received at 42851 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Yasuhiro KIMURA <yasu <at> utahime.org>, 42851 <at> debbugs.gnu.org
Subject: Re: bug#42851: [PATCH] Recover etc/schema/schemas.xml
Date: Mon, 2 Nov 2020 07:55:42 -0800
reopen 42851
close 42851 27.2
thanks

Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>> I think this should go to emacs-27.  It's a clear regression from 26.3.
>
> OK; cherry-picked and pushed.

Thanks.

I'm reopening to close this against 27.2, just in case anyone is paying
attention to that.




bug No longer marked as fixed in versions 28.1 and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 02 Nov 2020 15:56:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.2, send any further explanations to 42851 <at> debbugs.gnu.org and Ladislav Lhotka <ladislav.lhotka <at> nic.cz> Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 02 Nov 2020 15:56:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 01 Dec 2020 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.