Hello everyone,

currently, if I clock some time and then do org-clock-display, the
headline text changes face to ‘default’. If I’m not mistaken, this
wasn’t the usual behavior until recently (my update to Emacs 30,
perhaps?). The face at that location is org-level-1, which, if I
remember rightly, used not to be overlaid with ‘default’. (Compare this
screencast from 2016:
https://www.youtube.com/watch?v=uVv49htxuS8&t=722.)

Can anyone help me understand where the default face is coming from
here?

With point on the headline text, calling describe-char results in Emacs
telling me that the headline text is subject to an overlay. Selecting
‘[Show]’ then reveals:

#("the headline text······························      0:17 "
  0 28 (fontified t face default :org-clock-minutes-default 17) 28 58
  (face shadow) 58 69 (face org-clock-overlay))

The mechanics behind this appear to be in org-clock-put-overlay, which,
however, doesn’t explicitly apply a '(face default) to the headline (it
is responsible for the appearance of the ‘shadow’ and
‘org-clock-overlay’ faces).

Org-clock-put-overlay calls org-overlay-display and further down
make-overlay (C code that I haven’t examined). Do they explain why the
default face is getting set? What has changed?

Best,
liv

Reply via email to