Update copyright year to 2015
[emacs.git] / etc / NXML-NEWS
blobde9f18d4244551a2144485ff696cdf1346f88bc6
1 Copyright (C) 2007-2015 Free Software Foundation, Inc.
2 See the end of the file for license conditions.
5 For more recent changes, see the main Emacs NEWS file.
8 20041004
9 --------
11 Support for outlining has been added. See the manual for more details.
13 C-u C-c C-n goes to the first error.
15 20040910
16 --------
18 C-c RET splits the current element as in PSGML.
20 20040908
21 --------
23 Indentation has been rewritten.  Indentation of attribute names and
24 values should work better.  The default value of
25 `nxml-attribute-indent' has been changed to 4.
27 Syntax highlighting with a dark background should now work.
29 20040726
30 --------
32 The attribute pathSuffix on the uri element in schema locating files
33 has been replaced by a more general pattern attribute. The
34 transformURI element now has required fromPattern and toPattern
35 attributes.
37 The schema related bindings have been changed to use C-c C-s as a prefix
38 as follows:
40   C-c C-s => C-c C-s C-f (f for file)
41   C-c C-a => C-c C-s C-a
42   C-c C-t => C-c C-s C-t
43   C-c C-l => C-c C-s C-l
44   C-c C-w => C-c C-s C-w
46 There's now an XML menu on the menu-bar.
48 20031031
49 --------
51 C-c C-d "dynamically" chooses a tag to put around the word before
52 point, rather like M-/.
54 The mechanism for locating the schema has changed completely.  The new
55 mechanism is described in the manual.  Any existing customizations of
56 `rng-auto-element-alist' or `rng-auto-file-name-alist' will no longer
57 be effective.
59 C-c C-a is now bound to rng-auto-set-schema.
61 20031018
62 --------
64 Unicode names can be used to insert characters with the new command
65 C-c C-u.  Normally, this inserts a character reference.  With a prefix
66 arg (i.e. C-u C-c C-u), it inserts the character directly.  You can
67 customize `nxml-enabled-unicode-blocks' to control what Unicode blocks
68 are used for completing names.
70 Extra information is displayed for character references.  The Unicode
71 name is displayed in a tooltip. A glyph for the referenced character
72 is displayed in a distinguished face following the character
73 reference; this can be disabled by customizing
74 `nxml-char-ref-display-glyph-flag'.  The command
75 `nxml-toggle-char-ref-extra-display' dynamically toggles the display
76 of extra information for character references for a particular buffer.
77 This can be used if the display of extra information is causing
78 performance problems. nXML mode tries to figure out which glyphs can
79 be displayed. Unfortunately Emacs doesn't provide the primitives
80 necessary to do this properly, so nXML mode has to guess and will
81 sometimes guess wrong.  The hook `nxml-glyph-set-hook' can be used to
82 change nXML mode's guess.
84 New command C-c C-w says what schema is being used.
86 C-c C-s now turns on validation if it is not already on.
88 20030928
89 --------
91 M-q has been implemented so that it works reasonably with XML.  Other
92 paragraph-related commands (M-{, M-}, M-h) have also been implemented.
94 New command M-x rng-auto-set-schema to set the schema based on the
95 buffer's current contents and file-name. This is called automatically
96 when rng-validate-mode is first enabled.
98 There's now a C-M-d to go with C-M-u.  C-M-d moves forward down into
99 the content of an element.  C-M-n and C-M-p move to the next or
100 previous element.
102 By default, the sexp commands (C-M-f, C-M-b, C-M-k, C-M-SPC) operate
103 on tags rather than elements.  To restore the old behavior,
104 customize nxml-sexp-element-flag.
106 The file TUTORIAL has been replaced by nxml-mode.info; this is in info
107 format and can be read using Emacs.  The source is maintained in a
108 simple, ad-hoc XML format.
110 20030915
111 --------
113 XML encodings should now work properly.  When saving a buffer,
114 nxml-mode arranges to use the encoding declared in the XML
115 declaration.  If there is no encoding declared, then nxml-mode will
116 use utf-8 or utf-16 according to the user options
117 `nxml-prefer-utf-16-to-utf-8-flag' and
118 `nxml-prefer-utf-16-little-to-big-endian-flag'. If the chosen encoding
119 cannot encode all the characters in the buffer, nxml-mode will
120 complain and give the user an opportunity to use an encoding that can.
122 A new command C-c C-x inserts an XML declaration.
124 The option `nxml-auto-insert-xml-declaration-flag' automatically
125 inserts an XML declaration in new files.
127 The `nxml-default-buffer-file-coding-system' option allows a different
128 default buffer-file-coding-system for nXML mode buffers.  This affects
129 what XML declaration is inserted.
131 Encoding names in XML declarations are now validated by
132 rng-validate-mode.
134 RDF/XML schema was updated to version in 05 September 2003 WD.
136 20030912
137 --------
139 The tutorial has a new section on inserting end-tags.
141 By default </ no longer automatically inserts the rest of the end-tag.
142 You can do
144   M-x customize-variable RET nxml-slash-auto-complete-flag RET
146 and then follow the instructions displayed in the buffer to get the
147 old behavior.
149 Completion after </ will complete the rest of the end-tag. Completion
150 after < will include the end-tag in the possibilities if allowed by
151 the schema.
153 You can use C-c C-i instead of > to close the start-tag of an
154 inline-level element.  After inserting the >, it will insert the
155 end-tag and leave point before the end-tag. The `i' is supposed to be
156 mnemonic for `inline'. C-c C-b is similar, but for block elements: the
157 start-tag, point and the end-tag will all be on separate lines.
159 The binding for inserting an end-tag has changed from C-c / to C-c C-f
160 to comply with Emacs guidelines about what keys major modes should
161 bind.  The `f' is supposed to be mnemonic for `finish'.
163 Completion always puts point after all the characters it inserts. It
164 doesn't insert a `>' after completing a start-tag name.
166 Completion no longer completes CDATA section and comment delimiters.
168 The nxml-start-auto-coding command enables auto-detection of a file's
169 encoding as specified in the XML Recommendation for files that use
170 nxml-mode; rng-auto.el calls this.
172 20030906
173 --------
175 Validation messages applicable to point are displayed automatically.
177 Completion can deal with prefixes that haven't yet been declared.
179 rng-preferred-prefix-alist variable added.
181 Namespace URIs can be completed.
183 xmlns and xmlns:* attributes can be completed.
185 CDATA section and comment delimiters can be completed.
187 Each kind of completion has its own history.
189 Completion function moved to nxml-mode; uses a hook to allow
190 schema-sensitive completion.  Completion function bound to C-return.
191 Also bound to M-TAB as before, unless
192 nxml-bind-meta-tab-to-complete-flag is nil.  When there is a window
193 system, nxml-bind-meta-tab-to-complete-flag is nil by default, This
194 avoid problems with M-TAB, which is not passed through by several
195 window systems/managers.
197 TUTORIAL file added.
199 NEWS file added.
201 Bug fixes.
203 20030901
204 --------
206 Initial release.
210 This file is part of GNU Emacs.
212 GNU Emacs is free software: you can redistribute it and/or modify
213 it under the terms of the GNU General Public License as published by
214 the Free Software Foundation, either version 3 of the License, or
215 (at your option) any later version.
217 GNU Emacs is distributed in the hope that it will be useful,
218 but WITHOUT ANY WARRANTY; without even the implied warranty of
219 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
220 GNU General Public License for more details.
222 You should have received a copy of the GNU General Public License
223 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.