From owner-freebsd-doc Tue Nov 28 18:22:22 2000 Delivered-To: freebsd-doc@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 8629E37B400 for ; Tue, 28 Nov 2000 18:22:19 -0800 (PST) Received: from laptop.baldwin.cx (john@dhcp246.osd.bsdi.com [204.216.28.246]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id eAT2MEC01271 for ; Tue, 28 Nov 2000 18:22:14 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Tue, 28 Nov 2000 18:22:27 -0800 (PST) From: John Baldwin To: doc@FreeBSD.org Subject: Simple emacs question Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 -- 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