From: berchas <berchas@mailbox.org>
To: emacs-orgmode@gnu.org
Subject: [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 12:47:11 +0200 [thread overview]
Message-ID: <cdcb658300bea8f8b938aa0bbe2ec248cce3b76b.camel@mailbox.org> (raw)
[-- 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 --]
next reply other threads:[~2024-08-07 13:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-07 10:47 berchas [this message]
2024-08-07 19:43 ` [BUG] org-emphasis-regexp-components [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.4/lisp/org/)] Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cdcb658300bea8f8b938aa0bbe2ec248cce3b76b.camel@mailbox.org \
--to=berchas@mailbox.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).