berchas <berc...@mailbox.org> writes:

> Desired behaviour: emphasis markers that only work within a
> paragraph (sentences without a line break). In the following example,
> only the
> first expression should appear in bold: 
>
> *jk j*
>
> *jk
> j* 
>
>
> So I set the maximum new lines to zero in org-emphasis-regexp-
> components (instead of the default of 1):
>
> (setcar (last org-emphasis-regexp-components) 0)
> (org-set-emph-re 'org-emphasis-regexp-components org-emphasis-regexp-
> components)
>
> This works. 
> However, now the first expressions does not appear in bold
> either. Only single words without any spaces like *jk* still appear in
> bold. Sentences do not appear in bold anymore.

Confirmed.  To be re-considered after new font-lock code.

> ... Do I misinterpret the
> meaning of max newlines in org-emphasis-regexp-components? 

`org-emphasis-regexp-components' is not a user customization.
I do not recommend using it.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to