PSGML conflicts with sgml-mode (CVS Emacs)

"D. D. Brierton" <[email protected]> Thu, 07 Apr 2005 01:44:42 +0100
Newsgroups gmane.emacs.psgml.user,gmane.emacs.psgml.devel
Organization DZR Web Development
Message-ID <[email protected]>
>From the PROBLEMS file in CVS Emacs:

        *** PSGML conflicts with sgml-mode.
        
        PSGML package uses the same names of some variables (like
        keymap) as built-in sgml-mode.el because it was created as a
        replacement of that package.  The conflict will be shown if you
        load sgml-mode.el before psgml.el.  E.g. this could happen if
        you edit HTML page and then start to work with SGML or XML file.
        html-mode (from sgml-mode.el) is used for HTML file and loading
        of psgml.el (for sgml-mode or xml-mode) will cause an error.
        
At the moment I am working around this problem by manually removing
sgml-mode.el and sgml-mode.elc
from /usr/share/emacs/21.3.50/lisp/textmodes/, but clearly that is not
an elegant solution. Can someone explain an elegant way to work around
the above problem?

This is on Fedora Core 3:

$ rpm -q emacs psgml
emacs-21.3.50-0.20041210
psgml-1.2.5-4

The psgml RPM is from Fedora Core and the CVS Emacs RPMs are from this
yum repository:

[emacs-cvs-testing]
name=Emacs CVS Packages (testing)
baseurl=http://people.redhat.com/petersen/emacs/current/i386/RPMS.testing
gpgcheck=1

My psgml setup is detailed here:

http://www.dzr-web.com/people/darren/projects/emacs-webdev/

TIA, Darren

-- 
=====================================================================
D. D. Brierton            [email protected]          www.dzr-web.com
       Trying is the first step towards failure (Homer Simpson)
=====================================================================


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click