* [BUG] org-emphasis-regexp-components [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.4/lisp/org/)]
@ 2024-08-07 10:47 berchas
2024-08-07 19:43 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: berchas @ 2024-08-07 10:47 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]
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. Do I misinterpret the
meaning of max newlines in org-emphasis-regexp-components?
KR, berchas
-----------------------------------------------------------------------
-
Emacs : GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version
3.24.20, cairo version 1.16.0)
of 2024-06-24
Package: Org mode version 9.6.15 (release_9.6.15 @
/snap/emacs/current/usr/share/emacs/29.4/lisp/org/)
[-- Attachment #2: Type: text/html, Size: 1443 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG] org-emphasis-regexp-components [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.4/lisp/org/)]
2024-08-07 10:47 [BUG] org-emphasis-regexp-components [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.4/lisp/org/)] berchas
@ 2024-08-07 19:43 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-08-07 19:43 UTC (permalink / raw)
To: berchas; +Cc: emacs-orgmode
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-07 19:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07 10:47 [BUG] org-emphasis-regexp-components [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.4/lisp/org/)] berchas
2024-08-07 19:43 ` Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).