From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uM/SHVavj2PjFQAAbAwnHQ (envelope-from ) for ; Tue, 06 Dec 2022 22:08:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6OrnHFavj2PNBgAAG6o9tA (envelope-from ) for ; Tue, 06 Dec 2022 22:08:38 +0100 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 1FAA038A5E for ; Tue, 6 Dec 2022 22:08:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2fAK-00016q-1e; Tue, 06 Dec 2022 16:07:48 -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 1p2fAF-00014T-Sy for emacs-orgmode@gnu.org; Tue, 06 Dec 2022 16:07:45 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2fAD-0006k5-Sc for emacs-orgmode@gnu.org; Tue, 06 Dec 2022 16:07:43 -0500 Received: by mail-wm1-x331.google.com with SMTP id h8-20020a1c2108000000b003d1efd60b65so1851356wmh.0 for ; Tue, 06 Dec 2022 13:07:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:date:references:in-reply-to :subject:to:from:message-id:from:to:cc:subject:date:message-id :reply-to; bh=aPnm8nO6JwkHeZUyR+bZWoR+x41hAWv5Eggg+ChuLXQ=; b=azqhlge5whWQ4wPpwlxwxW9uiUWOPxmXxZHWrh1GlIWif9Xs86pjJEda2HmlbIaSDm nKhjKLuPDmTZN8WWANptH6iTqQp1WGqoaEYg6yaMqPckUN7533PXwEg2FYwL7rkkiuiY K4i/5AaiLfPle8jcSn40s501XXhrcZ2KwVasTa9TE7I1HY0om3f+eTTL9hmF6NjDXHfA KKY/+CrdwSNXci5exVjOKmKWRbdTq25KNd0G+A3pIy02EyJzlT6lNLpc0wDVzn7+zgha QlXB0Js7XpElEvh2C0+5hnEb/3HG8giA5LBBvjkqRa3FYGKN794AR/YUqvxZExL901+T cZsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:date:references:in-reply-to :subject:to:from:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=aPnm8nO6JwkHeZUyR+bZWoR+x41hAWv5Eggg+ChuLXQ=; b=0IKhWmFcMdsBmD2hRCKGUDKSP27pyeRtQJ4Ik588wAv5DdfnpIfeK4i2dt3U0+DJI7 Fuuwt5HGQCsWwrKr1nJY+I4nsLMoRuQIDBtgOK5RTjEHvlfc3Agcp6xXNVfdHitKxpzy k72R3vvn9b/k3HXOY3hvhVUb3ELxdgbS+pOH3AlwD4MoSUBFGsS82Zirwfe8auX3ieS4 Vzic7/pai1cipxE1tF+cE2MF4y5PPgA4RAxkD45gWtGGjlzt3UsTb10k9ittWhiKCTaZ ylbs83eqsrR2pCq6dwdA1ii2sGj/Z0w/wfgngnjuZBzS6Rg2LbKrAnl/qUXEkY0AKohg L/pw== X-Gm-Message-State: ANoB5pkc47kWNRIri1fRB+etXhCaoo+A6Jz4LuVfWHWaRiw83x9EcZuF pNPmzBwgXLHVepNBGGhj4uk= X-Google-Smtp-Source: AA0mqf6Q/kX0HhhtrlnOBPHLMfKwKUEEndsRn3QALMQsxR4JA+IC3bjOSd+LIZkWWnFHYKSv7BruEQ== X-Received: by 2002:a05:600c:4fc3:b0:3cf:7d3e:f985 with SMTP id o3-20020a05600c4fc300b003cf7d3ef985mr52862851wmq.7.1670360859641; Tue, 06 Dec 2022 13:07:39 -0800 (PST) Received: from tosh-laptop ([2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp.gmail.com with ESMTPSA id p33-20020a05600c1da100b003d070e45574sm23112057wms.11.2022.12.06.13.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 13:07:39 -0800 (PST) Message-ID: <638faf1b.050a0220.2bd96.904b@mx.google.com> Received: by tosh-laptop (sSMTP sendmail emulation); Tue, 06 Dec 2022 22:14:45 +0100 From: Bruno Barbier To: Julien Palard , "emacs-orgmode@gnu.org" Subject: Re: TBLFM trying to create an infinite number of lines In-Reply-To: <2zTa6DZP2X4XgNcATJ5SszRQPZRoFqQwKxMGTtl6-qtMw9ycjqbSRHmqjwXQRKwFHOPK-ThmFkYmOwu9Wf6JVvihTSHm7a2VIt3bgFJ2Exk=@palard.fr> References: <2zTa6DZP2X4XgNcATJ5SszRQPZRoFqQwKxMGTtl6-qtMw9ycjqbSRHmqjwXQRKwFHOPK-ThmFkYmOwu9Wf6JVvihTSHm7a2VIt3bgFJ2Exk=@palard.fr> Date: Tue, 06 Dec 2022 22:14:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x331.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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670360918; 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: 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=aPnm8nO6JwkHeZUyR+bZWoR+x41hAWv5Eggg+ChuLXQ=; b=FAwCkAKQLtuYe9KNd75312CQ5uJe/lTMfUtxSJ9sYRuEhavPh+8SS786KiBteWBoYlKIoU mcWWqq4n7D6UdVQ5LAqp53C1GhZCumqNQ4qXI90+UtqVNA4daP24x0TTzBX2w/XbtIjdOm JQufWv+YshcLCRgjUhZjVWRZVIZvDLWXl5p3GyJZRzu58FKvKuZv0eOB4ouAlMKAeffl9M 0Mz4XVMuvLpzKX9Y/8NkipUf7mo8vOAiafPpG983EinlMYSscxAJZoS/SR5TZDEQIa8SED pTVlM4DM6aWG5IngjCYcJ4rwyeupswhRZ3R6b2DcJz0kUG0rh0yuGD8gQuRopA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670360918; a=rsa-sha256; cv=none; b=L9OnOGIjHFg5ec0/gVRxofel2taCQUZ4swF4zr/mztJUe7IbMnIJGQm5MyXqIp0pQJUE/k FRP/68bb+m38MJEger4EOSZ0eRiVlXm1kMU7F2rIPhN8CRRCrVVfhtK3EEg2Im6URqj6UR HsuWZ7X+ZaH0ar8nYxIfGkwyrOLWq6ITkFFwx7K/QJc7L3J8h7SS4KCQvK/X02nkJGZsst z1BFhANnhO6jQ9WHv3YxTn+pz8PD6q4vMduSO7fnMygHWM467LYIbKmRNdQ36qzeKsq8gU FgY5SNkLs4SvjDhAYSnG1Khml4MsQbWoxiRsM+/WhNhxv6HZuoYiNEFi2GG8ew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=azqhlge5; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -9.77 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=azqhlge5; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 1FAA038A5E X-Spam-Score: -9.77 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6oSa6vbc+a3p Julien Palard writes: > Hi, > > I was playing with the idea of calling subprocesses from TBLFM (good idea= or not)... > > ...and found that: > > | | > #+TBLFM: $1=3D'(shell-command-to-string "echo 42") > > Tries to build an infinitly long table (I have to interrupt it with C-g). ... > Is that a bug or did I misunderstood something? Same here with 9.6-pre (release_9.5.5-1096-gf83e45). Like with: | |=20 #+TBLFM: $1=3D'(eval "\n") IIUC, the command "echo 42" outputs a newline, newlines are not allowed as in cell values. So a workaround would be to trim the output: | 42 | #+TBLFM: $1=3D'(string-trim (shell-command-to-string "echo 42")) But, you should report it as a bug: org should raise an error, not enter an infinite loop, generating an infinite amount of text. Bruno > > I'm using Org 9.5.5 on emacs 28.2 on Debian. > --=C2=A0 > [Julien Palard](https://mdk.fr)