From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id OIqUK2neSWbMJQAAqHPOHw:P1 (envelope-from ) for ; Sun, 19 May 2024 13:11:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id OIqUK2neSWbMJQAAqHPOHw (envelope-from ) for ; Sun, 19 May 2024 13:11:37 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="qI/W2OsJ"; 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=1716117097; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=G5mhGI1tS8Jc+LQRhwraA1sdekBhp5aSpiMbg50JHGo=; b=VC0q+LsQABRkb6ziLeH/jnqFXmx7HCVsX8rYbVCJ4LnQ+shwNtGvZju1y3lCM6bN4QBc/r mI8fJXtdTTRVatHr8ukr9OnZjnRS0cOh5rkhAMX3LQZULE/sPrq2Q9eQWITctQQ+SbPcVx K5MPKV2gq68TbiJKt5hPqYieKNi4lXp0931Ky0251CTSrEx3gsp7WL/bOrtIgDiWsfi7WP MYZMk6tDamltJlCiBZwrMnDtXuyeWhZLYa1eOHBB7rLBXIOmIDH5WVFtzPiBBKAUKFFQQf teO8nSUxfzuN2tjbknBRB24SN82YCHZZHa+uzAOssjlf6AJJPY60B9s9jxroWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="qI/W2OsJ"; 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=1716117097; a=rsa-sha256; cv=none; b=Ncg8NCJQLRk7xg65eIMg7lUZBSOQpxa7j4h0KAO6RMeQ9zm5uqMValhJJQE1BEBSqVIAvN Uli9Q+N1fSI09jKBARo3JY+JuGn/2K5gO5VXPF7MBaGvLzY2Z4otKRRHJrYe+JOT5z05c5 hd4RD5sbRfdSXx1uWLgryN89nWVqBIMi4Ttkv58fE1eQIFTzMKKtuiYrx4hkU3JdgfTDkl 6yporgTwI3CB2sCSq2uEipuegGQBSaHGEwzhXmkFoAVnlMnxYXEGFNg3wL4GG9jHzmDwJV p9U5GHHNnS/jEBrjAkZ6N1kcP7WjY/lOAKKhehxy8BanEHkSDa4XVdHDXYl1yg== 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 8CBA71293A for ; Sun, 19 May 2024 13:11:37 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8eRI-0003aK-8v; Sun, 19 May 2024 07:10:52 -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 1s8eRG-0003aC-7C for emacs-orgmode@gnu.org; Sun, 19 May 2024 07:10:50 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8eRE-00048u-Ep for emacs-orgmode@gnu.org; Sun, 19 May 2024 07:10:49 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E355C240028 for ; Sun, 19 May 2024 13:10:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1716117044; bh=dgkYy0DtNnthK+mAMajtB3KrVoKR3XLoGKdu4eBIfls=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=qI/W2OsJ2fTTEqYsKOOp+aDeY3INEqejjCOZOCkmsvSYQczcmz+X7m7L303lNMo/P 4MZyLsYlBLpJT1x8frgh7HXXgjdLk2DbduQO9Tioci+h2l5etl58PuDl27ULX/DVia jRtIFpP8U088+EoxDJi0E2W21nf4la+bLz7fvaWB1yDQokGgqdNoM89XhI25moYaID HJct58IGPT3OnbYDB7sMGs4E2M2ESQj3WXLzurItYJ4GAcc+OMEbbieP9fFVdXU677 ZVPsPvv2h93S4lsKC14YvT8XeGtzzsr8NDqZMahVURYgx/cmXTEWNKyZLM+SsBCJFh O0t0lpAcPUOfg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Vhyfr3jhMz9rxK; Sun, 19 May 2024 13:10:44 +0200 (CEST) From: Ihor Radchenko To: Nick Dokos Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-table-eval-formula mishandles semicolons in formulas [9.7-pre (release_9.6.14-1019-g5092ec @ /home/nick/src/emacs/org/org-mode/lisp/)] In-Reply-To: <87ply5v1gj.fsf@localhost> References: <87sf32ceid.fsf@pierrot.dokosmarshall.org> <87ply5v1gj.fsf@localhost> Date: Sun, 19 May 2024 11:12:27 +0000 Message-ID: <87ttiu3vj8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.94 X-Spam-Score: -8.94 X-Migadu-Queue-Id: 8CBA71293A X-Migadu-Scanner: mx13.migadu.com X-TUID: 9tDNgo80Sg2E Ihor Radchenko writes: > Nick Dokos writes: > >> `org-table-eval-formula' interprets *any* semicolon in a formula as the >> beginning of a format specifier. So if the formula contains a literal >> semicolon that is not a format specifier >> >> #+TBLFM: $3='(concat "COMMENT ON public.layout_forms." $1 " IS " (rc-sq $2) ";") >> >> The problem is that `org-table-eval-formula' decides that the semicolon >> is the beginning of a format specifier very early in the function and >> splits off the "specifier" from the rest of the formula, leading to >> errors when the truncated formula is evaluated later. > > Confirmed. > Important. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5af062511 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at