From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CJwoGsLMoWUmRAAAkFu2QA (envelope-from ) for ; Sat, 13 Jan 2024 00:35:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GP5XFMLMoWVzXAAAe85BDQ (envelope-from ) for ; Sat, 13 Jan 2024 00:35:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=DL2erV5H; 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=1705102530; 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=9UaFNnaKKHkxWMAQXY1lrzbk95/Q9g9Z2ksEA9Z/1Tg=; b=l0HYl8pv3fOoD07OQ3VARyEVPh5WfD81C2cyg8kLoRwpRHH+4BeLYFPSt2UGhZ0k7ZMVWq AxKedrb/KJ8yA52g/X5HO53Yhm/A39gV8jIw63dts4hfEBOnm2K/GqG1V0LMiK+T8vG/gD 3OlqQlHOyu7JWBecn+rnU1jpo1CIRBpnoY3htC261s3648ORTacqsm426hguFhLToJr7sq GKnEl0wDgGdojiXGt8fzO+rTLcKtf/nH9iMjo8ORAnk1Yg+S09Mz3AFrSieArnvVzZT2HL SW/2kxGD4ZeIe+38Dz55kXVq4TCceq+jNoFBr4xB2S1vaLw7wtWwYfw4Evo8IQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=DL2erV5H; 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-Seal: i=1; s=key1; d=yhetil.org; t=1705102530; a=rsa-sha256; cv=none; b=qJXDMAbg7hXx6HnRVzYA/VwtRUbl0lBXIF2/by33JsIYxGqLRgGmMlQl9P6XVy42WCfGdG J8q1N90hVRYqLUK+eWmmZkgnuS+JoFrHrxc+JsfGKAFsjIAJ1LXpb96kVJMaAJd02iv7VU QolJ1eb+IoidlqqF1sZ1gIMi9daGBMNpsvmhSRzjhs+CaWK2vfImuTyoZmPbzibckM8cA8 rKr9/MlQtANssqr0/kMO+YnBVJ0q7d3u52zFZP316IgMOzTAbE6rhopDtKXJr9vyHjOwzf JF3dKCtEZR2guav6/wjknvsweKovbqWDKOEwD6t6Ni9fN4InkmknRyamIOimEg== 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 1795645954 for ; Sat, 13 Jan 2024 00:35:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOR2u-0003Zp-VT; Fri, 12 Jan 2024 18:34:40 -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 1rOR2t-0003WH-8Q for emacs-orgmode@gnu.org; Fri, 12 Jan 2024 18:34:39 -0500 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOR2r-0002w4-HG for emacs-orgmode@gnu.org; Fri, 12 Jan 2024 18:34:39 -0500 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3bbbd4d2b4aso5926417b6e.0 for ; Fri, 12 Jan 2024 15:34:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705102476; x=1705707276; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=9UaFNnaKKHkxWMAQXY1lrzbk95/Q9g9Z2ksEA9Z/1Tg=; b=DL2erV5HbapYyYcWpg1JsUXZs9tbRE2mH1+epLFkB3QUKVKJ9bk73RP7RwbJ3RtzvP 2g4LYD+bDUnokTaHZbXTnSw3tlhULQcj7lFanUtiH96rAC59t861iiQLTuGvzT9rPuSc Yuq/uvAylc6d2Gf1Kjo4cH6GF0+3w3xCdYtmIeSdRO/TisBl1XM1R/LhFRjJG4CkIEFz eG187FA25wuXdUgXRVF5lGVMFLJ25D2kQ/MSFs2cfuVacs8D7Bu/M98Z655aVmvZTGNM 3czeo+j/x8Az9OQR9+t5rU7NriL/CgRynavlSpTIH5xd0Ex8HSKP9n/XfIQ98rVCwNqX FJnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705102476; x=1705707276; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9UaFNnaKKHkxWMAQXY1lrzbk95/Q9g9Z2ksEA9Z/1Tg=; b=Ia+CUX4RQzFVAEHAeYVzTJoPooEDUxsOxsp/JTOYhY7Z5/Vxk7D2ipCt2OxNq3s1/y oI4nAQAa57XZeyY9+fEUaN1Roe2rBoVblJIcONzJ6iby0iMCkm8829XxFPwrWtIwkbBn 9rxWta5yHQAea60FNdkW3Tt2aEXlmRbbnTxbZQD9+hZyD+40h9+OLeqX3k2XHiussZ8A xPPWMEEeqqdl26c4kKTq4K+gJseePPmljReedc0a4nfvb+409lMi+3EZOAN60tx6B8uU uHS8ykOGAYAFGSdJxNvyhT6Y3ItTpwGbazDF2O9/Ygn7eAKP+MNVLjW49PaxX6gMqbvV OvtA== X-Gm-Message-State: AOJu0YxY85ZFZnWAzlEH1W/W8ELeUd13dsPXxqVXziYVYlc3fcnjOnLh bJMNyq7LuOQE0G1wKwwp+T/ZlOUxPiqJUA== X-Google-Smtp-Source: AGHT+IFg7cJXY8g6G6yKAYF6ZqcfOsAxe6QeKxGJ7JPwMINOYcJI8/CstgcA6nY13+H33dLjSeEFTA== X-Received: by 2002:a05:6808:1293:b0:3bc:2a75:3ca0 with SMTP id a19-20020a056808129300b003bc2a753ca0mr2222498oiw.111.1705102475698; Fri, 12 Jan 2024 15:34:35 -0800 (PST) Received: from pierrot.dokosmarshall.org (pool-74-104-158-46.bstnma.fios.verizon.net. [74.104.158.46]) by smtp.gmail.com with ESMTPSA id cb27-20020a05622a1f9b00b00429bdb1d705sm1777816qtb.1.2024.01.12.15.34.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 15:34:35 -0800 (PST) From: Nick Dokos X-Google-Original-From: Nick Dokos To: emacs-orgmode@gnu.org Subject: [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/)] Date: Fri, 12 Jan 2024 18:34:34 -0500 Message-ID: <87sf32ceid.fsf@pierrot.dokosmarshall.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=ndokos@gmail.com; helo=mail-oi1-x22e.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: 1795645954 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.63 X-Spam-Score: -5.63 X-TUID: YWWkV6uD3Ely Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ `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. ThHere is a semi-reasonable workaround in that the regexp matches the *last* semicolon, so we can add a semicolon at the end of the formula, specifying an empty format, but the formula is not truncated any longer. If it is decided that the code must not be changed, then maybe the workaround could be added to the documentation (perhaps as a footnote to section "Emacs Lisp forms as formulas"). This was reported by user `vfclists' on Emacs SE: https://emacs.stackexchange.com/questions/80062/is-it-because-this-org-table-formula-contains-double-quotes-it-doesnt-work Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-12-28 Package: Org mode version 9.7-pre (release_9.6.14-1019-g5092ec @ /home/nick/src/emacs/org/org-mode/lisp/) -- Nick