all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [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

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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.