From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eLrXDnJ0s2bS3AAA62LTzQ:P1 (envelope-from ) for ; Wed, 07 Aug 2024 13:19:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eLrXDnJ0s2bS3AAA62LTzQ (envelope-from ) for ; Wed, 07 Aug 2024 15:19:46 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=tHq9AMvc; dmarc=pass (policy=reject) header.from=mailbox.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723036786; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NaX51wucrj2fT//xDvfaeCmFc3q2su727E92Ntsea3c=; b=S7abUdC8oAQ/yorgPgS1oE62ucmrzoP3LZHatxBXx1d17GWlUecZPB9/9mGhDuks+y6RXt bn3g/T207iSI44c/9YmdaUXoqU+ZLPNLsLrqgdZ+91e8LrO6cjEezeiCIlKF25WTyXGLhR Nkadq+5q1a35sFH1ZijzV9DZfoySzMjP8DflEc4VAYa3etQ3xS5OCh6PNjfX7n314teYZw Gpapx/5oKvToBr/86JRc6c/MssA2V22CFcTjGmbZr1YbLF3e5NA4uW0Bejbs2AtS0Sfw1j xdH6CaXz0keb5cnU7NeQVPmwIpHpDU8J14vyXHiIdlEiG3GSQN99zm6i3o0F0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723036786; a=rsa-sha256; cv=none; b=jQv8Ks4Qf4GuVUaL8t+cZ8DlqWVjY3l1GuV63Elo83Vy5W8GA8zGLRFG6V/NhD3RBB7scW hmLc9y6gelzLrDajhfVZ4yCOxChIDzpA4cki5hXGFsUUSOKGdqqJbrxJK05GjKYEyWGoBF 6E9KksC239ViFJrwWGYtN19bjBfqfsgvKjYVP9lxJEcMuGSmW7GLl7XR3sI4MBCx7Glmuf hZZ9gtwkDeBVrA/bRggldhjYsGAzAY6bX8YD/ToHocoCMxbldgkaUe+FsgRMXF9Kp09Jrp x/s3CTOw2XaI20OtdQeEcS24IDnthBHkSJzLgi8bjD3aeOYyLE0qV6cfNm4WhQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=tHq9AMvc; dmarc=pass (policy=reject) header.from=mailbox.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 88B02CFF0 for ; Wed, 07 Aug 2024 15:19:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbgZ0-0002Du-Kn; Wed, 07 Aug 2024 09:18:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sbeCT-0003Ac-VJ for emacs-orgmode@gnu.org; Wed, 07 Aug 2024 06:47:26 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sbeCQ-0002nH-Gl for emacs-orgmode@gnu.org; Wed, 07 Aug 2024 06:47:25 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4Wf6Lm6qxyz9tWh for ; Wed, 7 Aug 2024 12:47:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1723027633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=NaX51wucrj2fT//xDvfaeCmFc3q2su727E92Ntsea3c=; b=tHq9AMvcB396SzUmIU+PpM80vllc2QtpctnfQ8m0kUzoSuAeGdMqDiB1GWxL1/jbD5JDKO raGJgNqXi4goFOD2m75e9FGFxGJBBYLCmLjnsl0DwpdSkSfKJHs33exCKVkGvNKowYyR8a n8gQXf4MdZ+9XHTACG4dQwntnZyHWT5lH3XvRxPnsO2ZPJpJMoRGdwQwAz7SZOMdf/ChA1 kQ6IeioLdh6Nu/OXaphyWyCyhm5vEz2JAv24Vqpi7K250O3Q/Sk5o82ODakq6fTBY2sXDy UQc8Qgf+C/YLGephekIqukTEt5MPc5n+drleHFcTiBgii26smaV94zCN2Jymyg== Message-ID: Subject: [BUG] org-emphasis-regexp-components [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.4/lisp/org/)] From: berchas To: emacs-orgmode@gnu.org Date: Wed, 07 Aug 2024 12:47:11 +0200 Content-Type: multipart/alternative; boundary="=-nsf2f14Gj6HPQX/zqx5s" MIME-Version: 1.0 X-MBO-RS-ID: 5ec02d8b409f88be5df X-MBO-RS-META: ae6phgcazcoxskonhpntecj15tg75drb Received-SPF: pass client-ip=2001:67c:2050:0:465::202; envelope-from=berchas@mailbox.org; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 07 Aug 2024 09:18:48 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.01 X-Spam-Score: -7.01 X-Migadu-Queue-Id: 88B02CFF0 X-Migadu-Scanner: mx11.migadu.com X-TUID: lP3D46VrMURk --=-nsf2f14Gj6HPQX/zqx5s Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:=20 *jk j* *jk j*=20 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.=C2=A0 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?=20 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/) --=-nsf2f14Gj6HPQX/zqx5s Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
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 bo= ld:

*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-regex= p-components)

This works. 
However,= now the first expressions does not appear in bold
either. Only s= ingle words without any spaces like *jk* still appear in
bold. Se= ntences do not appear in bold anymore. Do I misinterpret the
mean= ing 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/)

--=-nsf2f14Gj6HPQX/zqx5s--