From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 qNVdEMKdk2MmsQAAbAwnHQ (envelope-from ) for ; Fri, 09 Dec 2022 21:42:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QM5oEMKdk2ML3AAA9RJhRA (envelope-from ) for ; Fri, 09 Dec 2022 21:42:42 +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 7FD6B2C789 for ; Fri, 9 Dec 2022 21:42:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3kBt-0003eW-Q0; Fri, 09 Dec 2022 15:41:53 -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 1p3kBs-0003eM-HE for emacs-orgmode@gnu.org; Fri, 09 Dec 2022 15:41:52 -0500 Received: from pb-smtp1.pobox.com ([64.147.108.70]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3kBq-00018a-KD for emacs-orgmode@gnu.org; Fri, 09 Dec 2022 15:41:52 -0500 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 14F7315C824 for ; Fri, 9 Dec 2022 15:41:46 -0500 (EST) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:subject:message-id:mime-version:content-type; s=sasl; bh=wER 8lq7jhwhYuIQUqVh87jlbwbbd7HZoL8ZXqQJCTxU=; b=PABrlHLECdv3BEcaZ2O gxM4IrY0WB1/qbDVcSV8F21B2w2JrdRmRftIf8xYT8YcXNs8gPNjt2sqJXBSegMb mswEP9bHFbPKX1MR+ozan8VbCzBEXS/dJRuv3Ek2uRkI3ZmhmOMZIRilzhnVSI9O BQeEi+tguVnybYMEQbZNjODU= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 0C18715C823 for ; Fri, 9 Dec 2022 15:41:46 -0500 (EST) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 873BE15C822 for ; Fri, 9 Dec 2022 15:41:45 -0500 (EST) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id DF7E7120B9D; Fri, 9 Dec 2022 15:41:44 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id D8F8E120B39 for ; Fri, 9 Dec 2022 15:41:44 -0500 (EST) Date: Fri, 9 Dec 2022 15:41:44 -0500 (EST) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: emacs-orgmode@gnu.org Subject: Org functions in source blocks Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Pobox-Relay-ID: E54D1220-7801-11ED-BBEA-2AEEC5D8090B-56320186!pb-smtp1.pobox.com Received-SPF: pass client-ip=64.147.108.70; envelope-from=wtd@pobox.com; helo=pb-smtp1.pobox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670618562; 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=njf0ntta31fp6f1IC+07i+N0oQV6oxvzCrsoTYmzpMo=; b=RQlHtFy1Wmu2sAdU0fpXx9taF8qhTDed/twFfKsn/OuCEwBJGAr6X6JHw5n4YHHn7ermVt MNEK1a5cdw35VB1uxmm9edS9vzx6i+KdaQfOJtC9ZrtHtX/H2zhcuBQA1qXY13uyRjDfSG k6iHpYxJL3Piet0zaJUHQwulQaIpqXP1IfI52DBvemdqsIjYw4NEhFLZsGCL5A1WbE1u5e lG83CPLQQc1H7MA87SOipbEa6hAN9FMzmcqZgksaClVw3PXvrAOyAyF9p+MW2SM2QqkfQp WDt7PN5XgqMU1fRI/jiDtQtHchynCgFc9IYWyKMXtxRzLCd5z/w0CyQBNY2dlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=PABrlHLE; 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=pobox.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670618562; a=rsa-sha256; cv=none; b=OHPcbcq0DP5LYsrWmGGNYV20g2oxf8oURYChm3dSrEnxk0RsvKU07crZokegv+CBCgnc/S PTeq8v3nI2hvDRsgQIvSIQLrGtci+Zu48qUTqVv9opPnB4uYelN0QRbcaSc3StYiaRIRs8 S99uKWKrIXJrQ1dJ+WSLO0SsUg9X0T5T4yDZvLObEVeyGcwYdkwmKy1l5SMPGVp0pip9OQ 3WZ8O3+BR2CHy07wdWFzaMqANIB3XGx5IfAZVKWKmEzxtNVR1EMohilMB+EkCcr6bky8P2 9OcjcOpm6wU0xA8eYeaf7d3wS5MuoqifiihcL+q+t1i63qpuWj1rwr5HRFqAnw== X-Migadu-Spam-Score: -7.85 X-Spam-Score: -7.85 X-Migadu-Queue-Id: 7FD6B2C789 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=PABrlHLE; 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=pobox.com X-TUID: 0+Iu2r5amE/N I ran org-lookup-all in a source block, but it didn't give any output. I think I don't know something basic about Org or Lisp (likely both) and I hope someone can point out what's going on. For example, I have this table, and I can count how many times x appears: #+name: test_table | | A | |---+---| | ! | A | | | x | | | | | | x | | | x | |---+---| | # | 3 | #+TBLFM: $2='(length(org-lookup-all "x" '(@I..@II) nil)) I can do the count from another table, referring to a remote table: #+name: summary | A | |---| | 3 | #+TBLFM: @2$1='(length(org-lookup-all "x" '(remote(test_table, @I$A..@II$A)) nil)) But running org-lookup-all on its own like this gives result nil, not something with some xs in it. Why not? #+begin_src emacs-lisp :results raw (org-lookup-all "x" '(remote(test_table, @I$A..@II$A)) nil) #+end_src Thanks, Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada