Subject: bug#50041: Add font-lock-doc-markup-face

From: Mattias Engdegård <[email-masked]>
Date: Fri, 13 Aug 2021 16:08:59 +0200

13 aug. 2021 kl. 15.08 skrev Eli Zaretskii <[email-masked]>:

> Which one of these justifies having these faces in font-lock.el, as
> opposed in markdown mode itself, or in rst.el?

All of them -- it's not primarily intended for editing whole texts in those formats (and modes) but for doc comments specific to each programming language. Fontifying those is done by the respective language mode, such as haskell-mode or java-mode.

Sorry if I was unclear on that point. I've made the NEWS entry a bit less ambiguous.

>  It is unusual to have
> mode-specific faces in a general-purpose Lisp file, let alone a
> preloaded one.

The face is not mode-specific. It's like font-lock-doc-face.

13 aug. 2021 kl. 14.15 skrev Lars Ingebrigtsen <[email-masked]>:

> Should have a :version.

Yes it should, thank you! Added.

Revised patch attached.