From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincent Lefevre Newsgroups: gmane.emacs.bugs Subject: bug#44874: 27.1; nXML: error when setting the xhtml5.rnc schema Date: Thu, 26 Nov 2020 16:02:33 +0100 Message-ID: <20201126150233.GW29329@zira.vinc17.org> References: <87r1ohmawq.fsf@zira.vinc17.org> <87a6v4xut6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23390"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.14.5+76 (bb407ec3) vl-127292 (2020-06-24) Cc: 44874@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 16:03:23 2020 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 1kiInr-0005vC-13 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 16:03:23 +0100 Original-Received: from localhost ([::1]:43722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiInp-00065T-Ow for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 10:03:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiInW-00065K-F8 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 10:03:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiInW-00030j-6v for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 10:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiInW-0001Kd-2T for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 10:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Nov 2020 15:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 44874-submit@debbugs.gnu.org id=B44874.16064029575087 (code B ref 44874); Thu, 26 Nov 2020 15:03:02 +0000 Original-Received: (at 44874) by debbugs.gnu.org; 26 Nov 2020 15:02:37 +0000 Original-Received: from localhost ([127.0.0.1]:42428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiIn7-0001Jz-7o for submit@debbugs.gnu.org; Thu, 26 Nov 2020 10:02:37 -0500 Original-Received: from joooj.vinc17.net ([155.133.131.76]:43514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiIn5-0001Jr-L9 for 44874@debbugs.gnu.org; Thu, 26 Nov 2020 10:02:36 -0500 Original-Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 4766B2F6; Thu, 26 Nov 2020 16:02:34 +0100 (CET) Original-Received: by zira.vinc17.org (Postfix, from userid 1000) id E9DECC20038; Thu, 26 Nov 2020 16:02:33 +0100 (CET) Content-Disposition: inline In-Reply-To: <87a6v4xut6.fsf@gnus.org> X-Mailer-Info: https://www.vinc17.net/mutt/ 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:194340 Archived-At: On 2020-11-26 11:43:17 +0100, Lars Ingebrigtsen wrote: > Here's what I did: > > cd /tmp > git clone https://github.com/emacsmirror/html5-schema > emacs -Q foo.xml > M-x rng-set-schema-file RET /tmp/html5-schema/xhtml5.rnc RET > > It asks me whether to save the location, and I answer "y", and I get no > error. OK, there seems to be a difference when doing that instead of using the menu. BTW, after saving the location, if you quit and reopen the file, you should now get the error message. > Do you have a more precise recipe for reproducing the error? If you don't get the error message, just make sure to validate with "C-c C-v". This is what makes the error appear. Note: After that, if I select Set Schema → Any Well-Formed XML from the menu, I get "Using vacuous schema", which is fine. But C-c C-v still gives the error "Incorrect schema. Unknown datatype library http://whattf.org/datatype-draft"! This is with Debian's GNU Emacs 27.1. Note: it is possible to reproduce the issue from an empty XML file, but after the schema is selected, one needs to type the beginning of an element, e.g. " - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)