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

Bug #849841 reported by Peter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nXhtml
In Progress
Medium
Unassigned

Bug Description

Hello,
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

Tags: fdfs
Revision history for this message
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
Revision history for this message
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)

Revision history for this message
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.)

Revision history for this message
Peter (pmlists) wrote :

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

Thanks!
Peter

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.