From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 EFGfDjzJYGM+/wAAbAwnHQ (envelope-from ) for ; Tue, 01 Nov 2022 08:22:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6GxWDjzJYGMQtAAAauVa8A (envelope-from ) for ; Tue, 01 Nov 2022 08:22:36 +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 BB48D38E33 for ; Tue, 1 Nov 2022 08:22:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oplai-0004wG-NT; Tue, 01 Nov 2022 03:21:44 -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 1oplag-0004vi-Ep for emacs-orgmode@gnu.org; Tue, 01 Nov 2022 03:21:42 -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 1oplad-0005x3-JM for emacs-orgmode@gnu.org; Tue, 01 Nov 2022 03:21:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7992F240028 for ; Tue, 1 Nov 2022 08:21:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667287297; bh=TikU4Q0otxwxFDP3pXr9XdE7ZgjYha6CkaJnnj7olAo=; h=From:To:Cc:Subject:Date:From; b=Qm1Nc+bDHiu0K4YQT6aYiYcZZA73cWmL2R7ygPQKWRES6HbMe0QcRm+DZIEWoqs0s btkZAQsi6hK/fkssGP9koC3QeZ4KAA3NePLHEcw/zXX6zX0kCp9W0fB5l09ZzpgABb aJF9TdqzVuWD2MvwDOmUEalM+dLQfEa4wuKUBOJqTE2+May9g8FXJJRv0Atc+ZBau4 1k5pq2ybNXuVilWYzDEiQ3m30xcdQk/Uszx1u/xmMKymh9Dys8Gg3KAud7Q1jFSto7 mKn6KWbrhblNeasPGDETM7J375Ub2rg+BhzIPgbpn1GzASmZgOJcu3LKvQHOw9RKMk wTJjdwlrDRbfg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N1hKD1BYkz9rxB; Tue, 1 Nov 2022 08:21:35 +0100 (CET) From: Ihor Radchenko To: "Fraga, Eric" , Tom Gillespie Cc: Ypo , Org-mode Subject: Re: LIterate programming with calc (help) In-Reply-To: <87tu3kb9ol.fsf@ucl.ac.uk> References: <871qqojqis.fsf@localhost> <87tu3kb9ol.fsf@ucl.ac.uk> Date: Tue, 01 Nov 2022 07:22:18 +0000 Message-ID: <87sfj3i1g5.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, 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org+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=1667287355; 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=3Ch8OeuZGx105ApyEb2L8w9WGxvzd2uqG8MoRlBHmDE=; b=FCQgG9GDWc/yO2ekIWRbP9eMwannHm3CqLNk0SzlMMSUmDU9T3lSbf2a8UTuwFcAKJ/8s8 epKT1XIKi0ud+mA2T/HL/nrvPxnoDM2G/bpytno+wC7vYb1b6OV4eojkR9xoWxQJr8IZN4 +ZxJ8347tahsUI+OE6h3h6Jpkt88Dt8Yk7GtjtBC0DZNvbi5zV8iJNuXTUqH+xO3zsCz0e 2wMyeKZ0Wrnow36oPk6fJvHf7p7OtBcTx/F4OaRMet6Shvl2f+dKGHsojYJNjZVnFAtxET jP3y2v24/a4kRk6rC059BsjnEQoevsxfTcdGxvo0nShCVWhBSMWJwI0WJh7gWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667287355; a=rsa-sha256; cv=none; b=phIW4CUc4ip3mYGMs+s8RGrIf5x9tRnrTfmVEsbeHON1JDipYcyTvike9M996qXXcevnZK ZH21sCz0Olm2qsPb/4/MRlG78Ofx4hYJP1Qgk28lkqqFC/o5bLWNIPYkIBXVAm2qd1qmM3 rk4wVZ0YlHHl9ZjY14D6LRfRdLfjDZ6jA3crWD5OQpnzOBzGzOJc+J42ZbcbBTQHGJTIHq kMdGKF0uHqk+UZ0P5Y1AYHtbaebkeBpwofmEdjaA5jfZS45OZB6PDSn7f/jszeHvhS1vax MC6/Dj09rwajaiYsm024BxK3zRCRHWoZvwubzXOoRKODd3SzR4M4UIdilebkTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Qm1Nc+bD; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.97 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Qm1Nc+bD; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BB48D38E33 X-Spam-Score: -1.97 X-Migadu-Scanner: scn1.migadu.com X-TUID: juug1F31cslv "Fraga, Eric" writes: >> I guess that the main problem is that calc is tightly integrated with >> interactive commands. Maybe ob-calc could be extended to somehow >> indicate the commands to be executed in addition to inputting stack >> entries. >> >> Not sure if there is much interest in such feature though. > > Thinking out loud, what would be better, but I have no idea how feasible > it would be, would be to have ob-calc make use of the embedded calc > functionality and syntax, so that you could write something like this: > > #+begin_src calc > a := 300 m > b := 2 a => > #+end_src > > which would output the result of any line with => on it. I am CCing Tom Gillespie, the maintainer of ob-calc. Maybe he has something to say. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at