Hello, Please, find attached an ebuild for nXML emacs mode version 20040910. It is a modified version of the previous ebuild (20031018). I have also added a patch to integrate W3C XML Schema management.
Created attachment 40727 [details] nxml-mode ebuild archive The archive contains: nxml-mode-20040910.ebuild (The ebuild) nxml-mode-20040910-xmlschema.patch (the patch for W3C XML Schema) 80nxml-mode-gentoo.el (the init file)
Added to CVS. Thanks for your contribution.
Hello, The init file should also be modified in order for the nxml-mode to be launched when an XML schema is opened : .xsd extension should be added in 80nxml-mode-gentoo.el : lenaic@lhuard ~ $ diff /usr/portage/app-emacs/nxml-mode/files/80nxml-mode-gentoo.el /home/portage/overlay/app-emacs/nxml-mode/files/80nxml-mode-gentoo.el 8c8 < (cons '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'" . nxml-mode) --- > (cons '("\\.\\(xml\\|xsl\\|xsd\\|rng\\|xhtml\\)\\'" . nxml-mode) There is no need to have two different init files for two versions of the ebuild. Actually, when a .xsd file is opened, emacs uses the fundamental mode. If xsd extension is added, emacs will use the nxml mode for those files. With the patched version 20040910, nxml-mode will provide validity check against the XML Schema schema. With the old version 20031018, nxml-mode will provide well-formness check (which is better than the fundamental mode)
Fixed in CVS. Thanks for the suggestion and comment.