Lines Matching refs:sgml

3 	* psgml.el (sgml-mode-map): bind C-c C-s to new comman
4 sgml-show-structure.
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
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
39 sgml-skip-ps.
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
50 * psgml-parse.el (sgml-parse-prolog): apply sgml-general-case to
51 sgml-default-doctype-name.
56 * psgml.el (sgml-debug): remove sgml-log-message
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
70 * psgml-parse.el (sgml-modify-dtd): added some error checking for
75 * psgml-parse.el (sgml-do-processing-instruction): new handling
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
88 * psgml-dtd.el (sgml-parse-parameter-literal):
94 * psgml-dtd.el (sgml-parse-parameter-literal):
100 * psgml-parse.el (sgml-setup-doctype): add Predefined Entities
105 * psgml-parse.el (sgml-do-move): undo wrong optimization, fix
114 * psgml-parse.el (sgml-parse-prolog): Check if sgml-dtd-info is
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
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.
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
135 (sgml-change-element-name): insert TAGC before finding new element
142 * psgml.el (sgml-default-nonsticky): moved from psgml-other.el
151 * psgml.el (sgml-mode): make adding to
153 sgml-default-nonsticky to work with Emacs < 21.
168 * psgml-info.el (sgml-set-difference, sgml-union): New functions.
169 (sgml-eltype-refrenced-elements): Use them and also use
173 (sgml-write-dtd): Use sgml-set-buffer-multibyte and bind
175 (sgml-merge-attlists): Use copy-sequence, not copy-list.
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.
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
193 (sgml-operate-on-tags): Use sgml-restore-buffer-modified-p.
195 * psgml-lucid.el (sgml-insert): Use property name `sgml-category',
199 (sgml-mode): Set text-property-default-nonsticky. In Emacs, use
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,
210 (sgml-restore-buffer-modified-p): New alias.
211 (sgml-parse-colon-path): Use parse-colon-path, if available.
213 (sgml-command-post, sgml-mode): Assume make-local-hook exists.
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):
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.
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
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.
269 * psgml-api.el (sgml-map-content): don't try to map empty
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.
283 (sgml-prefix-f-map): new var
284 (sgml-prefix-u-map): new var
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
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.
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,
318 * psgml-info.el (sgml-eltype-refrenced-elements): use built-in
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.
332 * psgml-parse.el (sgml-update-display): take max-pos of top-tree
339 * psgml.el (sgml-running-lucid): make sure it gets defined during
364 * psgml-other.el (sgml-split-long-menus): new
365 (sgml-popup-menu): use above
366 (sgml-popup-multi-menu): use above
370 * psgml-parse.el (sgml-parse-to): remove debug code
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
383 * psgml-parse.el (sgml-push-to-entity): remove debugging code
384 (sgml-set-initial-state): Change to use change hooks
390 * psgml.el (sgml-mode-map): Bind (meta control h) instead of ESC
401 * psgml-edit.el (sgml-read-attribute-value): include the element name, thus:
407 * psgml-edit.el (sgml-indent-line): new strategy for identifying
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
417 sgml-with-parser-syntax.
418 (sgml-with-parser-syntax-ro): As sgml-with-parser-syntax also
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.
433 * psgml.el (sgml-insert-defaulted-attributes): new option
434 * psgml-edit.el (sgml-insert-attributes): check new option
445 * psgml-edit.el (sgml-insert-element): Fix bug with empty element.
449 * psgml-edit.el (sgml-insert-element): Fix bug when inserting
454 * psgml-edit.el (sgml-attribute-buffer): Fix missing space for
459 * psgml-dtd.el (sgml-parse-parameter-literal): use
464 * psgml-api.el (sgml-parse-data): Don't call sgml-parse-loop
465 directly, use sgml-parse-continue.
469 * psgml-edit.el (sgml-attr-clean-and-insert): new command. Used to
471 (sgml-attr-default-keymap): keymap used as only for #DEFAULT in
476 * psgml-edit.el (sgml-complete): Transform case on inserted names
477 using sgml-general-insert-case or sgml-entity-insert-case.
481 * psgml-edit.el (sgml-indent-line): compute indentation from
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
495 * psgml-edit.el (sgml-change-element-name): Add end-tag event if
497 sgml-find-context-of to find element, because -element-of gives
502 * psgml-parse.el (sgml-with-parser-syntax): Restore current buffer
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)
512 * psgml-charent.el (sgml-charent-to-display-char): use
518 * psgml-edit.el (sgml-doctype-insert): made it not loop when it
523 * psgml-parse.el (sgml-parse-prolog): restore buffer modified
525 (sgml-parse-continue): dito.
526 (sgml-parse-to): call sgml-parse-continue instead of calling
527 sgml-parser-loop directly.
531 * psgml.el: autoload for sgml-do-set-option
535 * psgml.el (sgml-mode-syntax-table): new variable
536 (sgml-mode): use sgml-mode-syntax-table
540 * psgml.el (sgml-validate-error-regexps): Also recognize warnings
545 * psgml-parse.el (sgml-parse-to): Let sgml-with-parser-syntax wrap
551 * psgml-parse.el (sgml-modify-dtd): use sgml-general-case on names
556 * psgml-info.el (sgml-eltype-refrenced-elements): Copy sequence
558 (sgml-describe-element-type): Include exceptions in info display.
562 * psgml-parse.el (sgml-note-change-at): If in XML mode and
567 * psgml-edit.el (sgml-last-element): don't use sgml-last-element
572 * psgml-parse.el (sgml-push-to-entity): restore the (erase-buffer)
574 sgml-try-merge-compiled-dtd fails and leaves junk in the buffer.
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
589 * psgml-parse.el (sgml-current-file): New variable, holds the name
591 (sgml-parse-warning): New func. Log a parser warning, a warning
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
607 * psgml-parse.el (sgml-push-to-entity): carry XML-ness to parsed
610 * psgml-charent.el (sgml-display-char-list-filename): new default
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
622 * psgml-edit.el (sgml-tag-regexp): Recognize XMLs empty tags.
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
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.
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
655 (sgml-append-to-help-buffer): new func.
657 * psgml.el (sgml-main-menu): Options handling changed after
659 (sgml-update-all-options-menus): new func. called by
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
668 (sgml-parse-prolog): do not call sgml-skip-ds, rather call
675 * psgml-parse.el (sgml-declared-value-notation): change 'notation
680 * psgml-parse.el (sgml-cache-catalog): Use file-truename for
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
691 (sgml-with-parser-syntax): Use sgml-parser-syntax or
692 xml-parser-syntax depending on sgml-xml-p
696 * psgml-parse.el (sgml-read-element-type): use
697 let (completion-ignore-case sgml-namecase-general)
701 * psgml.el (sgml-build-custom-menus): Construct sub-menus for
706 * psgml-edit.el (sgml-what-element): Guard call to
707 sgml-deref-shortmap
711 * psgml-edit.el (sgml-edit-external-entity): fix from Matthias Clasen
713 * psgml.el (sgml-validate-error-regexps): modify regexp to work in
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
729 * psgml-edit.el (sgml-complete): add completion of #-reserved words
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
747 * psgml-edit.el (sgml-do-set-option): Added file-list and
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.
759 * psgml-edit.el (sgml-attribute-buffer): Fixed another victim of
761 (sgml-change-element-name): fix bug with empty XML element
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
778 * psgml-edit.el (sgml-attribute-buffer):
780 (sgml-translate-attribute-specification-list): changed case for
783 * psgml-parse.el (sgml-parse-attribute-specification-list):
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
795 * psgml-parse.el (sgml-push-to-entity): Don't use save-excursion
800 * psgml-dtd.el (sgml-check-declared-value): upcase NOTATION
802 * psgml-parse.el (sgml-read-element-name): bind
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
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
831 * psgml-parse.el (sgml-catalog-lookup): Take additional catalogs
840 * psgml-dtd.el (sgml-parse-character-reference): upcase funchar
843 * psgml-edit.el (sgml-indent-line): compute indentation from
847 * psgml-parse.el (sgml-parse-external): use upper case keywords.
848 (sgml-check-case): use upper case instead of lower case.
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.
859 * psgml-parse.el (sgml-do-processing-instruction): Added
861 (sgml-parse-catalog-buffer): add catalog as a noname entry
862 (sgml-catalog-lookup): handle catalog entries
866 * psgml-parse.el (sgml-current-element-name): make buffer local
870 * psgml-edit.el (sgml-insert-start-tag): extended meaning of NET
872 (sgml-change-start-tag): keep XML-TAGCE
874 * psgml-parse.el (sgml-read-element-name): use completing read on
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
881 * psgml-dtd.el (sgml-merge-attlists): reverse the list
889 * psgml-parse.el (sgml-parse-attribute-value-specification): New func.
890 (sgml-parse-attribute-specification-list): use new func. This
896 * psgml-parse.el (sgml-cache-catalog): remove file-truename. This
902 * psgml-parse.el (sgml-modify-dtd): fixed bug in handling
903 sgml-parent-document.
907 * psgml-edit.el (sgml-expand-entity-reference): changed to allow
910 (sgml-edit-external-entity): new command contributed by Matthias
913 * psgml-charent.el (sgml-charent-to-display-char): fix bug in regexp.
917 * psgml-parse.el (sgml-check-tag-close): change sgml-error to
918 sgml-log-warning
926 * psgml.el (sgml-parse-colon-path): use path-separator if