From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qHgJKydfbWevNAAA62LTzQ:P1 (envelope-from ) for ; Thu, 26 Dec 2024 13:50:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qHgJKydfbWevNAAA62LTzQ (envelope-from ) for ; Thu, 26 Dec 2024 14:50:31 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BSzkIa2S; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735221030; 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=OzDShXsuqqSo31sBa16F9SN37gAAaPexkrmXRbbtsIg=; b=nk5qC7Jl1ADMwNT4hf/S7oU8NwPqJBa0TXLOGh7PTVN+31yEwQvuSa/6veRM3ZlKpPu6hf BQNbf+do7uHdxMfWaY6qONAK9sSngqBqx8tQ9WSel1jBr6Pti3ZMtRa5BLbPv2bX5uf61p RhtoIhJQyYCq77ysFmYLA5Uzzpfp1ugxpwzyhfkXFFHe6szKXhgycgVtT+kp7V7vM81oJA Q9WQLHLa3szYRT4vqYN1i0l75owoGlJSGTuDgdzvaWeVPMX468LKVpZf/PqbWblt1D1R9x dferi12muCakGqkQCLvHqajpEGPFnFhZalCpK7qkCzCb38Oj8xBXfRkEGNHNeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BSzkIa2S; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735221030; a=rsa-sha256; cv=none; b=TKwtZO07zATRdNEqjlIj+jm21QUKfCHU6E6lkppYtvSQKiBpy2AytbrUmxFXLYesghES6j ysYIz3d+kEAbWOKOjK5XSwrA5qwP+mJbhD8lOrzpGV0iriBohmbfDW+5nlG3fE73F3AAQE 0PeG59mggawqn4TrJV+WkhgLrxcrcMNoOXHsq6hTIDTffGg0xL6N3nl5MCS6uHF/e7TwMV RSaKJMP052wtMP1k4oIDZVgHYw7ZBhW8eoBilEwZ3Tp23Tc9d3VHoXTgruk3WPvSAt/g6M P9kK7hw+zODh3a8M/67JjmzM869v1fHw62SeKCecQbsuyAzNnmv/qo8xyrpeFg== 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 9AE485E0A3 for ; Thu, 26 Dec 2024 14:50:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQoFF-0004BG-P2; Thu, 26 Dec 2024 08:49:45 -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 1tQoFE-0004B2-Ey for emacs-orgmode@gnu.org; Thu, 26 Dec 2024 08:49:44 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQoFC-0001xg-D2 for emacs-orgmode@gnu.org; Thu, 26 Dec 2024 08:49:44 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E46A1240101 for ; Thu, 26 Dec 2024 14:49:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735220978; bh=AwMtpPG/T8jQEHy+/QHrrfhgTm1TexQ1jDa/0IPEZp0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=BSzkIa2SwUkDoWqtHPNb3nyxlPZibVKlImW/dv91Wkp59zul/mCcEzLJzi37GG5U4 Iw3DyU+pmAJBW6xFdByfPEZ/fEjLeTr8X+/jLYT0vzG8jOUE9eckJXjOYiVt2OrZOh vMEzbG/9E3fXOcVsIasF5NTV94Ln21bijFoCOMJX7O7Yf89EPPZoJXHGXFqK2pfgKt f8G1XLqMOw62dTh9DKlOC/Mivh1YcK+jtlcn+bOzlnwdKy/zM1y6kJ1uU0l1+yWlBU m7VcgpXnD26yLSvNOIDfj/LEaioEEIqoExSE7tmh82oRh6gp9oNi/UrR7ZfxpTyIVr WM2RpNX9zww/g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YJqkB005zz6tx2; Thu, 26 Dec 2024 14:49:37 +0100 (CET) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: emacs-orgmode@gnu.org Subject: Re: The less ambiguous math delimiters in tables In-Reply-To: References: <87ldw5igab.fsf@localhost> <87r05vy6xq.fsf@localhost> <87frmayfal.fsf@localhost> Date: Thu, 26 Dec 2024 13:51:08 +0000 Message-ID: <87h66q7dtf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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.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 X-Migadu-Queue-Id: 9AE485E0A3 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -2.59 X-Spam-Score: -2.59 X-TUID: Pcj4uLByCVMj Rudolf Adamkovi=C4=8D writes: >> Maybe, but it is also much more complex in terms of parser. >> Backtracking will introduce non-linear complexity to the parser, >> degrading the performance significantly. > > Is that so? I thought it is all about simple precedence rules. In this > case, once the parser finds the opening \(, it interprets everything as > LaTeX, until it finds the closing \). Yes, it is. Please check how Org parser works in `org-element--parse-elements' and `org-element--parse-objects'. >> We cannot change it at this point without breaking all the historical >> documents + third-party parsers. That's why I am talking about >> providing markup extension to address the issue rather than altering >> the existing parser fundamentals. > > It would only break the documents that have one-sided \( or \) in the > cells of the same column, no? And that is ... virtually never? In a theoretical case if we agree to what you are suggesting, it should not be just for tables. There are similar cases with other markup, like *foo =3D* *=3D bar* --=20 Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at