auctex-devel
[Top][All Lists]

## Re: [AUCTeX-devel] bug in auctex highlighting

 From: Ralf Hemmecke Subject: Re: [AUCTeX-devel] bug in auctex highlighting Date: Sat, 22 May 2010 18:31:38 +0200 User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4

>> Well, all I want was to have proper highlighting inside some
>>
>> \begin{chunk}{CHUNKNAME}
>> ...
>> \end{chunk}
>>
>> environments according to the programming language that lives inside the
>> chunk and now I am already trying to turn auctex upside down. And that
>> will probably only solve one half of my problem.
>>
>> All beyond my skills. But there's probably nobody else willing to solve
>> my problem. :-(
>
>
> Have you tried using something from
> http://www.emacswiki.org/emacs/MultipleModes ?
> Last time I tried (for html/php) mmm-mode was rather touchy, but
> it may have gotten better since then.  I won't get to it for a
> while, but I would eventually like to do something similar.

Well, yep, I've worked with mmm-mode and noweb markup, but there was
still that problem with \$ in code chunks makeing font-lock not
highlighting properly. Now I want to get rid of that problem, because
without good tools one cannot promote literate programming.

I am not sure whether the problem is mmm-mode or auctex. Auctex is
buggy, no doubt, but I am not completely sure whether solving the auctex
problem will eventually help me.

I am not touching mmm-mode yet, because that code is doing things that
contradict Emacs' definition of major mode. There shouldn't be multiple
major modes existing in an Emacs buffer---(by definition)---so I would
be much more happier if Emacs itself solves the problem of mixing major
modes nicesly. That will probably take ages, so I have to live with
workarounds. MMM-mode is wonderful, but unfortunately unmaintained sind
2004. I haven't actually tried mumamo and multimode, but I've read that
they don't properly support font-locking, so I rather stay with mmm-mode
for now and hope that some day everything will be fixed. ;-)

Ralf