Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65836 - nxml-mode-20040910.ebuild (new - update of nxml-mode-20031018.ebuild)
Summary: nxml-mode-20040910.ebuild (new - update of nxml-mode-20031018.ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-09-29 12:03 UTC by Lénaïc Huard
Modified: 2004-10-06 01:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
nxml-mode ebuild archive (nxml-mode-20040910-ebuild.tar.gz,10.39 KB, application/gzip)
2004-09-29 12:10 UTC, Lénaïc Huard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lénaïc Huard 2004-09-29 12:03:28 UTC
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.
Comment 1 Lénaïc Huard 2004-09-29 12:10:37 UTC
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)
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-02 02:45:46 UTC
Added to CVS. Thanks for your contribution.
Comment 3 Lénaïc Huard 2004-10-05 23:42:44 UTC
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)
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-06 01:26:15 UTC
Fixed in CVS. Thanks for the suggestion and comment.