From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KCscCbFZ8GMCJgEAbAwnHQ (envelope-from ) for ; Sat, 18 Feb 2023 05:53:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GI4FCbFZ8GO/MwAAauVa8A (envelope-from ) for ; Sat, 18 Feb 2023 05:53:05 +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 ED50123C8B for ; Sat, 18 Feb 2023 05:53:04 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=oLQRwH43; 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=1676695985; a=rsa-sha256; cv=none; b=kHDzEpjzKx3rycSIE/29f3gLEmFXi8PQ6xe0+pg9+4Jr9hsr1N75iUB10FT7sSCbKXCbdm lYOB+vy++e7LmhrVVG1kCOnQ0hvKn7FmBjroyHxVs49cnqeGQuXGTUiEJR/1jAbi7wF6dD u2eLS9sIk8nHtsXOvCHwOe5TgcxBfwH2apjZBe37QMBthQ6108os7BA4Jxxbm2UG+uZucc H6TRT/VU2cXhTJWJ2fXLykZGufzMx/oqnQ6fwpnzSJG4a/43LzbBeU0l45prTmaVUv9r+m 2TL1We6r1uzBADU7cW59G6GoRPOSJc8rc5jvgJk2C4r2n72lGM0yt0CXwlzOww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=oLQRwH43; 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=1676695985; 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=XhR4XM85J7tEj8joGQA5VDkMABnljrWc+525nktBJas=; b=FaYMgrCi0Spy5a4h1cVtrH8R4jLVGXiwiUhJZZQYJHaO24KQEb/voy3NGPl15S++JPZcNd 3pTSb/BsK6A9ioFNbdNYsjW9b29L2BtWkLVQSUyxxRaTpg91ANAg814cEqvOjyi/0FI1my iOHQSrWIUled88vEycoH9jTBln1SNqoDCobVTnKFoAgwkA7Z/jmNmThW84qESJyq210FIs MMGnXQosgpgCPqa0lksqT1ppNOaAd/tqGmotWDMqGye2XBpbsTzT2YNSEnZu0wqcxFiCbx 4fgXsaXxQsDAuNhUd1fFNTcYDToxsVyjmXNA6for/VclmVJUdi4dLy1JxkfpLA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTFCl-0005s2-DT; Fri, 17 Feb 2023 23:52:11 -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 1pTFCj-0005re-8G for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 23:52:09 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTFCg-0007FI-W1 for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 23:52:08 -0500 Received: by mail-wr1-x42f.google.com with SMTP id n3so2756237wri.10 for ; Fri, 17 Feb 2023 20:52:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=XhR4XM85J7tEj8joGQA5VDkMABnljrWc+525nktBJas=; b=oLQRwH43/J3dk6ye5I2Dw2P8z4uPBAxzAsQdWUTZfmrBRZRdO2oZsDozUGVpA6w+EC FD5N3PGVFMNw58ijX+KrxOl6sx2vw3i8s631SQJsXHqkuNu0oM81cLCBJPr4ZBJWvn8z TxHZFFiYn/NpePISBOBv8mDRYqsGulaHU0vGtU+Vgzf8O2Ng/Abm45biBKleCP8VAeAc Wsurn5txSgXXhsgH/lWiyKqCQ2N10DQuuL/0vSTAvH41ihGDbFFFfiGH4OcU/uek587e nnFtH8Xls4SE6UYehTpBY2eeDQMT/RRQNTIy0yfpd/OWPzHGGAkNkazY20H8wPdKEDsl h+EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XhR4XM85J7tEj8joGQA5VDkMABnljrWc+525nktBJas=; b=ysAyMzzWgGlfa70Ssh52fdgTqi78VgqhZ1zuv+9egJl4TX9lK4tuR/QHCc8C2iJ+zO OjpzT+CmdD0pgIvvv68l9VRdMPzENZ5ozYj7jeZdYgGSdudOgPY/XIBZPI2TO1x1vpJA QbL+Cyb8OU3PytYh3dEVQe6BvlwYiUa8zf/Lyi0NAWiF8p11Rh6Zk8IuIzYlo+0m3bzZ hNwAB17VOqGWFDnAcESoyr7gyNXZAear0NYCDNhrWR4bQqcaAIPnZTx4c7W0mdDREuaj p1CEMOTkTaLbWIwIVY7r/g9gEV+fTbex8+geu+nk3iCnSKZT4DrjSSvbM/QlJq5Qxmb2 nmLA== X-Gm-Message-State: AO0yUKVcWrIWuhAr9AhPvFEaAnkR/G9JOLV05Q5nv9Vdpwuzrxu6mpWI nxoga8xTe1WswAP8GOiouu7hop+lFWFK2fcoRFUevRYidQ0= X-Google-Smtp-Source: AK7set+a7v9h+0vo19XoZa9dnq2PqPfl3bWii2WXw/sG25k8WOg7i4sMsC3ngCMdvzwm/W3efxVSvTKkJmRO1kuOemY= X-Received: by 2002:a5d:68d1:0:b0:2c6:e7fe:2c2b with SMTP id p17-20020a5d68d1000000b002c6e7fe2c2bmr122088wrw.181.1676695923629; Fri, 17 Feb 2023 20:52:03 -0800 (PST) MIME-Version: 1.0 From: Galaxy Being Date: Fri, 17 Feb 2023 22:51:52 -0600 Message-ID: Subject: Org-mode meta results To: emacs-orgmode Mailinglist Content-Type: multipart/alternative; boundary="000000000000eca29605f4f23013" Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=borgauf@gmail.com; helo=mail-wr1-x42f.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, HTML_MESSAGE=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: X-Migadu-Queue-Id: ED50123C8B X-Spam-Score: -8.34 X-Migadu-Spam-Score: -8.34 X-Migadu-Scanner: scn0.migadu.com 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 X-TUID: wMkIazmlATn8 --000000000000eca29605f4f23013 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I can't get this to play the meta game in an org-mode buffer #+begin_src emacs-lisp (defun print-elements-of-list (list) "Print each element of LIST on a line of its own." (while list (print (car list)) (setq list (cdr list)))) #+end_src #+RESULTS: : print-elements-of-list #+begin_src emacs-lisp (setq animals '("gazelle" "giraffe" "lion" "tiger")) #+end_src #+RESULTS: | gazelle | giraffe | lion | tiger | #+begin_src emacs-lisp :results verbatim animals #+end_src #+RESULTS: : ("gazelle" "giraffe" "lion" "tiger") #+name: animal_list #+begin_src emacs-lisp :results output list (print-elements-of-list animals) #+end_src #+RESULTS: animal_list : - "gazelle" : - "giraffe" : - "lion" : - "tiger" #+begin_src emacs-lisp :var alist=3Danimal_list() :results list alist #+end_src #+RESULTS: : - "gazelle" : - "giraffe" : - "lion" : - "tiger" #+begin_src emacs-lisp :var alist=3Danimal_list() (mapcar (lambda (x) (concat x "foo")) alist) #+end_src I'm getting an error from evaluating the last block: Wrong type argument: sequencep, 10. I'm fairly sure that alist by this point is not actually an elisp list. But what does animal_list() contain then? It's the output of my print-elements-of-list function. Is there a way to "look under the hood" at what a named block animal_list() contains? --=20 =E2=A8=BD Lawrence Bottorff Grand Marais, MN, USA borgauf@gmail.com --000000000000eca29605f4f23013 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I can't get this to play the meta game in an org-mode = buffer

#+begin_src emacs-lisp
(defun pr= int-elements-of-list (list)
=C2=A0 "Print each element of LIST on a= line of its own."
=C2=A0 (while list
=C2=A0 =C2=A0 (print (car = list))
=C2=A0 =C2=A0 (setq list (cdr list))))
#+end_src

#+RESU= LTS:
: print-elements-of-list

#+begin_src emacs-lisp
(setq ani= mals '("gazelle" "giraffe" "lion" "t= iger"))
#+end_src

#+RESULTS:
| gazelle | giraffe | lion |= tiger |

#+begin_src emacs-lisp :results verbatim
animals
#+en= d_src

#+RESULTS:
: ("gazelle" "giraffe" "= ;lion" "tiger")

#+name: animal_list
#+begin_src em= acs-lisp :results output list
(print-elements-of-list animals)
#+end_= src

#+RESULTS: animal_list
: - "gazelle"
: - "g= iraffe"
: - "lion"
: - "tiger"

#+begi= n_src emacs-lisp :var alist=3Danimal_list() :results list
alist
#+end= _src

#+RESULTS:
: - "gazelle"
: - "giraffe"= ;
: - "lion"
: - "tiger"

#+begin_src emacs= -lisp :var alist=3Danimal_list()
(mapcar (lambda (x) (concat x "foo= ")) alist)
#+end_src


I'm getting an error fr= om evaluating the last block:

Wrong type argument: sequencep, 10.

I&= #39;m fairly sure that alist=C2=A0by this p= oint is not actually an elisp list. But what does = animal_list() contain=C2=A0then? It's the output of my print-elements-of-list function. Is there a way to &= quot;look under the hood" at what a named block animal_list() contains?

--
=E2=A8=BD
Lawrence Bottorff
Grand Marai= s, MN, USA
--000000000000eca29605f4f23013--