Jerry James wrote:
This one is my fault. Does the following patch solve the problem?
--- psgml-parse.el~ Fri Mar 31 11:34:30 2000
+++ psgml-parse.el Tue Apr 4 17:40:39 2000
@@ -3535,8 +3535,9 @@
(cond (external
;; James addition - set the sgml-declaration
(let ((decl
- (sgml-catalog-lookup sgml-catalog-files nil 'dtddecl
- (sgml-canonize-pubid (car external)))))
+ (and (car external)
+ (sgml-catalog-lookup sgml-catalog-files nil 'dtddecl
+ (sgml-canonize-pubid (car external))))))
(if decl (setq sgml-declaration decl)))
(sgml-push-to-entity (sgml-make-entity docname 'dtd external))
(sgml-check-dtd-subset)
If so, I'll send it to xemacs-patches. Thanks,
Yes, thanks Jerry, this works.
And now for something completely different. When I use the Markup menu,
and attempt to Insert Element, I get a correct list according to the
DTD, but when I select an element, it is not inserted. This with my
test DTD and with a standard HTML DTD.
When I instrument the function `sgml-element-menu' (from psgml-edit)
with Edebug, it works; the element is inserted. Any ideas?
--
__ /__ Peter B. West pbwest(a)netscape.net
/
http://www.powerup.com.au/~pbwest
/ "Lord, to whom shall we go?"