Subject: Re: bug#22410: htmlfontify and interaction with preproc-font

From: [email-masked] (Phillip Lord)
Date: Tue, 26 Jan 2016 15:57:12 +0000

[email-masked] (Phillip Lord) writes:

> https://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00892.html

I have investigated further.

hfy-face-at appears to be returning the right thing, but htmlfontify
seems not to produce overlapping fonts. So, looking at the first:

#define EMACS_BUFFER_H

from buffer.h with preproc-font installed.

This is from htmlfontify.el

#+begin_src html
  <span class="preprocessor">#</span>
  <span class="preprocessor">define</span>
  <span class="preprocessor-background"> </span>
  <span class="variable-name">EMACS_BUFFER_H</span>
#+end_src

And this is from htmlize.el

#+begin_src html
  <span class="preproc-font-lock-preprocessor-background">
    <span class="preprocessor">#define</span>
  </span>
  <span class="preproc-font-lock-preprocessor-background"> </span>
  <span class="preproc-font-lock-preprocessor-background">
    <span class="variable-name">EMACS_BUFFER_H</span>
  </span>
#+end_src

AFAICT, this all happens in hfy-fontify-buffer, and I haven't found the
energy to step through this yet.