From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms98 with LMTPS id +KaQKr6yil4lFAAAGDD2mg (envelope-from ) for ; Mon, 06 Apr 2020 04:40:30 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4IidDb6yil5oDAAA1q6Kng (envelope-from ) for ; Mon, 06 Apr 2020 04:40:30 +0000 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 aspmx2.migadu.com (Postfix) with ESMTPS id 4B62F682044 for ; Mon, 6 Apr 2020 04:40:22 +0000 (UTC) Received: from localhost ([::1]:54536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLJYZ-0007So-Mf for larch@yhetil.org; Mon, 06 Apr 2020 00:40:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40519) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLJYA-0007SU-R4 for emacs-orgmode@gnu.org; Mon, 06 Apr 2020 00:39:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLJY9-00077K-Ur for emacs-orgmode@gnu.org; Mon, 06 Apr 2020 00:39:54 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:48365) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLJY9-00076j-MW for emacs-orgmode@gnu.org; Mon, 06 Apr 2020 00:39:53 -0400 Received: from mail.home.webbedtables.de ([178.2.225.23]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MdeOl-1imFqY1lmj-00ZgFi for ; Mon, 06 Apr 2020 06:39:51 +0200 Received: from [192.168.2.21] (cheetah2.fritz.box [192.168.2.21]) by mail.home.webbedtables.de (Postfix) with ESMTP id A9BB783B5D for ; Mon, 6 Apr 2020 06:39:50 +0200 (CEST) Subject: Re: ob-calc duplicate stack-element issue To: emacs-orgmode@gnu.org References: <9eed12f5-face-eb4f-4006-e8ee7890e0a9@webbedtables.de> <84fte5lnyd.fsf@gmail.com> <87fte57jd2.fsf@ucl.ac.uk> From: Heiko Schmidt Message-ID: <9a691eff-c794-18ca-b68f-e3d2d0b8f488@webbedtables.de> Date: Mon, 6 Apr 2020 06:39:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <87fte57jd2.fsf@ucl.ac.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: de-DE X-Provags-ID: V03:K1:bdiLjzYXSdAtsp6dbr+MGCn1eYAxqlPnZ88rFzlRsjNJSa9H1zK jzLMwewwGj07D5+h3Cu6mP2fCVtf9pVxnR45UOhMUoHaYhWoW41hmqcc0vYFMn5xN/U/8Kb 79n99p3prOALgX5IvuUiya4YW90SLA+7Xiw5W1dm8fX4IFauvctiusN7VIximLC52Z+QEdP qV/rjo15gEG8TbMMdk2vg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Hs2v3NLNJg8=:WZt8p0NW6wbUgEJKUd3WV6 PUwP9ACQkkGDge090omj3mZhARYDu7LyALwNYzh72WTBd0Rc8RZ2ACcwMq6/3gQk5KZlXkwRS 6C9HpofBpXP3QY82PrMOVlidfgjNXAR6smHDD50trUr9mGhJaDfcKqMY9VjsH5DpJBHUUMhJh 7x2EgRxdyG9CaavpAKRS3UDQjB0KO402lzCjY/j9jv3h6eZwk9QHu7WGy3stqyUHlOckCXnTc w6B+xbeHxIeRfMAkqv8s13OQGKGdspbQdaphWv1LwrgTfEafQfn+7DuRxMGCdEcYia1KxDVOp 0ISCQ23DuWJDbW6cxThLYWKNecMB0yVNVVpPI+JU8N5lRgU3JE7QzC6KF83gUqZgO0+Feh5F7 is5Ax8VUWXFx0pIUX00KgXsepWs19o5hrwMTRJPM9D0dUIwqoS4g0kxWRJvZ2devKxtpqmDcJ /D0AZrjj7fcutKsOwAN6jvYch6HiTRIpyu7XQ238Qd/h1uR0HCYUJxK+Hj6ch5OkSUKmrEJSp XOn4i81ZEWVO9AHajNZ5FKdZg2AOZ1yEGLnpznRxIk0Y44LhyHrU47/mKqBK7mzYMA7neCKQm UVOJhyqgXpGsNF0D7M7XDtt4FASk9k7bhc+18+BFklol2V+6+wGL+eX2s0tGNcsC8lnv1sIco 0Yrl0hy0L9nnOQd3rQGHVPUlvm7u/D6EiH53nNf8doVLH7HMxsFSEYXmuSIUkzdwfiJn8tfaN 7IEEh9nOh/9epgo2m7E6Ici+KaOw3eH0AVnm1HmZRETB6ynkje+6cudPj6ve3OLsSIiRuEvpf MesLjwQnu8CWnSVSCyN37eMYqSzwZ5uTn2xCoH+cK4Ra1lTSlnNMTZBW6HartW2ZL2sPvsS X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.73 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Scanner: scn0 X-Spam-Score: 1.79 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx2.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [1.79 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.58431479045379]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.33), country: US(-0.01), ip: 209.51.188.17(-0.58)]; TO_DN_NONE(0.00)[]; HFILTER_HELO_IP_A(1.00)[lists.gnu.org]; HFILTER_HELO_NORES_A_OR_MX(0.30)[lists.gnu.org]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; HFILTER_FROMHOST_NORES_A_OR_MX(1.50)[gnu.org]; FROM_NEQ_ENVFROM(0.00)[Heiko.Schmidt@webbedtables.de,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; DMARC_NA(0.00)[webbedtables.de]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: MvG2NtGrM3Sh On 18.03.20 16:50, Eric S Fraga wrote: > > Indeed hackish. But it does beg the question: why does ob-calc pop the > stack? I cannot see any use case given that the stack is essentially > infinite and can be safely ignored (in most if not all cases). > > Could the solution be to simply remove the =(calc-pop 1)= line at the > end of =org-babel-execute:calc= function? > > Just a thought. After removing (calc-pop 1)  from =org-babel-execute:calc= the problem is perfectly solved. Thanks a lot.