On 07/02/2023 17:47, Ihor Radchenko wrote:
Upon looking closer, `org-set-emph-re' is not affected by the value of
`org-emphasis-alist' with a single exception when the value is nil.
You are right, it is result of the following commit:
9fb2e047d 2016-12-08 09:44:26 +0100 Nicolas Goaziou: Split `org-emph-re'
and `org-verbatim-re'
I think that we should simply obsolete `org-emphasis-alist' and
introduce individual faces for emphasis.
I agree with your conclusions and proposal.
If you are close to merging fontification based on org-element then we
may just discard this patch. Otherwise it may be merged with minimal
modifications:
- Do not add the watcher
- Instead of `org-set-emph-re' use a lambda calling new
`org-emphasis-alist--check-value` as the :set attribute of `defcustom'.
- Fix description of verbatim tag.