declare smobs in alloc.c
[bpt/emacs.git] / etc / NXML-NEWS
CommitLineData
8cd39fb3
MH
120041004
2--------
3
4Support for outlining has been added. See the manual for more details.
5
6C-u C-c C-n goes to the first error.
7
820040910
9--------
10
11C-c RET splits the current element as in PSGML.
12
1320040908
14--------
15
16Indentation has been rewritten. Indentation of attribute names and
17values should work better. The default value of
18`nxml-attribute-indent' has been changed to 4.
19
20Syntax highlighting with a dark background should now work.
21
2220040726
23--------
24
25The attribute pathSuffix on the uri element in schema locating files
26has been replaced by a more general pattern attribute. The
27transformURI element now has required fromPattern and toPattern
28attributes.
29
30The schema related bindings have been changed to use C-c C-s as a prefix
31as follows:
32
33 C-c C-s => C-c C-s C-f (f for file)
34 C-c C-a => C-c C-s C-a
35 C-c C-t => C-c C-s C-t
36 C-c C-l => C-c C-s C-l
37 C-c C-w => C-c C-s C-w
38
39There's now an XML menu on the menu-bar.
40
4120031031
42--------
43
44C-c C-d "dynamically" chooses a tag to put around the word before
45point, rather like M-/.
46
47The mechanism for locating the schema has changed completely. The new
48mechanism is described in the manual. Any existing customizations of
49`rng-auto-element-alist' or `rng-auto-file-name-alist' will no longer
50be effective.
51
52C-c C-a is now bound to rng-auto-set-schema.
53
5420031018
55--------
56
57Unicode names can be used to insert characters with the new command
58C-c C-u. Normally, this inserts a character reference. With a prefix
59arg (i.e. C-u C-c C-u), it inserts the character directly. You can
60customize `nxml-enabled-unicode-blocks' to control what Unicode blocks
61are used for completing names.
62
63Extra information is displayed for character references. The Unicode
64name is displayed in a tooltip. A glyph for the referenced character
65is displayed in a distinguished face following the character
66reference; this can be disabled by customizing
67`nxml-char-ref-display-glyph-flag'. The command
68`nxml-toggle-char-ref-extra-display' dynamically toggles the display
69of extra information for character references for a particular buffer.
70This can be used if the display of extra information is causing
71performance problems. nXML mode tries to figure out which glyphs can
72be displayed. Unfortunately Emacs doesn't provide the primitives
73necessary to do this properly, so nXML mode has to guess and will
74sometimes guess wrong. The hook `nxml-glyph-set-hook' can be used to
75change nXML mode's guess.
76
77New command C-c C-w says what schema is being used.
78
79C-c C-s now turns on validation if it is not already on.
80
8120030928
82--------
83
84M-q has been implemented so that it works reasonably with XML. Other
85paragraph-related commands (M-{, M-}, M-h) have also been implemented.
86
87New command M-x rng-auto-set-schema to set the schema based on the
88buffer's current contents and file-name. This is called automatically
89when rng-validate-mode is first enabled.
90
91There's now a C-M-d to go with C-M-u. C-M-d moves forward down into
92the content of an element. C-M-n and C-M-p move to the next or
93previous element.
94
95By default, the sexp commands (C-M-f, C-M-b, C-M-k, C-M-SPC) operate
fffa137c 96on tags rather than elements. To restore the old behavior,
8cd39fb3
MH
97customize nxml-sexp-element-flag.
98
99The file TUTORIAL has been replaced by nxml-mode.info; this is in info
100format and can be read using Emacs. The source is maintained in a
101simple, ad-hoc XML format.
102
10320030915
104--------
105
106XML encodings should now work properly. When saving a buffer,
107nxml-mode arranges to use the encoding declared in the XML
108declaration. If there is no encoding declared, then nxml-mode will
109use utf-8 or utf-16 according to the user options
110`nxml-prefer-utf-16-to-utf-8-flag' and
111`nxml-prefer-utf-16-little-to-big-endian-flag'. If the chosen encoding
112cannot encode all the characters in the buffer, nxml-mode will
113complain and give the user an opportunity to use an encoding that can.
114
115A new command C-c C-x inserts an XML declaration.
116
117The option `nxml-auto-insert-xml-declaration-flag' automatically
118inserts an XML declaration in new files.
119
120The `nxml-default-buffer-file-coding-system' option allows a different
121default buffer-file-coding-system for nXML mode buffers. This affects
122what XML declaration is inserted.
123
124Encoding names in XML declarations are now validated by
125rng-validate-mode.
126
127RDF/XML schema was updated to version in 05 September 2003 WD.
128
12920030912
130--------
131
132The tutorial has a new section on inserting end-tags.
133
134By default </ no longer automatically inserts the rest of the end-tag.
135You can do
136
137 M-x customize-variable RET nxml-slash-auto-complete-flag RET
138
139and then follow the instructions displayed in the buffer to get the
fffa137c 140old behavior.
8cd39fb3
MH
141
142Completion after </ will complete the rest of the end-tag. Completion
143after < will include the end-tag in the possibilities if allowed by
144the schema.
145
146You can use C-c C-i instead of > to close the start-tag of an
147inline-level element. After inserting the >, it will insert the
148end-tag and leave point before the end-tag. The `i' is supposed to be
149mnemonic for `inline'. C-c C-b is similar, but for block elements: the
150start-tag, point and the end-tag will all be on separate lines.
151
152The binding for inserting an end-tag has changed from C-c / to C-c C-f
153to comply with Emacs guidelines about what keys major modes should
154bind. The `f' is supposed to be mnemonic for `finish'.
155
156Completion always puts point after all the characters it inserts. It
157doesn't insert a `>' after completing a start-tag name.
158
159Completion no longer completes CDATA section and comment delimiters.
160
161The nxml-start-auto-coding command enables auto-detection of a file's
162encoding as specified in the XML Recommendation for files that use
163nxml-mode; rng-auto.el calls this.
164
16520030906
166--------
167
168Validation messages applicable to point are displayed automatically.
169
170Completion can deal with prefixes that haven't yet been declared.
171
172rng-preferred-prefix-alist variable added.
173
174Namespace URIs can be completed.
175
176xmlns and xmlns:* attributes can be completed.
177
178CDATA section and comment delimiters can be completed.
179
180Each kind of completion has its own history.
181
182Completion function moved to nxml-mode; uses a hook to allow
183schema-sensitive completion. Completion function bound to C-return.
184Also bound to M-TAB as before, unless
185nxml-bind-meta-tab-to-complete-flag is nil. When there is a window
186system, nxml-bind-meta-tab-to-complete-flag is nil by default, This
187avoid problems with M-TAB, which is not passed through by several
188window systems/managers.
189
190TUTORIAL file added.
191
192NEWS file added.
193
194Bug fixes.
195
19620030901
197--------
198
199Initial release.