emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] org-emphasis-regexp-components [9.6.15 (release_9.6.15 @ /snap


From: Ihor Radchenko
Subject: Re: [BUG] org-emphasis-regexp-components [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.4/lisp/org/)]
Date: Wed, 07 Aug 2024 19:43:30 +0000

berchas <berchas@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

[Prev in Thread] Current Thread [Next in Thread]