Subject: Re: Problem building pkgsrc guide
To: None <wiz@NetBSD.org>
From: Hiroki Sato <hrs@NetBSD.org>
List: netbsd-docs
Date: 05/05/2005 17:25:48
----Security_Multipart(Thu_May__5_17_25_48_2005_858)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

Thomas Klausner <wiz@NetBSD.org> wrote
  in <20050428145308.GI20624@dmath5.geometrie.tuwien.ac.at>:

wi> On Sun, Apr 24, 2005 at 01:00:49AM +0900, Hiroki Sato wrote:
wi> >  In most cases,
wi> >  you do not need to set {SGML,XML}_CATALOG_FILES manually.
wi> 
wi> I was trying (so far without success) to use the psgml-mode in emacs
wi> for editing NetBSD XML files, and setting the variables was one
wi> of the steps I found somewhere.
wi> 
wi> Any hints on how to make this work are very welcome.

 I committed the latest version of textproc/psgml-mode and
 switch-over of the Website DOCTYPE declaration in each htdocs/*.xml files.
 Putting the following lines (with replacing /home/hrs/work/NetBSD/htdocs
 part with a pathname of your htdocs/ tree) into your ~/.emacs file
 should make the psgml-mode work.  Could you try this?

---(cut here)

 (autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
 (autoload 'xml-mode "psgml" "Major mode to edit XML files." t)

 (setq sgml-catalog-files '("/usr/pkg/share/sgml/catalog"
                           "/home/hrs/work/NetBSD/htdocs/guide/en/share/catalog"
                           "/home/hrs/work/NetBSD/htdocs/share/xml/catalog"
                           ))
 (setq auto-mode-alist
      (append '(("\\.html?$" . sgml-mode)
                ("\\.sgml?$" . sgml-mode)
                ("\\.xml$" . xml-mode)
                ("\\.xsl$" . xml-mode))
              auto-mode-alist))

 (setq sgml-indent-data t)
 (setq sgml-balanced-tag-edit t)
 (setq sgml-auto-activate-dtd nil)

---(cut here)

-- 
| Hiroki SATO

----Security_Multipart(Thu_May__5_17_25_48_2005_858)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCediMTyzT2CeTzy0RApGxAJ4/mxADU9aRgdhe6bVLnhFhwV8M2ACcDYSi
fnDxfpOgXBrfPu0npZUCrz4=
=GSs8
-----END PGP SIGNATURE-----

----Security_Multipart(Thu_May__5_17_25_48_2005_858)----