Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2000 18:22:27 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        doc@FreeBSD.org
Subject:   Simple emacs question
Message-ID:  <XFMail.001128182227.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Ok, I'm trying to use a nifty feature of psgmls in xemacs to make my life
easier, but psgml's less than helpful documentation is making it painful. 
Specifically, I want to make use of the 'sgml-parent-document' feature so that
I can edit a chapter.sgml in one buffer and have it DTRT as far as indenting,
etc.  However, I can't seem to con this into working.  When I choose the
'Parent Document' item from the 'SGML | File Options' menu, I am prompted to
enter a value for the sgml-parent-document variable as follows:

The variable describes how the current file's content fit into the element
hierarchy. The variable should have the form

  (PARENT-FILE CONTEXT-ELEMENT* TOP-ELEMENT (HAS-SEEN-ELEMENT*)?)

PARENT-FILE     is a string, the name of the file containing the
                document entity.
CONTEXT-ELEMENT is a string, that is the name of an element type.
                It can occur 0 or more times and is used to set up
                exceptions and short reference map. Good candidates
                for these elements are the elements open when the
                entity pointing to the current file is used.
TOP-ELEMENT     is a string that is the name of the element type
                of the top level element in the current file. The file
                should contain one instance of this element, unless
                the last \(lisp) element of sgml-parent-document is a
                list. If it is a list, the top level of the file
                should follow the content model of top-element.
HAS-SEEN-ELEMENT is a string that is the name of an element type. This
                element is satisfied in the content model of top-element.

So, when it prompts I try entering ("book.sgml" "chapter")  (I have the main
book file open in a buffer named "book.sgml") but this does seemingly nothing. 
No error messages, no nothing.  I've tried using "../book.sgml" and any number
of other things.  Anyone else have any ideas?  Anyone else used this or do we
all just manually indent each chapter.sgml?

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001128182227.jhb>