From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sKSqLfHLXmDWJAEAgWs5BA (envelope-from ) for ; Sat, 27 Mar 2021 07:08:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QK91J/HLXmCsGQAAB5/wlQ (envelope-from ) for ; Sat, 27 Mar 2021 06:08:49 +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 2BE5420EC3 for ; Sat, 27 Mar 2021 07:08:49 +0100 (CET) Received: from localhost ([::1]:49310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQ27s-0002Vt-82 for larch@yhetil.org; Sat, 27 Mar 2021 02:08:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQ279-0002Sr-00 for emacs-orgmode@gnu.org; Sat, 27 Mar 2021 02:08:03 -0400 Received: from out1.migadu.com ([2001:41d0:2:863f::]:17712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQ276-0003P9-JF for emacs-orgmode@gnu.org; Sat, 27 Mar 2021 02:08:02 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1616825276; h=from:from: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; bh=Gfhn0zgiuPfNp0VAcVT5v2cHRIeuf4ctYns9vVuP1kE=; b=TaiZFTFz93sQ7vf8ht/qyFwNYGK7uB6fDTzMJAr+/zoLBErWSxdh1SAgAmDf8TPBU5Y9Sk beKrGK1MhORVeEYQhfihMcgTwwU/2p0Hn0c8AryHqPgs/I2ybJYMBRK3jvoiiWtnYSjhOW WNuuXYLYMf2Z8Z+82PdV95Hea+2tzRt1kaQ/Xl0qXGTOdWWczaHnIjfOZ85gSUxCWnnkop F8D9tu1p/GrtEKMOtQM5ZqYWnevC1PV7LBeCQH1atPAlpNlN7hxyYOOWZlcDQ3TxdydPzA sXf4KMcc6cllnNqWS91NTi8C/JlHDV6qC4UX4d4Y3Oi8GzGf9SmPDGXUEEHXXQ== From: Kyle Meyer To: sebastien.miquel@posteo.eu Subject: Re: [PATCH] org.el (org-do-latex-and-related): Fix duplicate 'latex-and-related faces In-Reply-To: <7447ad40-4711-bd04-79d8-0a5bad199938@posteo.eu> References: <580b0b82-798f-0b82-aaf7-67015aae1c6c@posteo.eu> <87czvnuacs.fsf@kyleam.com> <7447ad40-4711-bd04-79d8-0a5bad199938@posteo.eu> X-Woof-Patch: applied Date: Sat, 27 Mar 2021 02:07:44 -0400 Message-ID: <875z1djfin.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=kyle@kyleam.com; helo=out1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: emacs-orgmode@gnu.org 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=1616825329; 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=Gfhn0zgiuPfNp0VAcVT5v2cHRIeuf4ctYns9vVuP1kE=; b=qaUBw6LCVjTXYIvy7QsNfsBqCOO7wnPZ2JIZkcu1grmCqMtmiFouqCQm5cn87DwzQf1IJJ Euo74uoHb4r8YMW9Vvert8ZKI0kIbs4xc5paFuzihNgaApsBzWQiTMu50ud0vKMAeIMyAG rvfOYYe76b90tneFOZpy4qlri9ibIl+Nc58LJdCS/DYg4zA1gXktsaHzjUY1FhvGpUmIHL 5V3fNu8tDgAgjuI3OLyV2DbwG1vSgdf68Utuab4IDfiasdMU7JONnrz7Ae5AvZJIy8nj1N tWUop/DVm47jpi4FGmLpGAhwZKjop1Ex7cHaz6diDM0NX+eIu/EVxcGv4RJ9AQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616825329; a=rsa-sha256; cv=none; b=msNGKXmrYfW5v1MGlWpqJEjt6LVyltJaQGIFOq38ginv0kKEUMO5BOZckQ0XlwCMt2rrqp 94FmDNfoisp9zUWuUUN9lpngeZqJsw9FdEL+pWa7vkSvCWMfwJDLFs2njG7+AzXcqrINj6 TUDcv2DdkMAyQmgmV+xDdONQ/UDHQdQ3MMXK9tKuM0U79fB2JjhCjjcxdfiKGvFJRrxHfx ql1enLYrBFlPk8VbyDPFCit6/ysr7KZ86nCG0OtFjZxOaskJpaX23q7o+7AarYkbIlNEDC mfQYDcyLGkqOKSAnXvzFHS4Sk+Jn6/KUDc3jh5wmgMroT/YxBqSWQ5I2tR1rxg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=TaiZFTFz; dmarc=none; 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: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=TaiZFTFz; dmarc=none; 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: 2BE5420EC3 X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZZl45LspK55M S=C3=A9bastien Miquel writes: > I've looked at the history of this code, and some earlier comment > indicated that limit was ignored on purpose. Thanks for digging. LIMIT was dropped from the re-search-forward call in 80268c0e0 (Fix fontification of LaTeX environments, 2019-01-01), with the addition of the now-removed comment you mention. The related thread is https://orgmode.org/list/CAELgYhdcW1XnR7BTmos6vAF_YPJ4Wdp=3D3FEAhBEYfeA4B2n= vSw@mail.gmail.com/T/#u I'm not sure about that change, but either way I think it's a good reason to stick with your proposed approach. Pushed (36622362d). Thanks.