2001-12-16 Lennart Staflin * Version 1.2.4 released 2001-12-16 Lennart Staflin * psgml-info.el (sgml-eltype-refrenced-elements): use built-in function copy-sequence 2001-12-14 Lennart Staflin * psgml-parse.el (sgml-set-buffer-multibyte): Mule/multibyte patch from Yasushi Abe. (sgml-compile-dtd): dito. (sgml-bdtd-merge): dito. (sgml-push-to-entity): dito. (sgml-do-entity-ref): fix sgml-warn-about-undefined-entities behviour. 2001-12-06 Lennart Staflin * psgml-parse.el (sgml-update-display): take max-pos of top-tree not current-tree as that is not always defined at that point. 2001-11-09 Lennart Staflin * Version 1.2.3 released * psgml.el (sgml-running-lucid): make sure it gets defined during compilation. 2001-11-04 Lennart Staflin * psgml-other.el, psgml-parse.el, psgml-debug.el, psgml-edit.el: Fix the obsolete variable `before-change-function' and `after-change-function', which are no longer used by Emacs. 2001-02-10 Adrian Aichner * psgml-dtd.el: Fix typos. * psgml-edit.el: Ditto. * psgml-fs.el: Ditto. * psgml-info.el: Ditto. * psgml-parse.el: Ditto. * psgml.el: Ditto. Wed Feb 28 00:02:45 2001 Lennart Staflin * psgml-fs.el (fs-split-tokens): new helper function for use in style sheets. 2001-02-28 Lennart Staflin * psgml-other.el (sgml-split-long-menus): new (sgml-popup-menu): use above (sgml-popup-multi-menu): use above Wed Feb 21 23:30:07 2001 Lennart Staflin * psgml-parse.el (sgml-parse-to): remove debug code 2001-02-20 Lennart Staflin * psgml-dtd.el (sgml-check-content): check case of declared content name. (sgml-parse-exception): fix misspelled function name (sgml-declare-entity): Fix wrong case on symbols (sgml-parse-entity-type): for consistency, don't downcase entity type name (sgml-parse-entity-type): Remove case check and intern for notation name. Notation name will be stored as a string. * psgml-parse.el (sgml-push-to-entity): remove debugging code (sgml-set-initial-state): Change to use change hooks Fri Feb 9 01:06:27 2001 Lennart Staflin * Version 1.2.2 released * psgml.el (sgml-mode-map): Bind (meta control h) instead of ESC C-h, avoids redefining M-BS Thu Feb 8 20:08:47 2001 Lennart Staflin * psgml-info.el: Add provide psgml-info Sun Oct 22 17:29:53 2000 Marc-Antoine Parent * patch from Marc-Antoine Parent * psgml-edit.el (sgml-read-attribute-value): include the element name, thus: Value for {attribute name} in {element name} ({type} {Default}): 2000-10-11 Lennart Staflin * psgml-edit.el (sgml-indent-line): new strategy for identifying elements 2000-09-06 Lennart Staflin * psgml-api.el (sgml-map-content): Use sgml-with-parser-syntax-ro * psgml-parse.el (sgml-find-start-point): renamed to sgml-goto-start-point, to indicate that this actually changes the point and buffer. And should always be called inside sgml-with-parser-syntax. (sgml-with-parser-syntax-ro): As sgml-with-parser-syntax also handle restoring buffer modification state. (sgml-last-buffer): New state variable (sgml-with-parser-syntax): set sgml-last-buffer (sgml-mainbuf-point): new function (sgml-max-pos-in-tree): new function (sgml-update-display): don't call sgml-find-start-point, use sgml-max-pos-in-tree to figure out if there is much to parse. (sgml-parse-to): calls sgml-parser-loop directly no sgml-parse-continue. (sgml-parse-continue): use sgml-with-parser-syntax-ro and set-buffer to sgml-last-buffer. 2000-08-24 Lennart Staflin * psgml.el (sgml-insert-defaulted-attributes): new option * psgml-edit.el (sgml-insert-attributes): check new option * psgml-fs.el (style-format): set ps-left-header to include a style-sheet specified title and the filename. (for ps-print-buffer) (fs-special-styles): New special style 'title' for setting title. (fs-do-style): handle title style (fs-element-content): make element argument optional, defaults to current element. 2000-08-08 Lennart Staflin * psgml-edit.el (sgml-insert-element): Fix bug with empty element. Thu Aug 3 07:52:46 2000 Lennart Staflin * psgml-edit.el (sgml-insert-element): Fix bug when inserting element at end of buffer. 2000-08-03 Lennart Staflin * psgml-edit.el (sgml-attribute-buffer): Fix missing space for unspecified required attributes. 2000-06-05 Lennart Staflin * psgml-dtd.el (sgml-parse-parameter-literal): use buffer-substring-no-properties . 2000-05-31 Lennart Staflin * psgml-api.el (sgml-parse-data): Don't call sgml-parse-loop directly, use sgml-parse-continue. Sat May 27 00:04:31 2000 Lennart Staflin * psgml-edit.el (sgml-attr-clean-and-insert): new command. Used to automatically remove #DEFAULT when a character is typed. (sgml-attr-default-keymap): keymap used as only for #DEFAULT in attribute editing. Mon Apr 24 09:55:14 2000 Lennart Staflin * psgml-edit.el (sgml-complete): Transform case on inserted names using sgml-general-insert-case or sgml-entity-insert-case. Sun Apr 16 16:07:55 2000 Lennart Staflin * psgml-edit.el (sgml-indent-line): compute indentation from context, not element under point. Did this change once before but had to back it out. This time take care of omitted end-tags by choosing parent element as context, if point is at the very end of the element. Don't do special attribute indenting for elements that occur in data context. (sgml-fill-region): Fix giving up to early. (sgml-do-fill): indent tags of subelements in element context * psgml-info.el (sgml-describe-element-type): Use sgml-princ-names for occurs in section. 2000-03-22 Lennart Staflin * psgml-edit.el (sgml-change-element-name): Add end-tag event if original element is empty. (hmm this isn't quite right). Also use sgml-find-context-of to find element, because -element-of gives the element of the following char. Tue Jan 4 19:51:03 2000 Lennart Staflin * psgml-parse.el (sgml-with-parser-syntax): Restore current buffer before restoring syntax table. Tue Dec 21 20:50:31 1999 Lennart Staflin * psgml-other.el (sgml-set-face-for): set rear-nonsticky for face when sgml-use-text-properties is true. (Suggested by Dirk Frömbgen) Sat Dec 18 18:55:02 1999 Lennart Staflin * psgml-charent.el (sgml-charent-to-display-char): use buffer-substring-no-properties to allow for using text properties for fontification. 1999-11-02 Tim Bradshaw * psgml-edit.el (sgml-doctype-insert): made it not loop when it gets a bogus nil 1999-12-16 Lennart Staflin * psgml-parse.el (sgml-parse-prolog): restore buffer modified after parsing. To allow using text properties for fontification. (sgml-parse-continue): dito. (sgml-parse-to): call sgml-parse-continue instead of calling sgml-parser-loop directly. 1999-12-15 Lennart Staflin * psgml.el: autoload for sgml-do-set-option 1999-12-03 Lennart Staflin * psgml.el (sgml-mode-syntax-table): new variable (sgml-mode): use sgml-mode-syntax-table 1999-11-29 Lennart Staflin * psgml.el (sgml-validate-error-regexps): Also recognize warnings (:W:) in output from nsgmls. 1999-11-11 Lennart Staflin * psgml-parse.el (sgml-parse-to): Let sgml-with-parser-syntax wrap a bigger chunk of the code to make sure the syntax table is set up before any buffer changes. Tue Nov 9 16:25:53 1999 Lennart Staflin * psgml-parse.el (sgml-modify-dtd): use sgml-general-case on names from modifier. Mon Nov 8 22:13:12 1999 Lennart Staflin * psgml-info.el (sgml-eltype-refrenced-elements): Copy sequence before sorting destructively. (sgml-describe-element-type): Include exceptions in info display. Thu Nov 4 19:07:09 1999 Lennart Staflin * psgml-parse.el (sgml-note-change-at): If in XML mode and previous char is /, back up one char. This allows for the /> delimiter to be recognized even if the start tag has been previously parsed as an improperly ended tag. * psgml-edit.el (sgml-last-element): don't use sgml-last-element for XML (there is not omitted tags to account for). 1999-10-21 Lennart Staflin * psgml-parse.el (sgml-push-to-entity): restore the (erase-buffer) that had been commented out. This is needed for the case when sgml-try-merge-compiled-dtd fails and leaves junk in the buffer. 1999-10-19 Lennart Staflin * Version 1.2.1 released 1999-10-14 Lennart Staflin * psgml-parse.el (sgml-log-entity-stack): don't use sgml-pop-entity, just loop thru the entity stack and print out the files. (sgml-load-ecat): bind sgml-xml-p while parsing catalog 1999-10-13 Lennart Staflin * psgml-parse.el (sgml-current-file): New variable, holds the name of file name (if any) of the entity beeing parsed in the buffer. (sgml-parse-warning): New func. Log a parser warning, a warning including information about where the error occured. Mostly for DTD parsing. (sgml-log-entity-stack): new factored function. (*) Replaces some sgml-parse-error and sgml-log-warning with sgml-parse-warning. (sgml-parse-catalog-buffer): bind sgml-xml-p while parsing catalog Sun Oct 10 15:53:12 1999 Lennart Staflin * Version 1.2 released Wed Oct 6 00:43:37 1999 Lennart Staflin * Version 1.1.7 released * psgml-parse.el (sgml-push-to-entity): carry XML-ness to parsed text entities. * psgml-charent.el (sgml-display-char-list-filename): new default is "iso8859.map" in the same directory where psgml is installed. Wed Sep 22 19:34:08 1999 Lennart Staflin * psgml-edit.el: Apply sgml-general-case to attribute name for interactive sgml-insert-attribute. Don't test for non empty asl in sgml-edit-attrib. A lot of changes in handling text attributes when in attribute edit mode. Sat Aug 14 22:34:59 1999 Lennart Staflin * psgml-edit.el (sgml-tag-regexp): Recognize XMLs empty tags. 1998-11-16 Lennart Staflin * psgml.el (sgml-set-local-variable): insert "mode: xml" for xml-mode and "mode: sgml" otherwise * psgml-edit.el (sgml-add-element-to-element): add end-tag to empty xml-elements before inserting an element 1998-11-15 Lennart Staflin * Version 1.1.6 released * psgml-parse.el (sgml-char-int): from XEmacs (sgml-read-octet): modified for XEmacs (sgml-read-peek): dito. (sgml-read-number): dito. * psgml.el (sgml-option-value-indicator): moved here. (sgml-mode): activate-menubar-hook can't be local in XEmacs and sgml-build-custom-menus need to be after the easy-menu-adds. 1998-11-14 Lennart Staflin * psgml.el, psgml-edit.el: Fix from David Megginson to some regexps for _: in names. (sgml-build-custom-menus): Do not call easy-menu-change with empty menu. * psgml-edit.el (sgml-do-set-option): Don't modify the *Help* buffer directly, call sgml-append-to-help-buffer. Fixes problem with read-only buffer. (sgml-append-to-help-buffer): new func. * psgml.el (sgml-main-menu): Options handling changed after suggestion and code from Matthias Clasen (sgml-update-all-options-menus): new func. called by activate-menubar-hook Thu Nov 5 20:59:08 1998 Lennart Staflin * psgml-parse.el (sgml-parse-processing-instruction): removed let of sgml-markup-start. Was probably wrong solution to problem with sgml-markup-start beeing nil. Added in-declaration parameter. If in a declaration, no fontification should be done. (sgml-parse-prolog): do not call sgml-skip-ds, rather call parse-s, parse-pi as this is what "other prolog" contains. 1998-10-31 Lennart Staflin * Version 1.1.5 released * psgml-parse.el (sgml-declared-value-notation): change 'notation to 'NOTATION Sat Oct 31 20:00:22 1998 Lennart Staflin * psgml-parse.el (sgml-cache-catalog): Use file-truename for file-attributes, to get modification time from real file and not from symlink. * psgml.el (xml-mode): Do not build a syntax table (sgml-dtd-menu): moved Custom DTD's to submenu (sgml-markup-menu): moved Custom Markup to submenu (sgml-build-custom-menus): Make submenus for Custom DTD and Markup * psgml-parse.el (xml-parser-syntax): build special syntax table for XML. (sgml-with-parser-syntax): Use sgml-parser-syntax or xml-parser-syntax depending on sgml-xml-p Wed Oct 28 23:15:38 1998 Lennart Staflin * psgml-parse.el (sgml-read-element-type): use let (completion-ignore-case sgml-namecase-general) Sat Oct 24 13:13:48 1998 Lennart Staflin * psgml.el (sgml-build-custom-menus): Construct sub-menus for custom DTD and custom Markup insert, only if easy-menu-filter-return is not defined otherwise use the :filter facility to build menu when needed. * psgml-edit.el (sgml-what-element): Guard call to sgml-deref-shortmap 1998-10-20 Lennart Staflin * psgml-edit.el (sgml-edit-external-entity): fix from Matthias Clasen * psgml.el (sgml-validate-error-regexps): modify regexp to work in Emacs 20.3 1998-09-30 Lennart Staflin * Version 1.1.4 release Mon Aug 31 21:53:45 1998 Lennart Staflin * psgml-parse.el (sgml-bdtd-load): Increase version number (sgml-read-dtd): Increase version number * psgml-dtd.el (sgml-write-dtd): Increase version number Sat Aug 15 18:58:25 1998 Lennart Staflin * psgml-edit.el (sgml-complete): add completion of #-reserved words Fri Jul 3 18:14:21 1998 Lennart Staflin * Version 1.1.3 * Makefile.in: Call install with only one source file. Fri Jul 3 17:54:06 1998 Lennart Staflin * psgml-edit.el (sgml-complete): ignore case * psgml-parse.el (sgml-push-to-entity): use setf to set sgml-entity-marked-undefined-p. (setf sgml-entity-marked-undefined-p): define setf method Tue Jun 30 22:06:20 1998 Lennart Staflin * psgml-edit.el (sgml-do-set-option): Added file-list and file-or-nil types contributed by Matthias Clasen Tue Jun 30 21:48:39 1998 Lennart Staflin * psgml.el (sgml-mode-map): C-c C-i calls sgml-add-element-to-element * psgml-edit.el (sgml-add-element-to-element): New command. Wed Jun 24 23:23:38 1998 Lennart Staflin * psgml-edit.el (sgml-attribute-buffer): Fixed another victim of the case change. (sgml-change-element-name): fix bug with empty XML element Mon Jun 22 19:58:43 1998 Lennart Staflin * psgml.el (psgml-version): Version 1.1.2 * Installed patch from Matthias Clasen . Adding notation to entities and a sgml-notation-handlers variable used by sgml-edit-external-entity. * psgml-edit.el (sgml-indent-line): Previous change of sgml-indent-line did not work well with OMITTAG. Restore old functionallity. Fri Jun 19 18:54:27 1998 Lennart Staflin * psgml-edit.el (sgml-attribute-buffer): changed case of default value type, here and in many other functions. (sgml-translate-attribute-specification-list): changed case for declared value * psgml-parse.el (sgml-parse-attribute-specification-list): changed case of default value type 1998-06-16 Dave Love * psgml-edit.el (sgml-read-element-name, sgml-read-attribute-value, sgml-insert-attribute, sgml-custom-markup): Use sgml-namecase-general to set completion-ignore-case. 1998-06-16 Dave Love * psgml-parse.el (sgml-push-to-entity): Don't use save-excursion around insert-file-contents -- may break in Emacs 20.3. Fri Jun 19 10:40:53 1998 Lennart Staflin * psgml-dtd.el (sgml-check-declared-value): upcase NOTATION * psgml-parse.el (sgml-read-element-name): bind completion-ignore-case as suggested by Mark Eichin. Also present element names in the insert case. Tue Jun 16 00:31:03 1998 Lennart Staflin * psgml.el (sgml-command-post): added ignore-errors * psgml-parse.el (sgml-get-delim-string): new func. (sgml-delim): changed to macro. (sgml-do-usemap): upcase #EMPTY (sgml-parse-xml-comment): set markup type * psgml-dtd.el (sgml-validate-default-value-rn): upcase keywords (sgml-declare-entity): remove case fiddling * psgml-parse.el (sgml-check-case): remove case fiddling -- retain check. * psgml-dtd.el (sgml-validate-declared-value): upcase attribute types (sgml-check-default-value): remove case fiddling -- reserved names should be in upper case. * psgml-parse.el (sgml-push-to-entity): use syntax table from current buffer in entity buffer and not the sgml-parser-syntax as XML will use another syntax table. Wed Jun 10 23:28:42 1998 Lennart Staflin * psgml-parse.el (sgml-catalog-lookup): Take additional catalogs in right order. Thu May 14 20:02:42 1998 Lennart Staflin * Version 1.1.1 * psgml.el (psgml-version): new version 1.1.1 * psgml-dtd.el (sgml-parse-character-reference): upcase funchar names. * psgml-edit.el (sgml-indent-line): compute indentation from context, not element under point. Removed special handling of start-tag and document context. Extra indentation if in markup. * psgml-parse.el (sgml-parse-external): use upper case keywords. (sgml-check-case): use upper case instead of lower case. Wed May 13 06:13:05 1998 Lennart Staflin * psgml-parse.el (sgml-do-marked-section): Change keyword strings to upper case. (sgml-general-case): Use Upcase instead of Downcase. (sgml-parse-markup-declaration): upcase keywords. Sat Mar 14 21:31:09 1998 Lennart Staflin * psgml-parse.el (sgml-do-processing-instruction): Added recognition of PSGML NOFILL. (sgml-parse-catalog-buffer): add catalog as a noname entry (sgml-catalog-lookup): handle catalog entries Thu Mar 12 00:04:52 1998 Lennart Staflin * psgml-parse.el (sgml-current-element-name): make buffer local Wed Mar 11 22:11:01 1998 Lennart Staflin * psgml-edit.el (sgml-insert-start-tag): extended meaning of NET paramenter to insert XML-TAGCE if XML. (sgml-change-start-tag): keep XML-TAGCE * psgml-parse.el (sgml-read-element-name): use completing read on all defined element types if in an ANY context. (sgml-check-tag-close): removed check for XML-TAGCE (sgml-do-start-tag): added check for XML-TAGCE (sgml-element-empty): In XML no special handling of elements with declared content of EMPTY, but use conref to signal empty element tag. * psgml-dtd.el (sgml-merge-attlists): reverse the list Tue Mar 10 20:13:11 1998 Lennart Staflin * psgml.el: Merged David Megginson's latest xml modifications. Sat Nov 15 20:50:35 1997 Lennart Staflin * psgml-parse.el (sgml-parse-attribute-value-specification): New func. (sgml-parse-attribute-specification-list): use new func. This changes an error to a warning to make better error recovery when illegal characters occurs in starttag. Sun Aug 17 20:22:28 1997 Lennart Staflin * psgml-parse.el (sgml-cache-catalog): remove file-truename. This made relative filenames refer to the wrong directory if the catalog file was a symlink. Thu Jul 24 22:36:15 1997 Lennart Staflin * psgml-parse.el (sgml-modify-dtd): fixed bug in handling sgml-parent-document. Mon May 19 18:43:32 1997 Lennart Staflin * psgml-edit.el (sgml-expand-entity-reference): changed to allow point to be within entity referens, not only at start of ref. As suggested by Matthias Clasen. (sgml-edit-external-entity): new command contributed by Matthias Clasen * psgml-charent.el (sgml-charent-to-display-char): fix bug in regexp. Sat Mar 15 19:20:57 1997 Lennart Staflin * psgml-parse.el (sgml-check-tag-close): change sgml-error to sgml-log-warning Sun Jan 12 19:15:32 1997 Lennart Staflin * psgml.el (psgml-version): bump version Fri Nov 22 20:29:44 1996 Lennart Staflin * psgml.el (sgml-parse-colon-path): use path-separator if available.