Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26567 - PSGML setq sgml-catalog-files wrong argument
Summary: PSGML setq sgml-catalog-files wrong argument
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-13 14:00 UTC by Horace Ip
Modified: 2003-10-23 01:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to files/50psgml-gentoo.el (50psgml-gentoo.el.diff,363 bytes, patch)
2003-10-21 11:33 UTC, Ben Cornett
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Horace Ip 2003-08-13 14:00:50 UTC
In psgml init file   "50psgml-gentoo.el"

(setq sgml-catalog-files "/etc/sgml/catalog")
should be

(setq sgml-catalog-files '("CATALOG" "/etc/sgml/catalog"))

PSGML is expect a list for CATALOG entries.


ref: http://www.lysator.liu.se/~lenst/about_psgml/psgml.html

sgml-catalog-files 	User Option
This is a list of catalog entry files. The files are in the format defined in
the SGML Open Draft Technical Resolution on Entity Management. The Emacs
variable is initialized from the environment variable SGML_CATALOG_FILES or if
this variable is undefined the default is

("CATALOG" "/usr/local/lib/sgml/CATALOG")


Reproducible: Always
Steps to Reproduce:
1.start SGML/XML mode 
2.When it try to parsing DTD
3.

Actual Results:  
listp, wrong argument
Comment 1 Mike Gardiner (RETIRED) gentoo-dev 2003-09-14 07:50:25 UTC
could you possibly provide a patch against the relevant source ? would makes things a bit easier. thanks.
Comment 2 Horace Ip 2003-09-17 19:57:13 UTC
This is my working 50psgml-gentoo.el
--------------------------------------


;;; psgml site-lisp configuration

(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 '("CATALOG" "/etc/sgml/catalog"))
Comment 3 Abdul-Wahid Paterson 2003-10-01 13:04:08 UTC
I also had exactly the same problem on my machines.

The error I got was:

Wrong argument type: listp, "/etc/sgml/catalog"

I solved the problem by deleting the 
(setq sgml-catalog-files "/etc/sgml/catalog")
line altogether so that emacs uses the SGML_CATALOG_FILES that is already
set on my system. It then works fine. However, SGML_CATALOG_TOOLS is set
by the sgmltools package so if it is not installed my fix would not work.


Comment 4 Ben Cornett 2003-10-21 11:33:44 UTC
Created attachment 19596 [details, diff]
patch to files/50psgml-gentoo.el

This patch should close this bug.
Comment 5 Mike Gardiner (RETIRED) gentoo-dev 2003-10-22 21:49:55 UTC
Matt, can we get some app-emacs input here ? is this patch fine ?
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-10-23 00:11:41 UTC
Yes, it is fine and will solve the problem. '("CATALOG" "/etc/sgml/catalog")makes
a list of filenames while "/etc/sgml/catalog" alone doesn't.
Comment 7 Mike Gardiner (RETIRED) gentoo-dev 2003-10-23 01:53:54 UTC
Thanks usata :), Fixed in portage now.