This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: DocBook/PSGML/Emacs


On Mon, Jan 10, 2000 at 03:17:58PM +0100, Michael Wiedmann wrote:
> Excuse in advance for the follwing offtopic question:
> 
> If I try to use the above mentioned combination to edit the smallest 
> DocBook files I run into severe problems :(
> 
> Trying to 'sgml-parse-prolog' (C-c/C-p) starts parsing but Emacs 
> doesn't come to an end. 
> The last message in the minibuffer is 'Loading pdgml-dtd...done'. 
> CPU-load goes up to 100%, memory consumption increases slowly.
> Still after VERY long time I don't get a 'result' and have to kill
> emacs.
> 
> Tested with:
> - psgml 1.2.0
> - emacs 20.3 (Linux, WinNT 4.0)
> - DocBook 3.1
> 
> Any hints for me?

These are the main points in my ~/.emacs file:

----------------- STARTS HERE ---------------------
;; Carregar modo psgml

(setq load-path (cons "/usr/share/emacs/site-lisp/psgml/" load-path))
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t )
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t )

;; Definição de onde ficam os arquivos contendo os catálogos para os 
;; DTDs usados. 
;;
;; VER A VARIÁVEL DE AMBIENTE SGML_CATALOG_FILES. O valor pego é o
;; desta variável. 

;; Parsing automático de documentos.
;(setq sgml-auto-activate-dtd t)


;;--- SGML colorizing with psgml

;;;; (CUTTED FOR THIS EMAIL. IF YOU WANT, I'LL SEND IN PVT)


;; Associação de novos tipos de documento ao modo SGML, principalmente
;; para o parsing e para a fontificação.
(setq auto-mode-alist
      (cons '("\\.html$" . sgml-mode) auto-mode-alist))

;; Auto fill para SGML. Alinha o texto com 80 colunas. 
(setq sgml-mode-hook
      '(lambda () "Defaults for SGML mode."
         (auto-fill-mode)       
         (setq fill-column 80)
))
--------------------- ENDS HERE ------------------

I'm using Emacs 20.4 and psgml 1.2.1 on Linux. 


Regards,
--
Godoy.	<godoy@conectiva.com.br>               GPG Fingerprint
                                         851B B620 626D 2AD0 E783
"Ser poeta não é minha ambição,          E932 1330 BE6D A4A3 0625 
 é minha maneira de estar sozinho"
		- Fernando Pessoa.

Except where explicitly stated I speak on my own behalf.
Exceto onde explicitado as declarações aqui feitas são apenas minhas.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]