From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id V0E7EmK8UGHS3QAAgWs5BA (envelope-from ) for ; Sun, 26 Sep 2021 20:30:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WKlBDWK8UGHgHwAAbx9fmQ (envelope-from ) for ; Sun, 26 Sep 2021 18:30:58 +0000 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 939EE82E7 for ; Sun, 26 Sep 2021 20:30:57 +0200 (CEST) Received: from localhost ([::1]:52302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUYvQ-0005eb-Jq for larch@yhetil.org; Sun, 26 Sep 2021 14:30:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUYu6-0005bw-8V for emacs-orgmode@gnu.org; Sun, 26 Sep 2021 14:29:34 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUYu4-00011r-8K for emacs-orgmode@gnu.org; Sun, 26 Sep 2021 14:29:33 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D0EE8240027 for ; Sun, 26 Sep 2021 20:29:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632680969; bh=QHSkUNRs+rPeMWmnZi72QP4qYYclv8Kn5QCsO91ZAig=; h=From:To:Cc:Subject:Date:From; b=ckdzm1fU0oWJ7glCnfuGgFQUaURPQMEu8EnqgwKByWseV+TJG3fNaFgeLxvcbZkjI +OqrYyiBPZEsG5GxNAbb+8CfqGrZ7yOcvWTMFAsNKF1vcp4tJNh5o/h5E76wf1qEVT tVmXkytAa7A5qN/pxnbo8JhfokQuFY2c6EiE5c73aFrv/JfIlhmTc/+czyOBZE9U2A TKmzR9x1htuf57e3Efcl8bREubRvs4mGqkRGr4Y4bOq4y8hMCr6QT8wc36yAwqP+7P +ByzEBNoc/z5/blRH1CezmhUXMHZAAqcTu2K/ZsjXbaL41h2eUNk0WzpfmNqrLPqYN Y0BU1wSp5BPbw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HHZ6x1NP8z9rxD; Sun, 26 Sep 2021 20:29:28 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: =?utf-8?Q?L=C3=A9o?= Ackermann , Timothy Subject: Re: [BUG] Conflict between org-emphasis and org-latex References: <87tui7cx5n.fsf@posteo.net> Date: Sun, 26 Sep 2021 18:29:28 +0000 In-Reply-To: (=?utf-8?Q?=22L=C3=A9o?= Ackermann"'s message of "Sun, 26 Sep 2021 18:57:14 +0200") Message-ID: <87ee9bchrr.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632681057; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=9dhR5LIgW8lOyR9VU61UXQytpenicWQrqnOLmJV9j4M=; b=o6QBu3ur4+lwbQQ5S4jVAbCRwKa9yIIoSPyuD11xuHAeeum6pw5a0MBIiyQ4JTa51TLlbd kS6vTaXylOQpu+DznTG8dSkZX5sBj20uM9tuYqKS0RTOBAWHiz07WTztHsRUmtvSen7kGl +vT/GF2StVjiyyHM2Bq73TJjjgmwxRE3VbUA2Ex9vHaMihfbyqayEH2lSuM3TbIm19KMsd 5XNs5etBhDST173gHzMXyKksHAptLHaZ7KjdY1I2Qk+HrhJrLeirTxg5s20yR3ZYHVqNkB wkTGq1xmbNsYf7+gEF5QewEvXTX8ZxBJHvmd0EtJSjqbL4eTGJOCvl1zwN2t8Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632681057; a=rsa-sha256; cv=none; b=q9j78c6L1otsoezILhfAupA/vLFVQxHHpxHz6+nQ2wd1AN957O7tVK+qO9lDX7ETBHyqVU 5KiaHdvZPTdvG8trbiehzXu8JYIy2tF3wU1Fr43m6Wjqxe5AU4RsJHUSASPGvBR1T11d2G /eNzEWQ/w5WKT2kBR811ki/uZWzvFGsoxpd8oiq5TrGZaZorsOFX5GorhtQ1drCYhJGcUj dqtrylkx1ohdbrxiXNxKaxbmOItvKXzkBWY8Mr9y7KeC9nZeC9i4fKfmNO2+sFNkq35vH2 h3QEoA7/nMLENG0ncf77zD3ERXrbICy99i7mGeD4Zg3ip8GED4RU/KTLeQ5EbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ckdzm1fU; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ckdzm1fU; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 939EE82E7 X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: lnlswj7w7PNP Hi L=C3=A9o and Timothy, L=C3=A9o Ackermann writes: > [...] > I think that this bug has been introduced recently (I > never noticed it before) I don't know if I'm pointing in the right direction, or I am missing something, but I would say that this is a problem (or consequence) of `org-emphasis-regexp-components'. According to the docstring, it is a list with five parts: ("-[:space:]('\"{" "-[:space:].,:!?;'\")}\\[" "[:space:]" "." ;; <<=3D=3D=3D=3D 15) where part 4, body-regexp, is: "A regexp like "." to match a body character. Don=E2=80=99t use non-shy groups here, and don=E2=80=99t allow newline here". Therefore, the segment "} and {" is fontized here as emphasis For a LaTeX fragment I think you can do: (setq org-highlight-latex-and-related 'script) According to the docstrip: Non-nil means highlight LaTeX related syntax in the buffer. When non-nil, the value should be a list containing any of the following symbols: =E2=80=98native=E2=80=99 Highlight LaTeX snippets and environments nati= vely. =E2=80=98latex=E2=80=99 Highlight LaTeX snippets and environments. =E2=80=98script=E2=80=99 Highlight subscript and superscript. =E2=80=98entities=E2=80=99 Highlight entities. Best regards, Juan Manuel