Still serious problems with psgml 1.2.5
Joachim Ziegler <[email protected]>
| Newsgroups | gmane.emacs.psgml.user |
|---|---|
| Organization | Max-Planck-Institut für Informatik |
| Message-ID | <[email protected]> |
Sorry for the inconvenience, but I was just too quick.
It all works with *small* files, but not with big ones as in my current
project. It just seems as if my chapers were too big.
I've byte-compiled psgml for Emacs anew (which has no xml-mode in my
default installation).
Loading my chaper2.xml, going directly after the <chapter>-tag and
pressing C-c C-e (insert element) I get:
Debugger entered--Lisp error: (cl-assertion-failed sgml-current-state)
signal(cl-assertion-failed (sgml-current-state))
(or sgml-current-state (signal (quote cl-assertion-failed) (list ...)))
(progn (or sgml-current-state (signal ... ...)) nil)
(assert sgml-current-state)
(let ((empty ...)) (cond (... ... ... ... ...) (t ... ... ... ...
...)) (assert sgml-current-state))
sgml-set-parse-state([\#DOC 0 nil 0 nil nil 0 nil nil nil nil nil nil
nil nil nil nil] start)
(cond ((sgml-is-goal-after-start goal ...) (setq u ...)) ((and ...
...) (sgml-set-parse-state u ...) nil) ((sgml-is-goal-after-start goal
...) (setq u ...)) (t (sgml-set-parse-state u ...) nil))
(while (cond (... ...) (... ... nil) (... ...) (t ... nil)))
(let ((u sgml-top-tree)) (while (cond ... ... ... ...)))
sgml-goto-start-point(82)
(progn (sgml-goto-start-point (min sgml-goal ...)) (setq quiet (or
quiet ...)) (unless quiet (sgml-message "Parsing...")) (sgml-parser-loop
extra-cond) (unless quiet (sgml-message "")))
(unwind-protect (progn (sgml-goto-start-point ...) (setq quiet ...)
(unless quiet ...) (sgml-parser-loop extra-cond) (unless quiet ...))
(setq sgml-last-buffer (current-buffer)) (set-buffer cb)
(set-syntax-table normal-syntax-table) (set-buffer-modified-p
buffer-modified) (sgml-debug "Restoring buffer mod: %s" buffer-modified))
(let ((normal-syntax-table ...) (cb ...) (buffer-modified ...))
(set-syntax-table (if sgml-xml-p xml-parser-syntax sgml-parser-syntax))
(unwind-protect (progn ... ... ... ... ...) (setq sgml-last-buffer ...)
(set-buffer cb) (set-syntax-table normal-syntax-table)
(set-buffer-modified-p buffer-modified) (sgml-debug "Restoring buffer
mod: %s" buffer-modified)))
(sgml-with-parser-syntax-ro (sgml-goto-start-point (min sgml-goal
...)) (setq quiet (or quiet ...)) (unless quiet (sgml-message
"Parsing...")) (sgml-parser-loop extra-cond) (unless quiet (sgml-message
"")))
sgml-parse-to(82)
(save-excursion (sgml-parse-to pos) (cond (... ...) (t ...))
sgml-current-tree)
sgml-find-context-of(82)
sgml-parse-to-here()
sgml-read-element-name("Element: ")
(list (sgml-read-element-name "Element: ") sgml-leave-point-after-insert)
Xemacs instead says "no valid element at this point" - it does not even
find the DTD.
BTW: Of course, my files are valid DocBook-documents.
I'm on the edge of desperation...
Greetings,
Joachim
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge