no syntax highlighting with mumamo-background-chunk-major = 'default

Bug #849841 reported by Peter on 2011-09-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

When using
"(setq mumamo-background-chunk-major 'default)"
then there is no more syntax highlighting in the major mode.
Steps to reproduce:
- emacs -Q
- load nxhtml/autostart
- (setq mumamo-background-chunk-major 'default)
- load file "test.php" with some html code
-> no colors

lborgman (lennart-borgman) wrote :

Hi Peter,

This bug is actually a documentation bug. The face used for background coloring must not have a foreground color defined.

If it has a foreground color defined then this will override the syntax coloring. (This is because background coloring is done using an overlay.)

I will fix it in the documentation. Thanks for reporting this!

Changed in nxhtml:
status: New → In Progress
importance: Undecided → Medium
Peter (pmlists) wrote :

The problem seems to be the foreground and the background
colors (black and white) in the `default' face. But in
the definition of this face in `faces.el', there are no
colors, so I don't know where they come from.

My workaround:

(defface pm/default '((t nil)) "Basic default face.")
(setq mumamo-background-chunk-major 'pm/default)

lborgman (lennart-borgman) wrote :

Peter, that workaround is for a non-existent problem ;-)

Please see mumamo-chunk-coloring for your problem. (Maybe this is another documentation miss on my side though.)

Peter (pmlists) wrote :

Indeed! I missed this one, because I have only searched for variables with "mumamo" and "background"...


Gadji (gadjim4) on 2012-05-09
tags: added: fdfs
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers