From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CEnBKSfU7GNlTAEAbAwnHQ (envelope-from ) for ; Wed, 15 Feb 2023 13:46:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KA7JKCfU7GMJVQEAG6o9tA (envelope-from ) for ; Wed, 15 Feb 2023 13:46:31 +0100 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 59EA2839E for ; Wed, 15 Feb 2023 13:46:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSHAU-0005Cc-Tl; Wed, 15 Feb 2023 07:45:50 -0500 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 1pRrOR-0001WY-8V for emacs-orgmode@gnu.org; Tue, 14 Feb 2023 04:14:31 -0500 Received: from mail-vk1-xa41.google.com ([2607:f8b0:4864:20::a41]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRrOP-0002AD-IS for emacs-orgmode@gnu.org; Tue, 14 Feb 2023 04:14:30 -0500 Received: by mail-vk1-xa41.google.com with SMTP id i4so2974311vkn.13 for ; Tue, 14 Feb 2023 01:14:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=umN8pFBm91OP+I0cEwri67qVrVdKMD9D6+u4fAbMohs=; b=Xw47ZMm42Lsum+6XbCp6shvYhERtavElshqqubugI0mBO//JDFQxngb5+1BChQBX3X Oc/pUgsK0YUzMiUyTyPxJrUN13ndux1aYg22FYnXXbzhqjvhKYu+uVVAjmTch3He6o+B tpjlTQiCjdaEMoXCQtvf1luZUrbZO0Vp3olKCrDZpOqI+SJ2y+yj+vvCE9D1MNn3Zg61 VNg4oCNhgtTfOXXIhHaqYkIORMsAcjRc/TkqCegpgrCHaOQoyFgJ+75CwpCGvajwoO2Z Y10vQsgJPCn/mV0KgJd/2NTkBIM5LCKNs0FZumIXeiBjF07SZ86GD/ZoMCyyNAIhIES7 YSzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=umN8pFBm91OP+I0cEwri67qVrVdKMD9D6+u4fAbMohs=; b=FbhpOH7VKrCuNR9dedj52P4eyGcVghi/s1mX8ylwA7Cppy5oLSOkI9aqrjumuHIlZk IgZFqhtSniSAYpyXF38SRllHCTKY9Sr//7xpBRKu8qYRIvLOGCjwlWroR4MpkhAn2Jqg cLOjE+ePjQfDX/n9iI4hlDoDrr+76YBFEGfl0/SEhF7SizUHjAAhZi/v3AN3g1YtQP3h +DVTrhcgXgn4FpAC4PElg5V3roEbRa1iUM00SKVs8wk8IZW9KXgOwujm+sVSIZYacuN+ 3PNucsgJ8Wylcbuyiv163TJEvI5n6Z3mz8/h33C1QreT/LFM1j2AJ3SD7Axc4w9mAOO+ K9og== X-Gm-Message-State: AO0yUKV8Bk3MeVWwSPm0St1quOLGcrC0j3h51TY8BsQQChJ5ktrga70l 33xqZNdXTQ7H7yhSvtO+dU74rDWI4oCayhEBgr1lBKVJp/QTGLuWepQ= X-Google-Smtp-Source: AK7set+UWiX/2Fixx/ohpIp35rNk/RTFLgsQSq0LNY4lpjtPBJM4hkJtNoLa6BLfsaG4CFUWBOEUVgFr+jBe05emfeY= X-Received: by 2002:a1f:1b4c:0:b0:3d8:d753:56bb with SMTP id b73-20020a1f1b4c000000b003d8d75356bbmr246394vkb.39.1676366066563; Tue, 14 Feb 2023 01:14:26 -0800 (PST) MIME-Version: 1.0 From: User Name Date: Tue, 14 Feb 2023 01:14:46 -0800 Message-ID: Subject: Emphasis issues with special blocks and latex To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000e9408405f4a563d8" Received-SPF: pass client-ip=2607:f8b0:4864:20::a41; envelope-from=name58564@gmail.com; helo=mail-vk1-xa41.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 15 Feb 2023 07:45:42 -0500 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676465191; a=rsa-sha256; cv=none; b=mJxEdwn0CtmHTD2sm78u4/gl84r7NrUp+agC6Kxsl8mvVh9kCxjWU2i/4j5OmoJOrnKu6D TTIfb1X6D/87TZoGDeK2yXYf2xuEZ2l3OfwpLV/cGDEkQLxExcAfOysq4xU6MQhY7wbRno g6NWGaL0wRb1ryr0itaAd1VGBkKOTJI9ouzoQk9SxLFNOHToXyTGOVDSe/GEIGl3dPeNUP SaeXTx3ypD+SAK1HkbnEPgz5Ywx0SN5XRLjRdw+NLpG0aWsea2IiK9/AJ0On8/VYFDgOSe SapGNjO8fQxRBCmcToKHwswoc7pDdSsHpCjdQR4EFsMJNXsvJkNU4xC7IQ3Dog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Xw47ZMm4; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676465191; 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=umN8pFBm91OP+I0cEwri67qVrVdKMD9D6+u4fAbMohs=; b=j5BMLmAvv1j4pnsfaOdus5RDuIUEXznEHFUh3E8UF4Q7KiXbH87TJURsVM8wS9aT2mNOwf FSBnwuqAnFwZpVfBT71BI/v5V4LEx2xZCdUrsbYxJucXq8JbbUzCbbdJfHmFtBTWVaKbYf f/cUamPxUBKy8W138l1r+JbYDaDJ94PJyCo4LGMo5aysxWbQC83U+Szbvzcj55/7Vg/Wks zTupFhDOxMGRmc5Viuvv2SEdicG0M5oz5hGvoOCjTgiVcSpzTJzt/8npJgQd6w+3lXVf3c m6BFGSH0ZhG15LT7fmaO8OZ2NkS/CD/lH63wRFJwJprPqerItbPgpYC5OKV7rQ== X-Migadu-Spam-Score: -5.32 X-Spam-Score: -5.32 X-Migadu-Queue-Id: 59EA2839E X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Xw47ZMm4; 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"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: 88qHnsFc+RhL --000000000000e9408405f4a563d8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am having several issues with the fontification of emphasis markers in org-special-blocks and inside latex equations in my org-files. I have changed `org-emphasis-regexp-components` to be the following... ``` (with-eval-after-load 'org (setcar org-emphasis-regexp-components "\t('\"{[:alpha:]:-=E2=80=9C=E2= =80=9D\[\\") ;; chars for prematch (setcar (nthcdr 1 org-emphasis-regexp-components) "\][:alpha:]-_^[:space:]:\t.,!?;''=E2=80=9C=E2=80=9D\")}/\\=E2=80=9C=E2=80= =9D") ;; chars for postmatch (setcar (nthcdr 2 org-emphasis-regexp-components) "\\\\\t\r\n,\"") ;; forbidden chars (setcar (nthcdr 3 org-emphasis-regexp-components) ".") ;; body (setcar (nthcdr 4 org-emphasis-regexp-components) 5) ;; max newlines (org-set-emph-re 'org-emphasis-regexp-components org-emphasis-regexp-components)) ``` I would like to be able to intersperse emphasis markers inside of strings, which is why I included alphabetical characters for pre and post-match. I'd like to be able to have *w*or*d* only bold the w & the d if possible, and to be able to use backslashes between emphasized words (eg. ideally =3Dthis=3D/d *be* /so//*cool*! should codify "this", italicize /so/, and bo= ld "cool*). The main issue I get is that special-block metalines seem to get font-locked (eg. `#+begin_theorem` becomes `#+begintheorem` and the metalines themselves seem to cause the underlining of the contents within the block. Inside latex equations, I end up with fontlocking if I don't include spaces between underscores, pluses, minuses, or equal signs. I am wondering if there is a way to fix this by adding more forbidden characters (ie. forbid `#+begin_`, and `#+attr_latex` from being or causing emphasis, and forbid emphasis between $$ $$, \begin{} \end{}, \( \), \[ \], $ $) or possibly to include look-around using visual-regexp-sterioids.el. Thanks in advance. --000000000000e9408405f4a563d8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am having several issues with the fontification of empha= sis markers in org-special-blocks and inside latex equations in my org-file= s.=C2=A0

I have changed `org-emphasis-regexp-components`= to be the following...

```
=C2=A0 (with= -eval-after-load 'org
=C2=A0 =C2=A0 (setcar org-emphasis-regexp-comp= onents "\t('\"{[:alpha:]:-=E2=80=9C=E2=80=9D\[\\") ;; ch= ars for prematch
=C2=A0 =C2=A0 (setcar (nthcdr 1 org-emphasis-regexp-co= mponents) "\][:alpha:]-_^[:space:]:\t.,!?;''=E2=80=9C=E2=80=9D= \")}/\\=E2=80=9C=E2=80=9D") ;; chars for postmatch
=C2=A0 =C2= =A0 (setcar (nthcdr 2 org-emphasis-regexp-components) "\\\\\t\r\n,\&qu= ot;") ;; forbidden chars
=C2=A0 =C2=A0 (setcar (nthcdr 3 org-emphas= is-regexp-components) ".") ;; body
=C2=A0 =C2=A0 (setcar (nthc= dr 4 org-emphasis-regexp-components) 5) ;; max newlines
=C2=A0 =C2=A0 (o= rg-set-emph-re 'org-emphasis-regexp-components org-emphasis-regexp-comp= onents))
```

I would like to be able to = intersperse emphasis markers inside of strings, which is why I included alp= habetical characters=C2=A0for pre and post-match. I'd like to be able t= o have *w*or*d* only bold the w & the d if possible, and to be able to = use backslashes between emphasized words (eg. ideally =3Dthis=3D/d *be* /so= //*cool*! should codify "this", italicize /so/, and bold "co= ol*).=C2=A0

The main issue I get is that special-b= lock metalines seem to get font-locked (eg. `#+begin_theorem` becomes `#+be= gintheorem` and the metalines themselves seem to cause the underlining of t= he contents=C2=A0within the block. Inside latex equations, I end up with fo= ntlocking if I don't include spaces between underscores, pluses, minuse= s, or equal signs. I am wondering if there is a way to fix this by adding m= ore forbidden characters (ie. forbid `#+begin_`, and `#+attr_latex` from be= ing or causing emphasis, and forbid emphasis between $$ $$, \begin{} \end{}= , \( \), \[ \], $ $) or possibly to include look-around using visual-regexp= -sterioids.el.=C2=A0

Thanks in advance.
--000000000000e9408405f4a563d8--