Package: nxml-mode Version: 20041004-7 Severity: normal Tags: patch
A common file extension for DocBook files is '.dbk', which is not commonly used for any other purpose, at least on Linux. By adding one line in schemas.xml and changing one in emacs-startup, this can be supported by nxml-mode easily.
diff -uraN debian.orig/emacsen-startup debian/emacsen-startup --- debian.orig/emacsen-startup 2008-09-07 12:43:36.000000000 +0200 +++ debian/emacsen-startup 2008-09-07 12:43:55.000000000 +0200 @@ -25,5 +25,5 @@ ;; Comment this out if you want to use PSGML or another mode to edit ;; these files. (setq auto-mode-alist - (cons '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'" . nxml-mode) + (cons '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\|dbk\\)\\'" . nxml-mode) auto-mode-alist))) diff -uraN debian.orig/patches/00list debian/patches/00list --- debian.orig/patches/00list 2008-09-07 12:43:02.000000000 +0200 +++ debian/patches/00list 2008-09-07 12:56:53.000000000 +0200 @@ -2,3 +2,4 @@ range-striding-over-charsets startup-bogosity debian-use-siteflag +docbook-dbk diff -uraN debian.orig/patches/docbook-dbk.dpatch debian/patches/docbook-dbk.dpatch --- debian.orig/patches/docbook-dbk.dpatch 1970-01-01 01:00:00.000000000 +0100 +++ debian/patches/docbook-dbk.dpatch 2008-09-07 12:59:43.000000000 +0200 @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## docbook_dbk_patch.dpatch by W. Martin Borgert <[EMAIL PROTECTED]> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: support ".dbk" as a typical file name extension for DocBook files + [EMAIL PROTECTED]@ +--- nxml-mode-20041004.orig/schema/schemas.xml 2003-11-02 16:42:43.000000000 +0100 ++++ nxml-mode-20041004/schema/schemas.xml 2008-09-07 12:52:58.000000000 +0000 +@@ -5,6 +5,7 @@ + <uri pattern="*.html" typeId="XHTML"/> + <uri pattern="*.rng" typeId="RELAX NG"/> + <uri pattern="*.rdf" typeId="RDF"/> ++ <uri pattern="*.dbk" typeId="DocBook"/> + + <namespace ns="http://www.w3.org/1999/XSL/Transform" typeId="XSLT"/> + <namespace ns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" typeId="RDF"/>