changeset 87712:a9f53375739a

(nxml-mode): Call rng-nxml-mode-init directly. Update doc string and commentary.
author Jason Rumney <jasonr@gnu.org>
date Fri, 11 Jan 2008 15:11:38 +0000
parents 7dc75a6bfb38
children 382c7e50d28c
files lisp/nxml/nxml-mode.el
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/nxml/nxml-mode.el	Fri Jan 11 11:30:25 2008 +0000
+++ b/lisp/nxml/nxml-mode.el	Fri Jan 11 15:11:38 2008 +0000
@@ -24,8 +24,6 @@
 
 ;;; Commentary:
 
-;; To use this include rng-auto.el in your .emacs.
-
 ;; See nxml-rap.el for description of parsing strategy.
 
 ;; The font locking here is independent of font-lock.el.  We want to
@@ -479,9 +477,9 @@
 Validation is provided by the related minor-mode `rng-validate-mode'.
 This also makes completion schema- and context- sensitive.  Element
 names, attribute names, attribute values and namespace URIs can all be
-completed. By default, `rng-validate-mode' is automatically enabled by
-`rng-nxml-mode-init' which is normally added to `nxml-mode-hook'. You
-can toggle it using \\[rng-validate-mode].
+completed. By default, `rng-validate-mode' is automatically enabled. You
+can toggle it using \\[rng-validate-mode] or change the default by
+customizing `rng-nxml-auto-validate-flag'.
 
 \\[indent-for-tab-command] indents the current line appropriately.
 This can be customized using the variable `nxml-child-indent'
@@ -555,6 +553,7 @@
       (setq buffer-file-coding-system nxml-default-buffer-file-coding-system))
     (when nxml-auto-insert-xml-declaration-flag
       (nxml-insert-xml-declaration)))
+  (rng-nxml-mode-init)
   (run-hooks 'nxml-mode-hook))
 
 (defun nxml-degrade (context err)