DEBRY.Edouard <edouard.de...@mbda-systems.com> writes: > I mean that all custom set faces disappear, just try, if it works for > you i am interested
I see. FYI, you can try to run M-x font-lock-debug-fontify to identify the problem. The issue you are seeing is because org-element-at-point alters match data and thus your (match-beginning 1) are not returning what you expect (they return nil). Best, Ihor