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