From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#46764: Extra ">" sails right past XML validator Date: Fri, 26 Feb 2021 11:28:23 +0100 Message-ID: <6CEF2B35-1F1C-42F2-AEE9-DB520F8ABD8C@acm.org> References: <87eeh5m3pj.5.fsf@jidanni.org> <1BC1969E-7FA9-4EBC-AAD4-886659259173@acm.org> <87v9afkwh3.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37279"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46764@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 26 11:29:11 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 1lFaMw-0009cR-JO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Feb 2021 11:29:10 +0100 Original-Received: from localhost ([::1]:55042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFaMv-0002eB-M0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Feb 2021 05:29:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFaMo-0002dp-Gt for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 05:29:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57034) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFaMo-0006a7-AH for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 05:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lFaMo-0006ri-6R for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 05:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Feb 2021 10:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46764 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 46764-submit@debbugs.gnu.org id=B46764.161433531226355 (code B ref 46764); Fri, 26 Feb 2021 10:29:02 +0000 Original-Received: (at 46764) by debbugs.gnu.org; 26 Feb 2021 10:28:32 +0000 Original-Received: from localhost ([127.0.0.1]:40347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFaMK-0006r1-1T for submit@debbugs.gnu.org; Fri, 26 Feb 2021 05:28:32 -0500 Original-Received: from mail226c50.megamailservers.eu ([91.136.10.236]:36620 helo=mail36c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFaMH-0006qr-2s for 46764@debbugs.gnu.org; Fri, 26 Feb 2021 05:28:30 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1614335307; bh=hNSa2KFhpGXUGRoqmxwo00PAbi7PHhco4Uj/Y4/L2gg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=XE/PEv5uC2Wqein18fvtVjderCUkU8nNNWNJuqwRcmes+F9uzdfD9o6YLuwUJFXPx jHScOd+eaho5+dLknQS0S4sk6gG5Wi1LzCizpfPqV21oc1TsfeUujxkuCToXF1S0OW 4jOwehVyGqis1BWv4s/3xxoGPuy2wn/XIAo4PdxM= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-b952e353.032-75-73746f71.bbcust.telenor.se [83.227.82.185]) (authenticated bits=0) by mail36c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 11QASO3t029868; Fri, 26 Feb 2021 10:28:25 +0000 In-Reply-To: <87v9afkwh3.fsf@gnus.org> X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F19.6038CD4B.0001, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=M4oz1B4s c=1 sm=1 tr=0 a=von4qPfY+hyqc0zmWf0tYQ==:117 a=von4qPfY+hyqc0zmWf0tYQ==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=OocQHUDgAAAA:8 a=ij7nmSuUPTR_DbN8rqoA:9 a=CjuIK1q_8ugA:10 a=xUZTl98r3Qw_uB5NK3jt:22 X-Origin-Country: SE 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:200849 Archived-At: 26 feb. 2021 kl. 10.30 skrev Lars Ingebrigtsen : >> ">" is not a special character at top level in XML; > is = well-formed. >>=20 >> I agree that it is an easy mistake to make and overlook. Perhaps an >> optional warning would be helpful? >=20 > Well, if it is valid (and it is), then I don't really see how adding = an > optional warning here would be all that helpful, either -- it seems > kinda beyond the remit of the validator here to teach XML syntax? It's useful to prevent mistakes, not just following the standard to the = letter. Given that the XML file is in an Emacs buffer there is a fair = chance that it was hand-written, and then the extra ">" is likely to be = unintended, especially since it can be somewhat hard to spot by a human. Many other modes do similar things. For example, emacs-lisp-mode warns = about useless backslashes in strings even though there is no actual = syntax error. Think of it as a useful compiler warning. > So I'm closing this bug report. That's fine. Dan can reopen if he thinks nxml-mode really needs = improvement.