diff options
Diffstat (limited to 'lisp/nxml')
| -rw-r--r-- | lisp/nxml/nxml-enc.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/nxml-glyph.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/nxml-maint.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/nxml-mode.el | 21 | ||||
| -rw-r--r-- | lisp/nxml/nxml-ns.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/nxml-outln.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/nxml-parse.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/nxml-rap.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/nxml-uchnm.el | 19 | ||||
| -rw-r--r-- | lisp/nxml/nxml-util.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-cmpct.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-dt.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-loc.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-maint.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-match.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-nxml.el | 17 | ||||
| -rw-r--r-- | lisp/nxml/rng-parse.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-pttrn.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-uri.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-util.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-valid.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-xsd.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/xmltok.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/xsd-regexp.el | 2 |
24 files changed, 50 insertions, 49 deletions
diff --git a/lisp/nxml/nxml-enc.el b/lisp/nxml/nxml-enc.el index 115db17ad70..2210f76ccf5 100644 --- a/lisp/nxml/nxml-enc.el +++ b/lisp/nxml/nxml-enc.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nxml-enc.el --- XML encoding auto-detection | 1 | ;;; nxml-enc.el --- XML encoding auto-detection |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
diff --git a/lisp/nxml/nxml-glyph.el b/lisp/nxml/nxml-glyph.el index 47d7086f246..8e608a32fdc 100644 --- a/lisp/nxml/nxml-glyph.el +++ b/lisp/nxml/nxml-glyph.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nxml-glyph.el --- glyph-handling for nxml-mode | 1 | ;;; nxml-glyph.el --- glyph-handling for nxml-mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
diff --git a/lisp/nxml/nxml-maint.el b/lisp/nxml/nxml-maint.el index 7df2bc99f35..d9ba6fff90a 100644 --- a/lisp/nxml/nxml-maint.el +++ b/lisp/nxml/nxml-maint.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nxml-maint.el --- commands for maintainers of nxml-*.el | 1 | ;;; nxml-maint.el --- commands for maintainers of nxml-*.el |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 973197242f3..11fadedd531 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nxml-mode.el --- a new XML mode | 1 | ;;; nxml-mode.el --- a new XML mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2004, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
| @@ -24,8 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Commentary: | 25 | ;;; Commentary: |
| 26 | 26 | ||
| 27 | ;; To use this include rng-auto.el in your .emacs. | ||
| 28 | |||
| 29 | ;; See nxml-rap.el for description of parsing strategy. | 27 | ;; See nxml-rap.el for description of parsing strategy. |
| 30 | 28 | ||
| 31 | ;; The font locking here is independent of font-lock.el. We want to | 29 | ;; The font locking here is independent of font-lock.el. We want to |
| @@ -45,6 +43,9 @@ | |||
| 45 | (require 'nxml-rap) | 43 | (require 'nxml-rap) |
| 46 | (require 'nxml-outln) | 44 | (require 'nxml-outln) |
| 47 | 45 | ||
| 46 | (declare-function rng-nxml-mode-init "rng-nxml") | ||
| 47 | (declare-function nxml-enable-unicode-char-name-sets "nxml-uchnm") | ||
| 48 | |||
| 48 | ;;; Customization | 49 | ;;; Customization |
| 49 | 50 | ||
| 50 | (defgroup nxml nil | 51 | (defgroup nxml nil |
| @@ -479,9 +480,9 @@ instead of C-c. | |||
| 479 | Validation is provided by the related minor-mode `rng-validate-mode'. | 480 | Validation is provided by the related minor-mode `rng-validate-mode'. |
| 480 | This also makes completion schema- and context- sensitive. Element | 481 | This also makes completion schema- and context- sensitive. Element |
| 481 | names, attribute names, attribute values and namespace URIs can all be | 482 | names, attribute names, attribute values and namespace URIs can all be |
| 482 | completed. By default, `rng-validate-mode' is automatically enabled by | 483 | completed. By default, `rng-validate-mode' is automatically enabled. You |
| 483 | `rng-nxml-mode-init' which is normally added to `nxml-mode-hook'. You | 484 | can toggle it using \\[rng-validate-mode] or change the default by |
| 484 | can toggle it using \\[rng-validate-mode]. | 485 | customizing `rng-nxml-auto-validate-flag'. |
| 485 | 486 | ||
| 486 | \\[indent-for-tab-command] indents the current line appropriately. | 487 | \\[indent-for-tab-command] indents the current line appropriately. |
| 487 | This can be customized using the variable `nxml-child-indent' | 488 | This can be customized using the variable `nxml-child-indent' |
| @@ -509,6 +510,7 @@ Many aspects this mode can be customized using | |||
| 509 | (kill-all-local-variables) | 510 | (kill-all-local-variables) |
| 510 | (setq major-mode 'nxml-mode) | 511 | (setq major-mode 'nxml-mode) |
| 511 | (setq mode-name "nXML") | 512 | (setq mode-name "nXML") |
| 513 | (set (make-local-variable 'mode-line-process) '((nxml-degraded "/degraded"))) | ||
| 512 | ;; We'll determine the fill prefix ourselves | 514 | ;; We'll determine the fill prefix ourselves |
| 513 | (make-local-variable 'adaptive-fill-mode) | 515 | (make-local-variable 'adaptive-fill-mode) |
| 514 | (setq adaptive-fill-mode nil) | 516 | (setq adaptive-fill-mode nil) |
| @@ -555,6 +557,8 @@ Many aspects this mode can be customized using | |||
| 555 | (setq buffer-file-coding-system nxml-default-buffer-file-coding-system)) | 557 | (setq buffer-file-coding-system nxml-default-buffer-file-coding-system)) |
| 556 | (when nxml-auto-insert-xml-declaration-flag | 558 | (when nxml-auto-insert-xml-declaration-flag |
| 557 | (nxml-insert-xml-declaration))) | 559 | (nxml-insert-xml-declaration))) |
| 560 | (rng-nxml-mode-init) | ||
| 561 | (nxml-enable-unicode-char-name-sets) | ||
| 558 | (run-hooks 'nxml-mode-hook)) | 562 | (run-hooks 'nxml-mode-hook)) |
| 559 | 563 | ||
| 560 | (defun nxml-degrade (context err) | 564 | (defun nxml-degrade (context err) |
| @@ -570,8 +574,7 @@ Many aspects this mode can be customized using | |||
| 570 | (nxml-with-unmodifying-text-property-changes | 574 | (nxml-with-unmodifying-text-property-changes |
| 571 | (nxml-clear-face (point-min) (point-max)) | 575 | (nxml-clear-face (point-min) (point-max)) |
| 572 | (nxml-set-fontified (point-min) (point-max)) | 576 | (nxml-set-fontified (point-min) (point-max)) |
| 573 | (nxml-clear-inside (point-min) (point-max))) | 577 | (nxml-clear-inside (point-min) (point-max)))))) |
| 574 | (setq mode-name "nXML/degraded")))) | ||
| 575 | 578 | ||
| 576 | ;;; Change management | 579 | ;;; Change management |
| 577 | 580 | ||
| @@ -2433,7 +2436,7 @@ and attempts to find another possible way to do the markup." | |||
| 2433 | 2436 | ||
| 2434 | ;;; Character names | 2437 | ;;; Character names |
| 2435 | 2438 | ||
| 2436 | (defvar nxml-char-name-ignore-case nil) | 2439 | (defvar nxml-char-name-ignore-case t) |
| 2437 | 2440 | ||
| 2438 | (defvar nxml-char-name-alist nil | 2441 | (defvar nxml-char-name-alist nil |
| 2439 | "Alist of character names. | 2442 | "Alist of character names. |
diff --git a/lisp/nxml/nxml-ns.el b/lisp/nxml/nxml-ns.el index 0d1b1543b45..f9f5656211d 100644 --- a/lisp/nxml/nxml-ns.el +++ b/lisp/nxml/nxml-ns.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nxml-ns.el --- XML namespace processing | 1 | ;;; nxml-ns.el --- XML namespace processing |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
diff --git a/lisp/nxml/nxml-outln.el b/lisp/nxml/nxml-outln.el index 96d8cebf5dc..3363daae15b 100644 --- a/lisp/nxml/nxml-outln.el +++ b/lisp/nxml/nxml-outln.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nxml-outln.el --- outline support for nXML mode | 1 | ;;; nxml-outln.el --- outline support for nXML mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2004, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2004, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
diff --git a/lisp/nxml/nxml-parse.el b/lisp/nxml/nxml-parse.el index 267c18cf887..bad7710a3d5 100644 --- a/lisp/nxml/nxml-parse.el +++ b/lisp/nxml/nxml-parse.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nxml-parse.el --- XML parser, sharing infrastructure with nxml-mode | 1 | ;;; nxml-parse.el --- XML parser, sharing infrastructure with nxml-mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
diff --git a/lisp/nxml/nxml-rap.el b/lisp/nxml/nxml-rap.el index 907812be4cb..095fe11ff44 100644 --- a/lisp/nxml/nxml-rap.el +++ b/lisp/nxml/nxml-rap.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nxml-rap.el --- low-level support for random access parsing for nXML mode | 1 | ;;; nxml-rap.el --- low-level support for random access parsing for nXML mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2004, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
diff --git a/lisp/nxml/nxml-uchnm.el b/lisp/nxml/nxml-uchnm.el index 9514a7de476..09ae310403d 100644 --- a/lisp/nxml/nxml-uchnm.el +++ b/lisp/nxml/nxml-uchnm.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nxml-uchnm.el --- support for Unicode standard cha names in nxml-mode | 1 | ;;; nxml-uchnm.el --- support for Unicode standard cha names in nxml-mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
| @@ -28,9 +28,6 @@ | |||
| 28 | ;; Standard. The use of the names can be controlled on a per-block | 28 | ;; Standard. The use of the names can be controlled on a per-block |
| 29 | ;; basis, so as both to reduce memory usage and loading time, | 29 | ;; basis, so as both to reduce memory usage and loading time, |
| 30 | ;; and to make completion work better. | 30 | ;; and to make completion work better. |
| 31 | ;; The main entry point is `nxml-enable-unicode-char-name-sets'. Typically, | ||
| 32 | ;; this is added to `nxml-mode-hook' (rng-auto.el does this already). | ||
| 33 | ;; To customize the blocks for which names are used | ||
| 34 | 31 | ||
| 35 | ;;; Code: | 32 | ;;; Code: |
| 36 | 33 | ||
| @@ -213,7 +210,9 @@ by a hyphen." | |||
| 213 | data-directory))) | 210 | data-directory))) |
| 214 | nxml-unicode-blocks) | 211 | nxml-unicode-blocks) |
| 215 | 212 | ||
| 216 | (defvar nxml-enable-unicode-char-name-sets-flag nil) | 213 | ;; Internal flag to control whether customize reloads the character tables. |
| 214 | ;; Should be set the first time the | ||
| 215 | (defvar nxml-internal-unicode-char-name-sets-enabled nil) | ||
| 217 | 216 | ||
| 218 | (defcustom nxml-enabled-unicode-blocks nxml-enabled-unicode-blocks-default | 217 | (defcustom nxml-enabled-unicode-blocks nxml-enabled-unicode-blocks-default |
| 219 | "List of Unicode blocks for which Unicode character names are enabled. | 218 | "List of Unicode blocks for which Unicode character names are enabled. |
| @@ -222,8 +221,8 @@ of the block by downcasing and replacing each space by a hyphen." | |||
| 222 | :group 'nxml | 221 | :group 'nxml |
| 223 | :set (lambda (sym value) | 222 | :set (lambda (sym value) |
| 224 | (set-default 'nxml-enabled-unicode-blocks value) | 223 | (set-default 'nxml-enabled-unicode-blocks value) |
| 225 | (when nxml-enable-unicode-char-name-sets-flag | 224 | (when nxml-internal-unicode-char-name-sets-enabled |
| 226 | (nxml-enable-unicode-char-name-sets-1))) | 225 | (nxml-enable-unicode-char-name-sets))) |
| 227 | :type (cons 'set | 226 | :type (cons 'set |
| 228 | (mapcar (lambda (block) | 227 | (mapcar (lambda (block) |
| 229 | `(const :tag ,(format "%s (%04X-%04X)" | 228 | `(const :tag ,(format "%s (%04X-%04X)" |
| @@ -240,11 +239,7 @@ of the block by downcasing and replacing each space by a hyphen." | |||
| 240 | The Unicode blocks for which names are enabled is controlled by | 239 | The Unicode blocks for which names are enabled is controlled by |
| 241 | the variable `nxml-enabled-unicode-blocks'." | 240 | the variable `nxml-enabled-unicode-blocks'." |
| 242 | (interactive) | 241 | (interactive) |
| 243 | (setq nxml-char-name-ignore-case t) | 242 | (setq nxml-internal-unicode-char-name-sets-enabled t) |
| 244 | (setq nxml-enable-unicode-char-name-sets-flag t) | ||
| 245 | (nxml-enable-unicode-char-name-sets-1)) | ||
| 246 | |||
| 247 | (defun nxml-enable-unicode-char-name-sets-1 () | ||
| 248 | (mapc (lambda (block) | 243 | (mapc (lambda (block) |
| 249 | (nxml-disable-char-name-set | 244 | (nxml-disable-char-name-set |
| 250 | (nxml-unicode-block-char-name-set (car block)))) | 245 | (nxml-unicode-block-char-name-set (car block)))) |
diff --git a/lisp/nxml/nxml-util.el b/lisp/nxml/nxml-util.el index 73b8354ddf6..7ea52f34fde 100644 --- a/lisp/nxml/nxml-util.el +++ b/lisp/nxml/nxml-util.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nxml-util.el --- utility functions for nxml-*.el | 1 | ;;; nxml-util.el --- utility functions for nxml-*.el |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
diff --git a/lisp/nxml/rng-cmpct.el b/lisp/nxml/rng-cmpct.el index a83af6ad077..a1915b1d7fe 100644 --- a/lisp/nxml/rng-cmpct.el +++ b/lisp/nxml/rng-cmpct.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-cmpct.el --- parsing of RELAX NG Compact Syntax schemas | 1 | ;;; rng-cmpct.el --- parsing of RELAX NG Compact Syntax schemas |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
diff --git a/lisp/nxml/rng-dt.el b/lisp/nxml/rng-dt.el index 2ed8e19c7d9..700c53407d4 100644 --- a/lisp/nxml/rng-dt.el +++ b/lisp/nxml/rng-dt.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-dt.el --- datatype library interface for RELAX NG | 1 | ;;; rng-dt.el --- datatype library interface for RELAX NG |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
diff --git a/lisp/nxml/rng-loc.el b/lisp/nxml/rng-loc.el index 5646a262068..bae99ff8be6 100644 --- a/lisp/nxml/rng-loc.el +++ b/lisp/nxml/rng-loc.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-loc.el --- locate the schema to use for validation | 1 | ;;; rng-loc.el --- locate the schema to use for validation |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
diff --git a/lisp/nxml/rng-maint.el b/lisp/nxml/rng-maint.el index d535c45691a..e273a536156 100644 --- a/lisp/nxml/rng-maint.el +++ b/lisp/nxml/rng-maint.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-maint.el --- commands for RELAX NG maintainers | 1 | ;;; rng-maint.el --- commands for RELAX NG maintainers |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
diff --git a/lisp/nxml/rng-match.el b/lisp/nxml/rng-match.el index eb79d999634..1f7501d9f2a 100644 --- a/lisp/nxml/rng-match.el +++ b/lisp/nxml/rng-match.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-match.el --- matching of RELAX NG patterns against XML events | 1 | ;;; rng-match.el --- matching of RELAX NG patterns against XML events |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
diff --git a/lisp/nxml/rng-nxml.el b/lisp/nxml/rng-nxml.el index 5b3f2a7baf8..083c637876b 100644 --- a/lisp/nxml/rng-nxml.el +++ b/lisp/nxml/rng-nxml.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-nxml.el --- make nxml-mode take advantage of rng-validate-mode | 1 | ;;; rng-nxml.el --- make nxml-mode take advantage of rng-validate-mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
| @@ -41,10 +41,12 @@ | |||
| 41 | :type 'boolean | 41 | :type 'boolean |
| 42 | :group 'relax-ng) | 42 | :group 'relax-ng) |
| 43 | 43 | ||
| 44 | (defvar rng-preferred-prefix-alist-default nil | 44 | (defcustom rng-preferred-prefix-alist |
| 45 | "Default value for variable `rng-preferred-prefix-alist'.") | 45 | '(("http://www.w3.org/1999/XSL/Transform" . "xsl") |
| 46 | 46 | ("http://www.w3.org/1999/02/22-rdf-syntax-ns#" . "rdf") | |
| 47 | (defcustom rng-preferred-prefix-alist rng-preferred-prefix-alist-default | 47 | ("http://www.w3.org/1999/xlink" . "xlink") |
| 48 | ("http://www.w3.org/2001/XmlSchema" . "xsd") | ||
| 49 | ("http://www.w3.org/2001/XMLSchema-instance" . "xsi")) | ||
| 48 | "*Alist of namespaces vs preferred prefixes." | 50 | "*Alist of namespaces vs preferred prefixes." |
| 49 | :type '(repeat (cons :tag "With" | 51 | :type '(repeat (cons :tag "With" |
| 50 | (string :tag "this namespace URI") | 52 | (string :tag "this namespace URI") |
| @@ -100,8 +102,9 @@ Validation will be enabled if `rng-nxml-auto-validate-flag' is non-nil." | |||
| 100 | (easy-menu-define rng-nxml-menu nxml-mode-map | 102 | (easy-menu-define rng-nxml-menu nxml-mode-map |
| 101 | "Menu for nxml-mode used with rng-validate-mode." | 103 | "Menu for nxml-mode used with rng-validate-mode." |
| 102 | rng-nxml-easy-menu) | 104 | rng-nxml-easy-menu) |
| 103 | (setq mode-line-process | 105 | (add-to-list 'mode-line-process |
| 104 | '(rng-validate-mode (:eval (rng-compute-mode-line-string)))) | 106 | '(rng-validate-mode (:eval (rng-compute-mode-line-string))) |
| 107 | 'append) | ||
| 105 | (cond (rng-nxml-auto-validate-flag | 108 | (cond (rng-nxml-auto-validate-flag |
| 106 | (rng-validate-mode 1) | 109 | (rng-validate-mode 1) |
| 107 | (add-hook 'nxml-completion-hook 'rng-complete nil t) | 110 | (add-hook 'nxml-completion-hook 'rng-complete nil t) |
diff --git a/lisp/nxml/rng-parse.el b/lisp/nxml/rng-parse.el index e9d10e03f21..bf8df6314db 100644 --- a/lisp/nxml/rng-parse.el +++ b/lisp/nxml/rng-parse.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-parse.el --- parse an XML file and validate it against a schema | 1 | ;;; rng-parse.el --- parse an XML file and validate it against a schema |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
diff --git a/lisp/nxml/rng-pttrn.el b/lisp/nxml/rng-pttrn.el index 2ed87943160..bbf28b2b516 100644 --- a/lisp/nxml/rng-pttrn.el +++ b/lisp/nxml/rng-pttrn.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-pttrn.el --- RELAX NG patterns | 1 | ;;; rng-pttrn.el --- RELAX NG patterns |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
diff --git a/lisp/nxml/rng-uri.el b/lisp/nxml/rng-uri.el index f18012abcfe..8f454213c12 100644 --- a/lisp/nxml/rng-uri.el +++ b/lisp/nxml/rng-uri.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-uri.el --- URI parsing and manipulation | 1 | ;;; rng-uri.el --- URI parsing and manipulation |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
diff --git a/lisp/nxml/rng-util.el b/lisp/nxml/rng-util.el index 7ae75f8a607..545ad425fdf 100644 --- a/lisp/nxml/rng-util.el +++ b/lisp/nxml/rng-util.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-util.el --- utility functions for RELAX NG library | 1 | ;;; rng-util.el --- utility functions for RELAX NG library |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
diff --git a/lisp/nxml/rng-valid.el b/lisp/nxml/rng-valid.el index 9b6500e002a..3df0e0e30d2 100644 --- a/lisp/nxml/rng-valid.el +++ b/lisp/nxml/rng-valid.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-valid.el --- real-time validation of XML using RELAX NG | 1 | ;;; rng-valid.el --- real-time validation of XML using RELAX NG |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
diff --git a/lisp/nxml/rng-xsd.el b/lisp/nxml/rng-xsd.el index 782627c4205..bc9e8a9538e 100644 --- a/lisp/nxml/rng-xsd.el +++ b/lisp/nxml/rng-xsd.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; rng-xsd.el --- W3C XML Schema datatypes library for RELAX NG | 1 | ;;; rng-xsd.el --- W3C XML Schema datatypes library for RELAX NG |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: XML, RelaxNG |
diff --git a/lisp/nxml/xmltok.el b/lisp/nxml/xmltok.el index add55bf9840..2fa741c8832 100644 --- a/lisp/nxml/xmltok.el +++ b/lisp/nxml/xmltok.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; xmltok.el --- XML tokenization | 1 | ;;; xmltok.el --- XML tokenization |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: XML |
diff --git a/lisp/nxml/xsd-regexp.el b/lisp/nxml/xsd-regexp.el index a698ce71e60..185be58388d 100644 --- a/lisp/nxml/xsd-regexp.el +++ b/lisp/nxml/xsd-regexp.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; xsd-regexp.el --- translate W3C XML Schema regexps to Emacs regexps | 1 | ;;; xsd-regexp.el --- translate W3C XML Schema regexps to Emacs regexps |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, regexp | 6 | ;; Keywords: XML, regexp |