HTML mode, Fontification and other problems

"Rajesh J Advani" <[email protected]> Mon, 12 Aug 2002 14:25:28 +0530
Newsgroups gmane.emacs.xae
Message-ID <[email protected]>
Hi,

I've been going through the list-archives, and I saw that the "Key
sequence C-c C-c - uses invalid prefix characters" error is a common
one.

Loading XAE, effectively means that I can't use HTML mode anymore. Is
there any work-around to correct this? I'd like to keep the option of
having HTML mode usable.

Currently, I've associated html and htm files to XAE, but I don't really
want to keep it that way. And starting two instances of Emacs (one with
xae and one without), is something I don't really want to do.

And font-locking. Doesn't work by default.
Adding the stuff suggested by Paul to get Font-locking working, didn't
work on my system. However, I didn't try too hard, and might have missed
something. The reason I didn't, is because I can get font-locking
working if I do the following -

1. Open an XML file (or sgml/html or any file that xae can work with)
2. M-x customize-group -> sgml
3. C-k <return> (To kill the customize buffer)
4. C-x C-v (to reload the xml file)

Voila! The same XML file is now font-locked! Of course, after the first
file gets font-locked in an emacs session, I no longer have to do
customize-group. But before opening the customize buffer I get no
font-lock. I'm not changing anything in there. I'm just opening the
buffer, and then killing it.

This is ok for now, but doing the customize everytime I start Emacs is a
bit of a pain (I agree that that's usually just once a day, but
still...) .
Also, the fontification that I get, doesn't fontify quoted text. ie,
stuff within quotes, stays black. (if it's bold, then I don't see it coz
I don't use Courier for my font.) Where do I change this behaviour? I
see nothing about faces when trying to customize sgml or xae.

I have the following suspicious bit in my .emacs file. Saying I'm no
lisp guru would be a bit of an understatement, since I know no Lisp at
all. But it's suspicious nonetheless - 

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

(autoload 'sgml-mode "sgml-mode" "SGML mode." t)
------------------------------------------------------------

I don't remember when and why I added both these, but I assume I must
have got them from the installation instructions.

And yes, everytime I open a file in xml-mode, it's opened as read-only.
Pretty irritating, this one.

I've been attempting to use XAE since beta 2 (if I remember right), but
the problems above have kept me from that. In fact, I've kept the stuff
to enable XAE in my .emacs file commented out. I like some of the
features of sgml-mode (without XAE) like tag traversal and stuff, and
this breaks with XAE loaded. The XAE variants keep giving me the error
about not able to parse the dtd and stuff.

So, is there a way of of keeping XAE, the default sgml-mode that comes
with Emacs 21.2.1, and html-mode all at the same time, so that I could
switch between the different modes as I feel necessary?

Thanks in advance.
--
Rajesh J Advani
--------------------------------
"If you don't understand 
 yourself you don't understand
 anybody else." -Nikki Giovanni
Wipro_Disclaimer.txt (text/plain, 490 B)
**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************