GNU bug report logs - #79379
[PATCH] 31.0.50; nxml-mode does not provide schema-support for SLNX-files

Previous Next

Package: emacs;

Reported by: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>

Date: Wed, 3 Sep 2025 19:32:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
Cc: 79379 <at> debbugs.gnu.org
Subject: bug#79379: [PATCH]  31.0.50; nxml-mode does not provide schema-support for SLNX-files
Date: Thu, 04 Sep 2025 08:31:08 +0300
> From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
> Date: Wed, 3 Sep 2025 21:30:37 +0200
> 
> SLNX is a new XML-based file-format for .NET based solutions, replacing
> the older proprietary SLN file-format.
> 
> Unlike SLN-files, it is merge-friendly and expected to become the new
> the de-facto standard for working with .NET projects. This commit adds
> support for SLNX-schema to nxml-mode.
> 
> When opening SLNX-files in Emacs and activating nxml-mode, no special
> schema-validation or completion/assistance is provided.
> 
> Attached is a patch which corrects this situation.

Thanks.

> (SLNX-files not added to any auto-mode-list, because I couldn't
> find where/if that is done in the nxml-mode codebase).

It's in files.el, where auto-mode-list is set up:

    ("\\.x[ms]l\\'" . xml-mode)

and "C-h f xml-mode RET" says

  xml-mode is an alias for ‘nxml-mode’ in ‘nxml-mode.el’.




This bug report was last modified 6 days ago.

Previous Next


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