emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: berchas <berchas@mailbox.org>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87le18azkt.fsf@localhost> (raw)
In-Reply-To: <cdcb658300bea8f8b938aa0bbe2ec248cce3b76b.camel@mailbox.org>

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	other threads:[~2024-08-07 19:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=87le18azkt.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=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).