Initial Commit
[packages] / xemacs-packages / psgml / ChangeLog.upstream
1 2005-03-02  Lennart Staflin  <lenst@lysator.liu.se>
2
3         * psgml.el (sgml-mode-map): bind C-c C-s to new comman
4         sgml-show-structure.
5         Update autoloads.
6
7         * psgml-edit.el (sgml-show-structure): new command
8         (sgml-show-structure-insert, sgml-show-struct-element-p)
9         (sgml-structure-elements): new functions
10
11 2005-02-27  Lennart Staflin  <lenst@lysator.liu.se>
12
13         * psgml.el (sgml-content-indent-function): moved
14         (sgml-attribute-indent-function): moved
15
16         * psgml-edit.el (sgml-show-context): use new option
17         sgml-show-context-function.
18         (sgml-show-context-standard, sgml-show-context-backslash): new
19         functions for sgml-show-context-function
20         (sgml-right-menu): new command for use on a mouse button
21
22         * psgml.el (sgml-mode-map): bind C-c C-t to
23         sgml-show-current-element-type
24         (sgml-show-context-function): new option
25
26         * psgml-edit.el (sgml-show-current-element-type): new command
27
28         * psgml.el (sgml-mode-map): change C-c C-p to sgml-load-doctype
29
30         * psgml-parse.el (sgml-load-doctype): make interactive, this is a
31         more useful command than sgml-parse-prolog.
32
33         * psgml-info.el (sgml-describe-dtd): rename sgml-general-dtd-info
34         to sgml-describe-dtd. Keep old name as alias.
35
36         * psgml-other.el (sgml-set-face-for): added face setting for content
37
38         * psgml-parse.el (sgml--pi-element-handler): use sgml-parse-s not
39         sgml-skip-ps.
40
41 2005-02-24  Lennart Staflin  <lenst@lysator.liu.se>
42
43         * psgml-parse.el (sgml-do-processing-instruction): call
44         sgml--pi-psgml-handler with end point of PI.
45         (sgml--pi-psgml-handler): Take end point, and narrow buffer before
46         parsing.
47
48 2005-02-17  Lennart Staflin  <lenst@lysator.liu.se>
49
50         * psgml-parse.el (sgml-parse-prolog): apply sgml-general-case to
51         sgml-default-doctype-name.
52
53
54 2005-02-09  Lennart Staflin  <lenst@lysator.liu.se>
55
56         * psgml.el (sgml-debug): remove sgml-log-message
57         remove log related keybinding/menu entry
58
59         * psgml-parse.el (sgml-compile-dtd, sgml-check-entities)
60         (sgml-log-warning, sgml-error): remove sgml-log-message
61         (sgml-entity-stack): new func
62
63         * psgml-ids.el: New file (From: Jean-Daniel.Fekete)
64         * psgml-edit.el: ID/IDREF patch (From: Jean-Daniel.Fekete)
65         * psgml-maint.el: ID/IDREF patch (From: Jean-Daniel.Fekete)
66         * psgml-parse.el: ID/IDREF patch (From: Jean-Daniel.Fekete)
67
68 2003-06-09  Lennart Staflin  <lenst@lysator.liu.se>
69
70         * psgml-parse.el (sgml-modify-dtd): added some error checking for
71         the has-seen-elements.
72
73 2003-03-28  Lennart Staflin  <lenst@lysator.liu.se>
74
75         * psgml-parse.el (sgml-do-processing-instruction): new handling
76         of <?PSGML> processing instruction.
77         (sgml--pi-psgml-handler): new func
78         (sgml--pi-element-handler): new func. handles <?PSGML ELEMENT ..>
79         (sgml-psgml-pi-enable-outside-dtd): new variable. controls when
80         <?PSGML> is evaluated.
81
82 2003-03-27  Lennart Staflin  <lenst@lysator.liu.se>
83
84         * psgml-parse.el: fix wrong file name in error trace
85
86 2003-03-25  Lennart Staflin  <lenst@lysator.liu.se>
87
88         * psgml-dtd.el (sgml-parse-parameter-literal):
89         Modified to use unibyte-char-to-multibyte if
90         enable-multibyte-characters. I hope this is correct.
91
92 2003-03-25  Lennart Staflin  <lenst@lysator.liu.se>
93
94         * psgml-dtd.el (sgml-parse-parameter-literal):
95         Modified to use unibyte-char-to-multibyte if
96         enable-multibyte-characters. I hope this is correct.
97
98 2003-02-12  Lennart Staflin  <lenst@lysator.liu.se>
99
100         * psgml-parse.el (sgml-setup-doctype): add Predefined Entities
101         for XML.
102
103 2003-01-24  Lennart Staflin  <lenst@lysator.liu.se>
104
105         * psgml-parse.el (sgml-do-move): undo wrong optimization, fix
106         problem with non working exclusions.
107
108 2002-12-13  Lennart Staflin  <lenst@lysator.liu.se>
109
110         * Version 1.3.1 released
111
112 2002-09-19  Lennart Staflin  <lenst@lysator.liu.se>
113
114         * psgml-parse.el (sgml-parse-prolog): Check if sgml-dtd-info is
115         nil before trying to use it.
116
117 2002-08-13  Lennart Staflin  <lenst@lysator.liu.se>
118
119         * psgml-edit.el (sgml-edit-attrib-abort): new command
120         (sgml-edit-attrib-mode-map): abort on key C-c C-k
121         (sgml-attribute-buffer): include abort key in header line and use
122         substitute-command-keys.
123         (sgml-edit-attributes): move setting mode to
124         sgml-attribute-buffer.
125
126         * psgml-parse.el (sgml-open-element): add optional net-enabled
127         parameter.
128         (sgml-do-start-tag): use new parameter on sgml-open-element.
129         Fixes bug with NET (tc17).
130
131         * psgml-edit.el (sgml-edit-attrib-field-start,
132         sgml-edit-attrib-clear, sgml-attribute-buffer,
133         sgml-edit-attrib-specification-list): change sgml-category to
134         category. Fix bug with edit attributes.
135         (sgml-change-element-name): insert TAGC before finding new element
136         object. Fix bug with change element name not copying attributes.
137
138 2002-05-08  Lennart Staflin  <lenst@lysator.liu.se>
139
140         * Version 1.3.0 released
141
142         * psgml.el (sgml-default-nonsticky): moved from psgml-other.el
143
144 2002-05-07  Lennart Staflin  <lenst@lysator.liu.se>
145
146         * psgml-maint.el (psgml-common-files): add psgml-sysdep
147         (psgml-find-source-dir): fix version
148
149 2002-04-26  Lennart Staflin  <lenst@lysator.liu.se>
150
151         * psgml.el (sgml-mode): make adding to
152         text-property-default-nonsticky conditional on
153         sgml-default-nonsticky to work with Emacs < 21.
154
155 2002-04-25  Lennart Staflin  <lenst@lysator.liu.se>
156
157         fixing merge of Dave Love's patch.
158
159 2002-02-08  Dave Love  <fx@gnu.org>
160         [Merging from 1.2.4 branch /lenst]
161
162         Changes for various things: Useful DTD-less XML editing; avoiding
163         CL at runtime; some Emacs portability; Mule-related fixes,
164         particularly for non-ASCII names in DTD.
165
166         * psgml-maint.el (psgml-find-source-dir): Fix version number.
167
168         * psgml-info.el (sgml-set-difference, sgml-union): New functions.
169         (sgml-eltype-refrenced-elements): Use them and also use
170         add-to-list instead of pushnew.
171
172         * psgml-dtd.el: Doc and message fixes.
173         (sgml-write-dtd): Use sgml-set-buffer-multibyte and bind
174         coding-system-for-write around write-region.
175         (sgml-merge-attlists): Use copy-sequence, not copy-list.
176
177         * psgml-edit.el: Require cl when compiling.  Don't set
178         byte-compile-warnings.
179         (sgml-quote-attribute-value, sgml-tag-regexp)
180         (sgml-edit-attrib-next): Use documented way of including `-' in
181         regexp range.
182         (sgml-change-start-tag, sgml-insert-attribute)
183         (sgml-make-attrib-menu, sgml-menu-ask): Fix to work without a DTD.
184         (sgml-edit-attrib-next, sgml-tag-regexp): Maybe allow non-ASCII.
185         (sgml--all-possible-elements): Kludge for DTD-less case.
186         (sgml-make-character-reference): Take care over multibyteness.
187         Maybe deal with unicodes.
188         (sgml-edit-attrib-specification-list, sgml-edit-attrib-default)
189         (sgml-edit-attrib-default, sgml-edit-attrib-clear)
190         (sgml-edit-attrib-field-start, sgml-attribute-buffer): Use
191         property name `sgml-category', not `category', which is special in
192         Emacs. [backed out //lenst]
193         (sgml-operate-on-tags): Use sgml-restore-buffer-modified-p.
194
195         * psgml-lucid.el (sgml-insert): Use property name `sgml-category',
196         not `category'. [backed out //lenst]
197
198         * psgml.el: Require cl only when compiling.  Doc fixes.
199         (sgml-mode): Set text-property-default-nonsticky.  In Emacs, use
200         which-fun-mode hook instead of trying to modify mode-line-format.
201         <paragraph-separate>: Maybe allow non-ASCII.
202         (sgml-mode-map): Define unconditionally. [backed out //lenst]
203         (sgml-running-lucid): Defconst, not defvar.
204         (sgml-have-re-char-clases): New constant.
205         (sgml-markup-faces): Default to font-lock faces if available.
206         (sgml-start-tag-regex, sgml-close-angle): Allow non-ASCII if
207         possible.
208         (sgml-angle-distance, sgml-slash-distance): Defvar, not defconst,
209         since it's a user variable.
210         (sgml-restore-buffer-modified-p): New alias.
211         (sgml-parse-colon-path): Use parse-colon-path, if available.
212         [backed out, parse-colon-path is for directories //lenst]
213         (sgml-command-post, sgml-mode): Assume make-local-hook exists.
214
215         * psgml-parse.el: Doc and message fixes.
216         (sgml-dtd-less): New buffer-local variable.
217         (sgml-eltype-name, sgml-eltype-defined, sgml-eltype-token)
218         (sgml-token-eltype, sgml-eltype-mixed, sgml-check-name)
219         (sgml-element-etag-optional, sgml-element-mixed, sgml-parse-name):
220         Avoid unnecessary compiler macros.
221         (sgml-read-element-type, sgml-read-element-name): DTRT for non-nil
222         sgml-dtd-less.
223         (sgml-push-to-entity): Obey sgml-warn-about-undefined-entities.
224         Don't make the buffer unibyte here.  Ensure an old one is
225         multibyte.
226         (sgml-parse-prolog): Set sgml-dtd-less.
227         (sgml-attdecl-default-value): Avoid caddr.
228         (sgml-entity-marked-undefined-p): Avoid cddddr.  Avoid (CL
229         runtime) setter for nthcdr.
230         (sgml-load-dtd): Avoid mapcan.
231         (sgml-bdtd-load): Set buffer unibyte.
232         (sgml-bdtd-merge): Don't set buffer unibyte here.
233         (sgml-set-active-dtd-indicator): Set which-func-mode.
234         (sgml-merge-eltypes): Use copy-sequence, not copy-list.
235         (sgml-open-element-hook, sgml-close-element-hook)
236         (sgml-map-eltypes): Remove redundant level of lambda.
237         (sgml-entity-case, sgml-general-case): Moved before
238         sgml-entity-case use.
239         (sgml-update-display): Call force-mode-line-update.
240         (sgml-parse-attribute-specification-list): Use sgml-dtd-less.
241
242         * psgml-other.el (sgml-insert): Use plist-get rather than CL
243         runtime's getf.
244         (sgml-use-text-properties): Default to t.
245         (sgml-with-modification-state): New macro.
246         (sgml-default-nonsticky): New constant.
247         (sgml-set-face-for): Use sgml-with-modification-state,
248         sgml-default-nonsticky.
249         (sgml-clear-faces): Avoid CL runtime.
250         (next-overlay-at): Remove as consequence of above.
251
252         * psgml-fs.el: Require cl and ps-print when compiling.
253         (fs-do-style, fs-do-style, fs-do-style): Use plist-get rather than
254         CL runtime's getf.
255         (fs-element-with-id): Use compare-strings, not equalp.
256
257         * psgml-dtd.el, psgml-charent.el, psgml-api.el, psgml-info.el:
258         Require cl when compiling.
259
260         * psgml-debug.el: Require cl, elp and edebug when compiling.
261
262
263 2002-04-19  Lennart Staflin  <lenst@lysator.liu.se>
264
265         * Version 1.2.5 released
266
267 2002-03-17  Lennart Staflin  <lenst@lysator.liu.se>
268
269         * psgml-api.el (sgml-map-content): don't try to map empty
270         elements, no point and the code doesn't work for that case.
271
272 2002-02-13  Lennart Staflin  <lenst@lysator.liu.se>
273
274         * psgml.el (sgml-auto-insert-required-elements): doc fix.
275         (sgml-balanced-tag-edit): doc fix.
276
277         * psgml-edit.el (sgml-edit-attrib-default): don't make text read-only
278         (sgml-insert-tag): doc fix.
279
280 2002-02-09  Lennart Staflin  <lenst@lysator.liu.se>
281
282         * psgml.el: Explicitly setup prefix keys
283         (sgml-prefix-f-map): new var
284         (sgml-prefix-u-map): new var
285
286 2002-02-08  Lennart Staflin  <lenst@lysator.liu.se>
287
288         * psgml-parse.el (sgml-set-buffer-multibyte): support setting to
289         default
290         (sgml-compile-dtd): removed sgml-set-buffer-multibyte, this is
291         done by sgml-write-dtd
292         (sgml-push-to-entity): reset buffer to default multibyte support
293
294         * psgml-dtd.el (sgml-write-dtd): fixes for multibyte handling
295
296 2001-12-20  Lennart Staflin  <lenst@lysator.liu.se>
297
298         * psgml.el (sgml-xml-validate-command): new option. Default for
299         sgml-validate-command in XML mode.
300         (xml-mode): use sgml-xml-validate-command.
301         (xml-mode): remove conditional. Always set sgml-declaration to
302         sgml-xml-declaration.
303
304 2001-12-18  Lennart Staflin  <lenst@lysator.liu.se>
305
306         * psgml-edit.el (sgml-attribute-buffer): Don't write-protect the
307         "#DEFAULT" marker.
308         (sgml-extract-attribute-value): strip any remains of "#DEFAULT".
309         (sgml-edit-attrib-next): if point is before the attribute value,
310         move to beginning of line to avoid skipping this attribute.
311
312 2001-12-16  Lennart Staflin  <lenst@lysator.liu.se>
313
314         * Version 1.2.4 released
315
316 2001-12-16  Lennart Staflin  <lenst@lysator.liu.se>
317
318         * psgml-info.el (sgml-eltype-refrenced-elements): use built-in
319         function copy-sequence
320
321 2001-12-14  Lennart Staflin  <lenst@lysator.liu.se>
322
323         * psgml-parse.el (sgml-set-buffer-multibyte): Mule/multibyte patch
324         from Yasushi Abe.
325         (sgml-compile-dtd): dito.
326         (sgml-bdtd-merge): dito.
327         (sgml-push-to-entity): dito.
328         (sgml-do-entity-ref): fix sgml-warn-about-undefined-entities behviour.
329
330 2001-12-06  Lennart Staflin  <lenst@lysator.liu.se>
331
332         * psgml-parse.el (sgml-update-display): take max-pos of top-tree
333         not current-tree as that is not always defined at that point.
334
335 2001-11-09  Lennart Staflin  <lenst@lysator.liu.se>
336
337         * Version 1.2.3 released
338
339         * psgml.el (sgml-running-lucid): make sure it gets defined during
340         compilation.
341
342 2001-11-04  Lennart Staflin  <lenst@lysator.liu.se>
343
344         * psgml-other.el, psgml-parse.el, psgml-debug.el, psgml-edit.el:
345         Fix the obsolete variable `before-change-function' and
346         `after-change-function', which are no longer used by Emacs.
347
348 2001-02-10  Adrian Aichner  <adrian@xemacs.org>
349
350         * psgml-dtd.el: Fix typos.
351         * psgml-edit.el: Ditto.
352         * psgml-fs.el: Ditto.
353         * psgml-info.el: Ditto.
354         * psgml-parse.el: Ditto.
355         * psgml.el: Ditto.
356
357 Wed Feb 28 00:02:45 2001  Lennart Staflin  <lenst@lysator.liu.se>
358
359         * psgml-fs.el (fs-split-tokens): new helper function for use in
360         style sheets.
361
362 2001-02-28  Lennart Staflin  <lennarts@infostream.no>
363
364         * psgml-other.el (sgml-split-long-menus): new
365         (sgml-popup-menu): use above
366         (sgml-popup-multi-menu): use above
367
368 Wed Feb 21 23:30:07 2001  Lennart Staflin  <lenst@lysator.liu.se>
369
370         * psgml-parse.el (sgml-parse-to): remove debug code
371
372 2001-02-20  Lennart Staflin  <lennarts@infostream.no>
373
374         * psgml-dtd.el (sgml-check-content): check case of declared
375         content name.
376         (sgml-parse-exception): fix misspelled function name
377         (sgml-declare-entity): Fix wrong case on symbols
378         (sgml-parse-entity-type): for consistency, don't downcase entity
379         type name
380         (sgml-parse-entity-type): Remove case check and intern for
381         notation name. Notation name will be stored as a string.
382
383         * psgml-parse.el (sgml-push-to-entity): remove debugging code
384         (sgml-set-initial-state): Change to use change hooks
385
386 Fri Feb  9 01:06:27 2001  Lennart Staflin  <lenst@lysator.liu.se>
387
388         * Version 1.2.2 released
389
390         * psgml.el (sgml-mode-map): Bind (meta control h) instead of ESC
391         C-h, avoids redefining M-BS
392
393 Thu Feb  8 20:08:47 2001  Lennart Staflin  <lenst@lysator.liu.se>
394
395         * psgml-info.el: Add provide psgml-info
396
397 Sun Oct 22 17:29:53 2000  Marc-Antoine Parent
398
399         * patch from Marc-Antoine Parent
400
401         * psgml-edit.el (sgml-read-attribute-value): include the element name, thus:
402         Value for {attribute name} in {element name} ({type} {Default}):
403
404
405 2000-10-11  Lennart Staflin  <lennarts@infotek.no>
406
407         * psgml-edit.el (sgml-indent-line): new strategy for identifying
408         elements
409
410 2000-09-06  Lennart Staflin  <lennarts@infotek.no>
411
412         * psgml-api.el (sgml-map-content): Use sgml-with-parser-syntax-ro
413
414         * psgml-parse.el (sgml-find-start-point): renamed to
415         sgml-goto-start-point, to indicate that this actually changes the
416         point and buffer. And should always be called inside
417         sgml-with-parser-syntax.
418         (sgml-with-parser-syntax-ro): As sgml-with-parser-syntax also
419         handle restoring buffer modification state.
420         (sgml-last-buffer): New state variable
421         (sgml-with-parser-syntax): set sgml-last-buffer
422         (sgml-mainbuf-point): new function
423         (sgml-max-pos-in-tree): new function
424         (sgml-update-display): don't call sgml-find-start-point, use
425         sgml-max-pos-in-tree to figure out if there is much to parse.
426         (sgml-parse-to): calls sgml-parser-loop directly no
427         sgml-parse-continue.
428         (sgml-parse-continue): use sgml-with-parser-syntax-ro and
429         set-buffer to sgml-last-buffer.
430
431 2000-08-24  Lennart Staflin  <lennarts@infotek.no>
432
433         * psgml.el (sgml-insert-defaulted-attributes): new option
434         * psgml-edit.el (sgml-insert-attributes): check new option
435
436         * psgml-fs.el (style-format): set ps-left-header to include a
437         style-sheet specified title and the filename. (for ps-print-buffer)
438         (fs-special-styles): New special style 'title' for setting title.
439         (fs-do-style): handle title style
440         (fs-element-content): make element argument optional, defaults to
441         current element.
442
443 2000-08-08  Lennart Staflin  <lennarts@infotek.no>
444
445         * psgml-edit.el (sgml-insert-element): Fix bug with empty element.
446
447 Thu Aug  3 07:52:46 2000  Lennart Staflin  <lenst@lysator.liu.se>
448
449         * psgml-edit.el (sgml-insert-element): Fix bug when inserting
450         element at end of buffer.
451
452 2000-08-03  Lennart Staflin  <lennarts@infotek.no>
453
454         * psgml-edit.el (sgml-attribute-buffer): Fix missing space for
455         unspecified required attributes.
456
457 2000-06-05  Lennart Staflin  <lennarts@infotek.no>
458
459         * psgml-dtd.el (sgml-parse-parameter-literal): use
460         buffer-substring-no-properties .
461
462 2000-05-31  Lennart Staflin  <lennarts@infotek.no>
463
464         * psgml-api.el (sgml-parse-data): Don't call sgml-parse-loop
465         directly, use sgml-parse-continue.
466
467 Sat May 27 00:04:31 2000  Lennart Staflin  <lenst@lysator.liu.se>
468
469         * psgml-edit.el (sgml-attr-clean-and-insert): new command. Used to
470         automatically remove #DEFAULT when a character is typed.
471         (sgml-attr-default-keymap): keymap used as only for #DEFAULT in
472         attribute editing.
473
474 Mon Apr 24 09:55:14 2000  Lennart Staflin  <lenst@lysator.liu.se>
475
476         * psgml-edit.el (sgml-complete): Transform case on inserted names
477         using sgml-general-insert-case or sgml-entity-insert-case.
478
479 Sun Apr 16 16:07:55 2000  Lennart Staflin  <lenst@lysator.liu.se>
480
481         * psgml-edit.el (sgml-indent-line): compute indentation from
482         context, not element under point. Did this change once before but
483         had to back it out. This time take care of omitted end-tags by
484         choosing parent element as context, if point is at the very end of
485         the element. Don't do special attribute indenting for elements
486         that occur in data context.
487         (sgml-fill-region): Fix giving up to early.
488         (sgml-do-fill): indent tags of subelements in element context
489
490         * psgml-info.el (sgml-describe-element-type): Use sgml-princ-names
491         for occurs in section.
492
493 2000-03-22  Lennart Staflin  <lennarts@infotek.no>
494
495         * psgml-edit.el (sgml-change-element-name): Add end-tag event if
496         original element is empty. (hmm this isn't quite right). Also use
497         sgml-find-context-of to find element, because -element-of gives
498         the element of the following char.
499
500 Tue Jan  4 19:51:03 2000  Lennart Staflin  <lenst@lysator.liu.se>
501
502         * psgml-parse.el (sgml-with-parser-syntax): Restore current buffer
503         before restoring syntax table.
504
505 Tue Dec 21 20:50:31 1999  Lennart Staflin  <lenst@lysator.liu.se>
506
507         * psgml-other.el (sgml-set-face-for): set rear-nonsticky for face
508         when sgml-use-text-properties is true. (Suggested by Dirk Frömbgen)
509
510 Sat Dec 18 18:55:02 1999  Lennart Staflin  <lenst@lysator.liu.se>
511
512         * psgml-charent.el (sgml-charent-to-display-char): use
513         buffer-substring-no-properties to allow for using text properties
514         for fontification.
515
516 1999-11-02  Tim Bradshaw  <tfb@tfeb.org>
517
518         * psgml-edit.el (sgml-doctype-insert): made it not loop when it
519         gets a bogus nil
520
521 1999-12-16  Lennart Staflin  <lennarts@infotek.no>
522
523         * psgml-parse.el (sgml-parse-prolog): restore buffer modified
524         after parsing. To allow using text properties for fontification.
525         (sgml-parse-continue): dito.
526         (sgml-parse-to): call sgml-parse-continue instead of calling
527         sgml-parser-loop directly.
528
529 1999-12-15  Lennart Staflin  <lennarts@infotek.no>
530
531         * psgml.el: autoload for sgml-do-set-option
532
533 1999-12-03  Lennart Staflin  <lennarts@infotek.no>
534
535         * psgml.el (sgml-mode-syntax-table): new variable
536         (sgml-mode): use sgml-mode-syntax-table
537
538 1999-11-29  Lennart Staflin  <lenst@lysator.liu.se>
539
540         * psgml.el (sgml-validate-error-regexps): Also recognize warnings
541         (:W:) in output from nsgmls.
542
543 1999-11-11  Lennart Staflin  <lennarts@infotek.no>
544
545         * psgml-parse.el (sgml-parse-to): Let sgml-with-parser-syntax wrap
546         a bigger chunk of the code to make sure the syntax table is set up
547         before any buffer changes.
548
549 Tue Nov  9 16:25:53 1999  Lennart Staflin  <lenst@lysator.liu.se>
550
551         * psgml-parse.el (sgml-modify-dtd): use sgml-general-case on names
552         from modifier.
553
554 Mon Nov  8 22:13:12 1999  Lennart Staflin  <lenst@lysator.liu.se>
555
556         * psgml-info.el (sgml-eltype-refrenced-elements): Copy sequence
557         before sorting destructively.
558         (sgml-describe-element-type): Include exceptions in info display.
559
560 Thu Nov  4 19:07:09 1999  Lennart Staflin  <lenst@lysator.liu.se>
561
562         * psgml-parse.el (sgml-note-change-at): If in XML mode and
563         previous char is /, back up one char. This allows for the />
564         delimiter to be recognized even if the start tag has been
565         previously parsed as an improperly ended tag.
566
567         * psgml-edit.el (sgml-last-element): don't use sgml-last-element
568         for XML (there is not omitted tags to account for).
569
570 1999-10-21  Lennart Staflin  <lennarts@infotek.no>
571
572         * psgml-parse.el (sgml-push-to-entity): restore the (erase-buffer)
573         that had been commented out. This is needed for the case when
574         sgml-try-merge-compiled-dtd fails and leaves junk in the buffer.
575
576 1999-10-19  Lennart Staflin  <lennarts@infotek.no>
577
578         * Version 1.2.1 released
579
580 1999-10-14  Lennart Staflin  <lennarts@infotek.no>
581
582         * psgml-parse.el (sgml-log-entity-stack): don't use
583         sgml-pop-entity, just loop thru the entity stack and print out the
584         files.
585         (sgml-load-ecat): bind sgml-xml-p while parsing catalog
586
587 1999-10-13  Lennart Staflin  <lennarts@infotek.no>
588
589         * psgml-parse.el (sgml-current-file): New variable, holds the name
590         of file name (if any) of the entity beeing parsed in the buffer.
591         (sgml-parse-warning): New func. Log a parser warning, a warning
592         including information about where the error occured. Mostly for
593         DTD parsing.
594         (sgml-log-entity-stack): new factored function.
595         (*) Replaces some sgml-parse-error and sgml-log-warning with
596         sgml-parse-warning.
597         (sgml-parse-catalog-buffer): bind sgml-xml-p while parsing catalog
598
599 Sun Oct 10 15:53:12 1999  Lennart Staflin  <lenst@lysator.liu.se>
600
601         * Version 1.2 released
602
603 Wed Oct  6 00:43:37 1999  Lennart Staflin  <lenst@lysator.liu.se>
604
605         * Version 1.1.7 released
606
607         * psgml-parse.el (sgml-push-to-entity): carry XML-ness to parsed
608         text entities.
609
610         * psgml-charent.el (sgml-display-char-list-filename): new default
611         is "iso8859.map" in the same directory where psgml is installed.
612
613 Wed Sep 22 19:34:08 1999  Lennart Staflin  <lenst@lysator.liu.se>
614
615         * psgml-edit.el: Apply sgml-general-case to attribute name for
616         interactive sgml-insert-attribute. Don't test for non empty asl in
617         sgml-edit-attrib. A lot of changes in handling text attributes
618         when in attribute edit mode.
619
620 Sat Aug 14 22:34:59 1999  Lennart Staflin  <lenst@lysator.liu.se>
621
622         * psgml-edit.el (sgml-tag-regexp): Recognize XMLs empty tags.
623
624 1998-11-16  Lennart Staflin  <lenst@lysator.liu.se>
625
626         * psgml.el (sgml-set-local-variable): insert "mode: xml" for
627         xml-mode and "mode: sgml" otherwise
628
629         * psgml-edit.el (sgml-add-element-to-element): add end-tag to
630         empty xml-elements before inserting an element
631
632 1998-11-15  Lennart Staflin  <lenst@lysator.liu.se>
633
634         * Version 1.1.6 released
635
636         * psgml-parse.el (sgml-char-int): from XEmacs
637         (sgml-read-octet): modified for XEmacs
638         (sgml-read-peek): dito.
639         (sgml-read-number): dito.
640
641         * psgml.el (sgml-option-value-indicator): moved here.
642         (sgml-mode): activate-menubar-hook can't be local in XEmacs and
643         sgml-build-custom-menus need to be after the easy-menu-adds.
644
645 1998-11-14  Lennart Staflin  <lenst@lysator.liu.se>
646
647         * psgml.el, psgml-edit.el: Fix from David Megginson to some
648         regexps for _: in names.
649         (sgml-build-custom-menus): Do not call easy-menu-change with empty
650         menu.
651
652         * psgml-edit.el (sgml-do-set-option): Don't modify the *Help*
653         buffer directly, call sgml-append-to-help-buffer. Fixes problem
654         with read-only buffer.
655         (sgml-append-to-help-buffer): new func.
656
657         * psgml.el (sgml-main-menu):  Options handling changed after
658         suggestion and code from Matthias Clasen
659         (sgml-update-all-options-menus): new func. called by
660         activate-menubar-hook
661
662 Thu Nov  5 20:59:08 1998  Lennart Staflin  <lenst@lysator.liu.se>
663
664         * psgml-parse.el (sgml-parse-processing-instruction): removed let
665         of sgml-markup-start. Was probably wrong solution to problem with
666         sgml-markup-start beeing nil. Added in-declaration parameter. If
667         in a declaration, no fontification should be done.
668         (sgml-parse-prolog): do not call sgml-skip-ds, rather call
669         parse-s, parse-pi as this is what "other prolog" contains.
670
671 1998-10-31  Lennart Staflin  <lenst@lysator.liu.se>
672
673         * Version 1.1.5 released
674
675         * psgml-parse.el (sgml-declared-value-notation): change 'notation
676         to 'NOTATION
677
678 Sat Oct 31 20:00:22 1998  Lennart Staflin  <lenst@lysator.liu.se>
679
680         * psgml-parse.el (sgml-cache-catalog): Use file-truename for
681         file-attributes, to get modification time from real file and not
682         from symlink.
683
684         * psgml.el (xml-mode): Do not build a syntax table
685         (sgml-dtd-menu): moved Custom DTD's to submenu
686         (sgml-markup-menu): moved Custom Markup to submenu
687         (sgml-build-custom-menus): Make submenus for Custom DTD and Markup
688
689         * psgml-parse.el (xml-parser-syntax): build special syntax table
690         for XML.
691         (sgml-with-parser-syntax): Use sgml-parser-syntax or
692         xml-parser-syntax depending on sgml-xml-p
693
694 Wed Oct 28 23:15:38 1998  Lennart Staflin  <lenst@lysator.liu.se>
695
696         * psgml-parse.el (sgml-read-element-type): use
697         let (completion-ignore-case sgml-namecase-general)
698
699 Sat Oct 24 13:13:48 1998  Lennart Staflin  <lenst@lysator.liu.se>
700
701         * psgml.el (sgml-build-custom-menus): Construct sub-menus for
702         custom DTD and custom Markup insert, only if
703         easy-menu-filter-return is not defined otherwise use the :filter
704         facility to build menu when needed.
705
706         * psgml-edit.el (sgml-what-element): Guard call to
707         sgml-deref-shortmap
708
709 1998-10-20  Lennart Staflin  <lenst@lysator.liu.se>
710
711         * psgml-edit.el (sgml-edit-external-entity): fix from Matthias Clasen
712
713         * psgml.el (sgml-validate-error-regexps): modify regexp to work in
714         Emacs 20.3
715
716 1998-09-30  Lennart Staflin  <lenst@lysator.liu.se>
717
718         * Version 1.1.4 release
719
720 Mon Aug 31 21:53:45 1998  Lennart Staflin  <lenst@lysator.liu.se>
721
722         * psgml-parse.el (sgml-bdtd-load): Increase version number
723         (sgml-read-dtd): Increase version number
724
725         * psgml-dtd.el (sgml-write-dtd): Increase version number
726
727 Sat Aug 15 18:58:25 1998  Lennart Staflin  <lenst@lysator.liu.se>
728
729         * psgml-edit.el (sgml-complete): add completion of #-reserved words
730
731 Fri Jul  3 18:14:21 1998  Lennart Staflin  <lenst@lysator.liu.se>
732
733         * Version 1.1.3
734
735         * Makefile.in: Call install with only one source file.
736
737 Fri Jul  3 17:54:06 1998  Lennart Staflin  <lenst@lysator.liu.se>
738
739         * psgml-edit.el (sgml-complete): ignore case
740
741         * psgml-parse.el (sgml-push-to-entity): use setf to set
742         sgml-entity-marked-undefined-p.
743         (setf sgml-entity-marked-undefined-p): define setf method
744
745 Tue Jun 30 22:06:20 1998  Lennart Staflin  <lenst@lysator.liu.se>
746
747         * psgml-edit.el (sgml-do-set-option): Added file-list and
748         file-or-nil types contributed by Matthias Clasen
749         <mclasen@sun2.mathematik.uni-freiburg.de>
750
751 Tue Jun 30 21:48:39 1998  Lennart Staflin  <lenst@lysator.liu.se>
752
753         * psgml.el (sgml-mode-map): C-c C-i calls sgml-add-element-to-element
754
755         * psgml-edit.el (sgml-add-element-to-element): New command.
756
757 Wed Jun 24 23:23:38 1998  Lennart Staflin  <lenst@lysator.liu.se>
758
759         * psgml-edit.el (sgml-attribute-buffer): Fixed another victim of
760         the case change.
761         (sgml-change-element-name): fix bug with empty XML element
762
763 Mon Jun 22 19:58:43 1998  Lennart Staflin  <lenst@lysator.liu.se>
764
765         * psgml.el (psgml-version): Version 1.1.2
766
767         * Installed patch from Matthias Clasen
768         <clasen@pong.mathematik.uni-freiburg.de>.
769         Adding notation to entities and a sgml-notation-handlers variable
770         used by sgml-edit-external-entity.
771
772         * psgml-edit.el (sgml-indent-line): Previous change of
773         sgml-indent-line did not work well with OMITTAG. Restore old
774         functionallity.
775
776 Fri Jun 19 18:54:27 1998  Lennart Staflin  <lenst@lysator.liu.se>
777
778         * psgml-edit.el (sgml-attribute-buffer):
779         changed case of default value type, here and in many other functions.
780         (sgml-translate-attribute-specification-list): changed case for
781         declared value
782
783         * psgml-parse.el (sgml-parse-attribute-specification-list):
784         changed case of default value type
785
786 1998-06-16  Dave Love  <d.love@dl.ac.uk>
787
788         * psgml-edit.el (sgml-read-element-name,
789         sgml-read-attribute-value, sgml-insert-attribute,
790         sgml-custom-markup): Use sgml-namecase-general to set
791         completion-ignore-case.
792
793 1998-06-16  Dave Love  <d.love@dl.ac.uk>
794
795         * psgml-parse.el (sgml-push-to-entity): Don't use save-excursion
796         around insert-file-contents -- may break in Emacs 20.3.
797
798 Fri Jun 19 10:40:53 1998  Lennart Staflin  <lenst@lysator.liu.se>
799
800         * psgml-dtd.el (sgml-check-declared-value): upcase NOTATION
801
802         * psgml-parse.el (sgml-read-element-name): bind
803         completion-ignore-case as suggested by Mark Eichin. Also present
804         element names in the insert case.
805
806 Tue Jun 16 00:31:03 1998  Lennart Staflin  <lenst@lysator.liu.se>
807
808         * psgml.el (sgml-command-post): added ignore-errors
809
810         * psgml-parse.el (sgml-get-delim-string): new func.
811         (sgml-delim): changed to macro.
812         (sgml-do-usemap): upcase #EMPTY
813         (sgml-parse-xml-comment): set markup type
814
815         * psgml-dtd.el (sgml-validate-default-value-rn): upcase keywords
816         (sgml-declare-entity): remove case fiddling
817
818         * psgml-parse.el (sgml-check-case): remove case fiddling -- retain
819         check.
820
821         * psgml-dtd.el (sgml-validate-declared-value): upcase attribute types
822         (sgml-check-default-value): remove case fiddling -- reserved names
823         should be in upper case.
824
825         * psgml-parse.el (sgml-push-to-entity): use syntax table from
826         current buffer in entity buffer and not the sgml-parser-syntax as
827         XML will use another syntax table.
828
829 Wed Jun 10 23:28:42 1998  Lennart Staflin  <lenst@lysator.liu.se>
830
831         * psgml-parse.el (sgml-catalog-lookup): Take additional catalogs
832         in right order.
833
834 Thu May 14 20:02:42 1998  Lennart Staflin  <lenst@lysator.liu.se>
835
836         * Version 1.1.1
837
838         * psgml.el (psgml-version): new version 1.1.1
839
840         * psgml-dtd.el (sgml-parse-character-reference): upcase funchar
841         names.
842
843         * psgml-edit.el (sgml-indent-line): compute indentation from
844         context, not element under point. Removed special handling of
845         start-tag and document context. Extra indentation if in markup.
846
847         * psgml-parse.el (sgml-parse-external): use upper case keywords.
848         (sgml-check-case): use upper case instead of lower case.
849
850 Wed May 13 06:13:05 1998  Lennart Staflin  <lenst@lysator.liu.se>
851
852         * psgml-parse.el (sgml-do-marked-section): Change keyword strings
853         to upper case.
854         (sgml-general-case): Use Upcase instead of Downcase.
855         (sgml-parse-markup-declaration): upcase keywords.
856
857 Sat Mar 14 21:31:09 1998  Lennart Staflin  <lenst@lysator.liu.se>
858
859         * psgml-parse.el (sgml-do-processing-instruction): Added
860         recognition of PSGML NOFILL.
861         (sgml-parse-catalog-buffer): add catalog as a noname entry
862         (sgml-catalog-lookup): handle catalog entries
863
864 Thu Mar 12 00:04:52 1998  Lennart Staflin  <lenst@lysator.liu.se>
865
866         * psgml-parse.el (sgml-current-element-name): make buffer local
867
868 Wed Mar 11 22:11:01 1998  Lennart Staflin  <lenst@lysator.liu.se>
869
870         * psgml-edit.el (sgml-insert-start-tag): extended meaning of NET
871         paramenter to insert XML-TAGCE if XML.
872         (sgml-change-start-tag): keep XML-TAGCE
873
874         * psgml-parse.el (sgml-read-element-name): use completing read on
875         all defined element types if in an ANY context.
876         (sgml-check-tag-close): removed check for XML-TAGCE
877         (sgml-do-start-tag): added check for XML-TAGCE
878         (sgml-element-empty): In XML no special handling of elements with
879         declared content of EMPTY, but use conref to signal empty element tag.
880
881         * psgml-dtd.el (sgml-merge-attlists): reverse the list
882
883 Tue Mar 10 20:13:11 1998  Lennart Staflin  <lenst@lysator.liu.se>
884
885         * psgml.el: Merged David Megginson's latest xml modifications.
886
887 Sat Nov 15 20:50:35 1997  Lennart Staflin  <lenst@lysator.liu.se>
888
889         * psgml-parse.el (sgml-parse-attribute-value-specification): New func.
890         (sgml-parse-attribute-specification-list): use new func. This
891         changes an error to a warning to make better error recovery when
892         illegal characters occurs in starttag.
893
894 Sun Aug 17 20:22:28 1997  Lennart Staflin  <lenst@lysator.liu.se>
895
896         * psgml-parse.el (sgml-cache-catalog): remove file-truename. This
897         made relative filenames refer to the wrong directory if the
898         catalog file was a symlink.
899
900 Thu Jul 24 22:36:15 1997  Lennart Staflin  <lenst@lysator.liu.se>
901
902         * psgml-parse.el (sgml-modify-dtd): fixed bug in handling
903         sgml-parent-document.
904
905 Mon May 19 18:43:32 1997  Lennart Staflin  <lenst@lysator.liu.se>
906
907         * psgml-edit.el (sgml-expand-entity-reference): changed to allow
908         point to be within entity referens, not only at start of ref. As
909         suggested by Matthias Clasen.
910         (sgml-edit-external-entity): new command contributed by Matthias
911         Clasen <clasen@netzservice.de>
912
913         * psgml-charent.el (sgml-charent-to-display-char): fix bug in regexp.
914
915 Sat Mar 15 19:20:57 1997  Lennart Staflin  <lenst@lysator.liu.se>
916
917         * psgml-parse.el (sgml-check-tag-close): change sgml-error to
918         sgml-log-warning
919
920 Sun Jan 12 19:15:32 1997  Lennart Staflin  <lenst@lysator.liu.se>
921
922         * psgml.el (psgml-version): bump version
923
924 Fri Nov 22 20:29:44 1996  Lennart Staflin  <lenst@lysator.liu.se>
925
926         * psgml.el (sgml-parse-colon-path): use path-separator if
927         available.