1 2005-03-02 Lennart Staflin <lenst@lysator.liu.se>
3 * psgml.el (sgml-mode-map): bind C-c C-s to new comman
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
11 2005-02-27 Lennart Staflin <lenst@lysator.liu.se>
13 * psgml.el (sgml-content-indent-function): moved
14 (sgml-attribute-indent-function): moved
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
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
26 * psgml-edit.el (sgml-show-current-element-type): new command
28 * psgml.el (sgml-mode-map): change C-c C-p to sgml-load-doctype
30 * psgml-parse.el (sgml-load-doctype): make interactive, this is a
31 more useful command than sgml-parse-prolog.
33 * psgml-info.el (sgml-describe-dtd): rename sgml-general-dtd-info
34 to sgml-describe-dtd. Keep old name as alias.
36 * psgml-other.el (sgml-set-face-for): added face setting for content
38 * psgml-parse.el (sgml--pi-element-handler): use sgml-parse-s not
41 2005-02-24 Lennart Staflin <lenst@lysator.liu.se>
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
48 2005-02-17 Lennart Staflin <lenst@lysator.liu.se>
50 * psgml-parse.el (sgml-parse-prolog): apply sgml-general-case to
51 sgml-default-doctype-name.
54 2005-02-09 Lennart Staflin <lenst@lysator.liu.se>
56 * psgml.el (sgml-debug): remove sgml-log-message
57 remove log related keybinding/menu entry
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
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)
68 2003-06-09 Lennart Staflin <lenst@lysator.liu.se>
70 * psgml-parse.el (sgml-modify-dtd): added some error checking for
71 the has-seen-elements.
73 2003-03-28 Lennart Staflin <lenst@lysator.liu.se>
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.
82 2003-03-27 Lennart Staflin <lenst@lysator.liu.se>
84 * psgml-parse.el: fix wrong file name in error trace
86 2003-03-25 Lennart Staflin <lenst@lysator.liu.se>
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.
92 2003-03-25 Lennart Staflin <lenst@lysator.liu.se>
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.
98 2003-02-12 Lennart Staflin <lenst@lysator.liu.se>
100 * psgml-parse.el (sgml-setup-doctype): add Predefined Entities
103 2003-01-24 Lennart Staflin <lenst@lysator.liu.se>
105 * psgml-parse.el (sgml-do-move): undo wrong optimization, fix
106 problem with non working exclusions.
108 2002-12-13 Lennart Staflin <lenst@lysator.liu.se>
110 * Version 1.3.1 released
112 2002-09-19 Lennart Staflin <lenst@lysator.liu.se>
114 * psgml-parse.el (sgml-parse-prolog): Check if sgml-dtd-info is
115 nil before trying to use it.
117 2002-08-13 Lennart Staflin <lenst@lysator.liu.se>
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.
126 * psgml-parse.el (sgml-open-element): add optional net-enabled
128 (sgml-do-start-tag): use new parameter on sgml-open-element.
129 Fixes bug with NET (tc17).
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.
138 2002-05-08 Lennart Staflin <lenst@lysator.liu.se>
140 * Version 1.3.0 released
142 * psgml.el (sgml-default-nonsticky): moved from psgml-other.el
144 2002-05-07 Lennart Staflin <lenst@lysator.liu.se>
146 * psgml-maint.el (psgml-common-files): add psgml-sysdep
147 (psgml-find-source-dir): fix version
149 2002-04-26 Lennart Staflin <lenst@lysator.liu.se>
151 * psgml.el (sgml-mode): make adding to
152 text-property-default-nonsticky conditional on
153 sgml-default-nonsticky to work with Emacs < 21.
155 2002-04-25 Lennart Staflin <lenst@lysator.liu.se>
157 fixing merge of Dave Love's patch.
159 2002-02-08 Dave Love <fx@gnu.org>
160 [Merging from 1.2.4 branch /lenst]
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.
166 * psgml-maint.el (psgml-find-source-dir): Fix version number.
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.
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.
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
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.
195 * psgml-lucid.el (sgml-insert): Use property name `sgml-category',
196 not `category'. [backed out //lenst]
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
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.
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
223 (sgml-push-to-entity): Obey sgml-warn-about-undefined-entities.
224 Don't make the buffer unibyte here. Ensure an old one is
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.
242 * psgml-other.el (sgml-insert): Use plist-get rather than CL
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.
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
255 (fs-element-with-id): Use compare-strings, not equalp.
257 * psgml-dtd.el, psgml-charent.el, psgml-api.el, psgml-info.el:
258 Require cl when compiling.
260 * psgml-debug.el: Require cl, elp and edebug when compiling.
263 2002-04-19 Lennart Staflin <lenst@lysator.liu.se>
265 * Version 1.2.5 released
267 2002-03-17 Lennart Staflin <lenst@lysator.liu.se>
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.
272 2002-02-13 Lennart Staflin <lenst@lysator.liu.se>
274 * psgml.el (sgml-auto-insert-required-elements): doc fix.
275 (sgml-balanced-tag-edit): doc fix.
277 * psgml-edit.el (sgml-edit-attrib-default): don't make text read-only
278 (sgml-insert-tag): doc fix.
280 2002-02-09 Lennart Staflin <lenst@lysator.liu.se>
282 * psgml.el: Explicitly setup prefix keys
283 (sgml-prefix-f-map): new var
284 (sgml-prefix-u-map): new var
286 2002-02-08 Lennart Staflin <lenst@lysator.liu.se>
288 * psgml-parse.el (sgml-set-buffer-multibyte): support setting to
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
294 * psgml-dtd.el (sgml-write-dtd): fixes for multibyte handling
296 2001-12-20 Lennart Staflin <lenst@lysator.liu.se>
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.
304 2001-12-18 Lennart Staflin <lenst@lysator.liu.se>
306 * psgml-edit.el (sgml-attribute-buffer): Don't write-protect the
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.
312 2001-12-16 Lennart Staflin <lenst@lysator.liu.se>
314 * Version 1.2.4 released
316 2001-12-16 Lennart Staflin <lenst@lysator.liu.se>
318 * psgml-info.el (sgml-eltype-refrenced-elements): use built-in
319 function copy-sequence
321 2001-12-14 Lennart Staflin <lenst@lysator.liu.se>
323 * psgml-parse.el (sgml-set-buffer-multibyte): Mule/multibyte patch
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.
330 2001-12-06 Lennart Staflin <lenst@lysator.liu.se>
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.
335 2001-11-09 Lennart Staflin <lenst@lysator.liu.se>
337 * Version 1.2.3 released
339 * psgml.el (sgml-running-lucid): make sure it gets defined during
342 2001-11-04 Lennart Staflin <lenst@lysator.liu.se>
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.
348 2001-02-10 Adrian Aichner <adrian@xemacs.org>
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.
357 Wed Feb 28 00:02:45 2001 Lennart Staflin <lenst@lysator.liu.se>
359 * psgml-fs.el (fs-split-tokens): new helper function for use in
362 2001-02-28 Lennart Staflin <lennarts@infostream.no>
364 * psgml-other.el (sgml-split-long-menus): new
365 (sgml-popup-menu): use above
366 (sgml-popup-multi-menu): use above
368 Wed Feb 21 23:30:07 2001 Lennart Staflin <lenst@lysator.liu.se>
370 * psgml-parse.el (sgml-parse-to): remove debug code
372 2001-02-20 Lennart Staflin <lennarts@infostream.no>
374 * psgml-dtd.el (sgml-check-content): check case of declared
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
380 (sgml-parse-entity-type): Remove case check and intern for
381 notation name. Notation name will be stored as a string.
383 * psgml-parse.el (sgml-push-to-entity): remove debugging code
384 (sgml-set-initial-state): Change to use change hooks
386 Fri Feb 9 01:06:27 2001 Lennart Staflin <lenst@lysator.liu.se>
388 * Version 1.2.2 released
390 * psgml.el (sgml-mode-map): Bind (meta control h) instead of ESC
391 C-h, avoids redefining M-BS
393 Thu Feb 8 20:08:47 2001 Lennart Staflin <lenst@lysator.liu.se>
395 * psgml-info.el: Add provide psgml-info
397 Sun Oct 22 17:29:53 2000 Marc-Antoine Parent
399 * patch from Marc-Antoine Parent
401 * psgml-edit.el (sgml-read-attribute-value): include the element name, thus:
402 Value for {attribute name} in {element name} ({type} {Default}):
405 2000-10-11 Lennart Staflin <lennarts@infotek.no>
407 * psgml-edit.el (sgml-indent-line): new strategy for identifying
410 2000-09-06 Lennart Staflin <lennarts@infotek.no>
412 * psgml-api.el (sgml-map-content): Use sgml-with-parser-syntax-ro
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
428 (sgml-parse-continue): use sgml-with-parser-syntax-ro and
429 set-buffer to sgml-last-buffer.
431 2000-08-24 Lennart Staflin <lennarts@infotek.no>
433 * psgml.el (sgml-insert-defaulted-attributes): new option
434 * psgml-edit.el (sgml-insert-attributes): check new option
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
443 2000-08-08 Lennart Staflin <lennarts@infotek.no>
445 * psgml-edit.el (sgml-insert-element): Fix bug with empty element.
447 Thu Aug 3 07:52:46 2000 Lennart Staflin <lenst@lysator.liu.se>
449 * psgml-edit.el (sgml-insert-element): Fix bug when inserting
450 element at end of buffer.
452 2000-08-03 Lennart Staflin <lennarts@infotek.no>
454 * psgml-edit.el (sgml-attribute-buffer): Fix missing space for
455 unspecified required attributes.
457 2000-06-05 Lennart Staflin <lennarts@infotek.no>
459 * psgml-dtd.el (sgml-parse-parameter-literal): use
460 buffer-substring-no-properties .
462 2000-05-31 Lennart Staflin <lennarts@infotek.no>
464 * psgml-api.el (sgml-parse-data): Don't call sgml-parse-loop
465 directly, use sgml-parse-continue.
467 Sat May 27 00:04:31 2000 Lennart Staflin <lenst@lysator.liu.se>
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
474 Mon Apr 24 09:55:14 2000 Lennart Staflin <lenst@lysator.liu.se>
476 * psgml-edit.el (sgml-complete): Transform case on inserted names
477 using sgml-general-insert-case or sgml-entity-insert-case.
479 Sun Apr 16 16:07:55 2000 Lennart Staflin <lenst@lysator.liu.se>
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
490 * psgml-info.el (sgml-describe-element-type): Use sgml-princ-names
491 for occurs in section.
493 2000-03-22 Lennart Staflin <lennarts@infotek.no>
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.
500 Tue Jan 4 19:51:03 2000 Lennart Staflin <lenst@lysator.liu.se>
502 * psgml-parse.el (sgml-with-parser-syntax): Restore current buffer
503 before restoring syntax table.
505 Tue Dec 21 20:50:31 1999 Lennart Staflin <lenst@lysator.liu.se>
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)
510 Sat Dec 18 18:55:02 1999 Lennart Staflin <lenst@lysator.liu.se>
512 * psgml-charent.el (sgml-charent-to-display-char): use
513 buffer-substring-no-properties to allow for using text properties
516 1999-11-02 Tim Bradshaw <tfb@tfeb.org>
518 * psgml-edit.el (sgml-doctype-insert): made it not loop when it
521 1999-12-16 Lennart Staflin <lennarts@infotek.no>
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.
529 1999-12-15 Lennart Staflin <lennarts@infotek.no>
531 * psgml.el: autoload for sgml-do-set-option
533 1999-12-03 Lennart Staflin <lennarts@infotek.no>
535 * psgml.el (sgml-mode-syntax-table): new variable
536 (sgml-mode): use sgml-mode-syntax-table
538 1999-11-29 Lennart Staflin <lenst@lysator.liu.se>
540 * psgml.el (sgml-validate-error-regexps): Also recognize warnings
541 (:W:) in output from nsgmls.
543 1999-11-11 Lennart Staflin <lennarts@infotek.no>
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.
549 Tue Nov 9 16:25:53 1999 Lennart Staflin <lenst@lysator.liu.se>
551 * psgml-parse.el (sgml-modify-dtd): use sgml-general-case on names
554 Mon Nov 8 22:13:12 1999 Lennart Staflin <lenst@lysator.liu.se>
556 * psgml-info.el (sgml-eltype-refrenced-elements): Copy sequence
557 before sorting destructively.
558 (sgml-describe-element-type): Include exceptions in info display.
560 Thu Nov 4 19:07:09 1999 Lennart Staflin <lenst@lysator.liu.se>
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.
567 * psgml-edit.el (sgml-last-element): don't use sgml-last-element
568 for XML (there is not omitted tags to account for).
570 1999-10-21 Lennart Staflin <lennarts@infotek.no>
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.
576 1999-10-19 Lennart Staflin <lennarts@infotek.no>
578 * Version 1.2.1 released
580 1999-10-14 Lennart Staflin <lennarts@infotek.no>
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
585 (sgml-load-ecat): bind sgml-xml-p while parsing catalog
587 1999-10-13 Lennart Staflin <lennarts@infotek.no>
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
594 (sgml-log-entity-stack): new factored function.
595 (*) Replaces some sgml-parse-error and sgml-log-warning with
597 (sgml-parse-catalog-buffer): bind sgml-xml-p while parsing catalog
599 Sun Oct 10 15:53:12 1999 Lennart Staflin <lenst@lysator.liu.se>
601 * Version 1.2 released
603 Wed Oct 6 00:43:37 1999 Lennart Staflin <lenst@lysator.liu.se>
605 * Version 1.1.7 released
607 * psgml-parse.el (sgml-push-to-entity): carry XML-ness to parsed
610 * psgml-charent.el (sgml-display-char-list-filename): new default
611 is "iso8859.map" in the same directory where psgml is installed.
613 Wed Sep 22 19:34:08 1999 Lennart Staflin <lenst@lysator.liu.se>
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.
620 Sat Aug 14 22:34:59 1999 Lennart Staflin <lenst@lysator.liu.se>
622 * psgml-edit.el (sgml-tag-regexp): Recognize XMLs empty tags.
624 1998-11-16 Lennart Staflin <lenst@lysator.liu.se>
626 * psgml.el (sgml-set-local-variable): insert "mode: xml" for
627 xml-mode and "mode: sgml" otherwise
629 * psgml-edit.el (sgml-add-element-to-element): add end-tag to
630 empty xml-elements before inserting an element
632 1998-11-15 Lennart Staflin <lenst@lysator.liu.se>
634 * Version 1.1.6 released
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.
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.
645 1998-11-14 Lennart Staflin <lenst@lysator.liu.se>
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
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.
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
662 Thu Nov 5 20:59:08 1998 Lennart Staflin <lenst@lysator.liu.se>
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.
671 1998-10-31 Lennart Staflin <lenst@lysator.liu.se>
673 * Version 1.1.5 released
675 * psgml-parse.el (sgml-declared-value-notation): change 'notation
678 Sat Oct 31 20:00:22 1998 Lennart Staflin <lenst@lysator.liu.se>
680 * psgml-parse.el (sgml-cache-catalog): Use file-truename for
681 file-attributes, to get modification time from real file and not
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
689 * psgml-parse.el (xml-parser-syntax): build special syntax table
691 (sgml-with-parser-syntax): Use sgml-parser-syntax or
692 xml-parser-syntax depending on sgml-xml-p
694 Wed Oct 28 23:15:38 1998 Lennart Staflin <lenst@lysator.liu.se>
696 * psgml-parse.el (sgml-read-element-type): use
697 let (completion-ignore-case sgml-namecase-general)
699 Sat Oct 24 13:13:48 1998 Lennart Staflin <lenst@lysator.liu.se>
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.
706 * psgml-edit.el (sgml-what-element): Guard call to
709 1998-10-20 Lennart Staflin <lenst@lysator.liu.se>
711 * psgml-edit.el (sgml-edit-external-entity): fix from Matthias Clasen
713 * psgml.el (sgml-validate-error-regexps): modify regexp to work in
716 1998-09-30 Lennart Staflin <lenst@lysator.liu.se>
718 * Version 1.1.4 release
720 Mon Aug 31 21:53:45 1998 Lennart Staflin <lenst@lysator.liu.se>
722 * psgml-parse.el (sgml-bdtd-load): Increase version number
723 (sgml-read-dtd): Increase version number
725 * psgml-dtd.el (sgml-write-dtd): Increase version number
727 Sat Aug 15 18:58:25 1998 Lennart Staflin <lenst@lysator.liu.se>
729 * psgml-edit.el (sgml-complete): add completion of #-reserved words
731 Fri Jul 3 18:14:21 1998 Lennart Staflin <lenst@lysator.liu.se>
735 * Makefile.in: Call install with only one source file.
737 Fri Jul 3 17:54:06 1998 Lennart Staflin <lenst@lysator.liu.se>
739 * psgml-edit.el (sgml-complete): ignore case
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
745 Tue Jun 30 22:06:20 1998 Lennart Staflin <lenst@lysator.liu.se>
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>
751 Tue Jun 30 21:48:39 1998 Lennart Staflin <lenst@lysator.liu.se>
753 * psgml.el (sgml-mode-map): C-c C-i calls sgml-add-element-to-element
755 * psgml-edit.el (sgml-add-element-to-element): New command.
757 Wed Jun 24 23:23:38 1998 Lennart Staflin <lenst@lysator.liu.se>
759 * psgml-edit.el (sgml-attribute-buffer): Fixed another victim of
761 (sgml-change-element-name): fix bug with empty XML element
763 Mon Jun 22 19:58:43 1998 Lennart Staflin <lenst@lysator.liu.se>
765 * psgml.el (psgml-version): Version 1.1.2
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.
772 * psgml-edit.el (sgml-indent-line): Previous change of
773 sgml-indent-line did not work well with OMITTAG. Restore old
776 Fri Jun 19 18:54:27 1998 Lennart Staflin <lenst@lysator.liu.se>
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
783 * psgml-parse.el (sgml-parse-attribute-specification-list):
784 changed case of default value type
786 1998-06-16 Dave Love <d.love@dl.ac.uk>
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.
793 1998-06-16 Dave Love <d.love@dl.ac.uk>
795 * psgml-parse.el (sgml-push-to-entity): Don't use save-excursion
796 around insert-file-contents -- may break in Emacs 20.3.
798 Fri Jun 19 10:40:53 1998 Lennart Staflin <lenst@lysator.liu.se>
800 * psgml-dtd.el (sgml-check-declared-value): upcase NOTATION
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.
806 Tue Jun 16 00:31:03 1998 Lennart Staflin <lenst@lysator.liu.se>
808 * psgml.el (sgml-command-post): added ignore-errors
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
815 * psgml-dtd.el (sgml-validate-default-value-rn): upcase keywords
816 (sgml-declare-entity): remove case fiddling
818 * psgml-parse.el (sgml-check-case): remove case fiddling -- retain
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.
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.
829 Wed Jun 10 23:28:42 1998 Lennart Staflin <lenst@lysator.liu.se>
831 * psgml-parse.el (sgml-catalog-lookup): Take additional catalogs
834 Thu May 14 20:02:42 1998 Lennart Staflin <lenst@lysator.liu.se>
838 * psgml.el (psgml-version): new version 1.1.1
840 * psgml-dtd.el (sgml-parse-character-reference): upcase funchar
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.
847 * psgml-parse.el (sgml-parse-external): use upper case keywords.
848 (sgml-check-case): use upper case instead of lower case.
850 Wed May 13 06:13:05 1998 Lennart Staflin <lenst@lysator.liu.se>
852 * psgml-parse.el (sgml-do-marked-section): Change keyword strings
854 (sgml-general-case): Use Upcase instead of Downcase.
855 (sgml-parse-markup-declaration): upcase keywords.
857 Sat Mar 14 21:31:09 1998 Lennart Staflin <lenst@lysator.liu.se>
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
864 Thu Mar 12 00:04:52 1998 Lennart Staflin <lenst@lysator.liu.se>
866 * psgml-parse.el (sgml-current-element-name): make buffer local
868 Wed Mar 11 22:11:01 1998 Lennart Staflin <lenst@lysator.liu.se>
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
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.
881 * psgml-dtd.el (sgml-merge-attlists): reverse the list
883 Tue Mar 10 20:13:11 1998 Lennart Staflin <lenst@lysator.liu.se>
885 * psgml.el: Merged David Megginson's latest xml modifications.
887 Sat Nov 15 20:50:35 1997 Lennart Staflin <lenst@lysator.liu.se>
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.
894 Sun Aug 17 20:22:28 1997 Lennart Staflin <lenst@lysator.liu.se>
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.
900 Thu Jul 24 22:36:15 1997 Lennart Staflin <lenst@lysator.liu.se>
902 * psgml-parse.el (sgml-modify-dtd): fixed bug in handling
903 sgml-parent-document.
905 Mon May 19 18:43:32 1997 Lennart Staflin <lenst@lysator.liu.se>
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>
913 * psgml-charent.el (sgml-charent-to-display-char): fix bug in regexp.
915 Sat Mar 15 19:20:57 1997 Lennart Staflin <lenst@lysator.liu.se>
917 * psgml-parse.el (sgml-check-tag-close): change sgml-error to
920 Sun Jan 12 19:15:32 1997 Lennart Staflin <lenst@lysator.liu.se>
922 * psgml.el (psgml-version): bump version
924 Fri Nov 22 20:29:44 1996 Lennart Staflin <lenst@lysator.liu.se>
926 * psgml.el (sgml-parse-colon-path): use path-separator if