From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 2AlTJYv5M2NNtQAAbAwnHQ (envelope-from ) for ; Wed, 28 Sep 2022 09:36:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YMpLJYv5M2M3SQAA9RJhRA (envelope-from ) for ; Wed, 28 Sep 2022 09:36:43 +0200 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 D449025DFC for ; Wed, 28 Sep 2022 09:36:42 +0200 (CEST) Received: from localhost ([::1]:41052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odRcX-0000bM-FF for larch@yhetil.org; Wed, 28 Sep 2022 03:36:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odQlq-0006Nj-QZ for emacs-orgmode@gnu.org; Wed, 28 Sep 2022 02:42:23 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.216.144.57]:34208 helo=fraternal-pryderi.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odQlo-0002us-Ir for emacs-orgmode@gnu.org; Wed, 28 Sep 2022 02:42:14 -0400 Received: from handsome-kitsune.authn-relay.a.mail.umich.edu (ip-10-0-72-38.us-east-2.compute.internal [10.0.72.38]) by fraternal-pryderi.relay-egress.a.mail.umich.edu with ESMTPS id 6333ECC1.2F7B791A.1DCBE10B.54469; Wed, 28 Sep 2022 02:42:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1664347329; bh=sNa33Vn8llsliaAJHjH/TOaPjuYVoDOe/NzGepY3KGc=; h=cc:From:Subject:In-reply-to:References:Date; b=BKYb02OOFycBL7xoahOzYVKrnJRkV8naS94uVcBzSP3/jshuSh4k6Ks73FlEiQcmn Wx2KZ2XB6d45PakgChcNUM5HOzB6urGnyL5o9ek4TY598n/KIjZFC9M6paBLkzC8sK QC6JPH2gYRlyWyZ2tjfzIkoBAlbrhW8OrP2jS3yqtdH6WmRBjzsScunLD4KZmYVguT H+f4E+DgfrAvbG57sSIDtiWtpvSAsyi55MBINVmY6lUxFFsB1JQWgMmKwtyZp5s74v keaeCs5Rwdxdia0U3Ec+x12ML7iCvQDKu2jLQTFZt9a/d8exEYW10K7oG6q1ZldKA8 KLthktJt/bt9w== Received: from localhost (Mismatch [85.103.37.149]) by handsome-kitsune.authn-relay.a.mail.umich.edu with ESMTPSA id 6333ECC0.8C758BE.73C97A45.2193583; Wed, 28 Sep 2022 02:42:08 -0400 cc: =?us-ascii?Q?=3D=3Fus-ascii=3FQ=3F=3D3D=3D3Futf-8=3D3FQ=3D3FAndr=3D3DC?= =?us-ascii?Q?3=3D3DA9s=3D5FRam=3D3DC3=3D3DADrez=3D3F=3F=3D____=3D=3Fus-as?= =?us-ascii?Q?cii=3FQ=3F=3D3D=3F=3D?= , emacs-orgmode@gnu.org From: Greg Minshall Subject: Re: how to remove parentheses from the output of a source code block In-reply-to: <537987.1664337716@archlinux> References: <537987.1664337716@archlinux> Comments: In-reply-to Greg Minshall message dated "Wed, 28 Sep 2022 07:01:56 +0300." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1.91 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 28 Sep 2022 09:42:02 +0300 Message-ID: <540975.1664347322@archlinux> Received-SPF: pass client-ip=18.216.144.57; envelope-from=minshall@umich.edu; helo=fraternal-pryderi.relay-egress.a.mail.umich.edu X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" 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=1664350603; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:cc: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=sNa33Vn8llsliaAJHjH/TOaPjuYVoDOe/NzGepY3KGc=; b=KWb9VfEn2wRbU8/7Gtm9O9+6LE6FGImbfPvFIjttO77gbGzXT0tzLoTYiZL1fk9WE3X1Ih ges5cMVIGmA6QRR2rAmhvu9/90qR/9DOIjXt3r7omJR7h44M2sEundNWRncFBhLCSY+py8 XHyseZhhSesrTTa/J40WXgI7LfBsHkGgR4d7c3PS0weJPkZu7CQOK80KGXTNaK/1MWxYEn 8+iCi9I5cRfhnycWAvgoI/u51OufENaJpJsoQplSPCYe0WwR0SDrcwS1Vm0RqekaaIKOHL Q1/AARznZqbCxQyASK716wVIQo5QPkg2JBvrOP8qZLMPZd/tbrlmB4/9z9AbRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664350603; a=rsa-sha256; cv=none; b=hnrAlR06hP4Yei+OsCxB9hAuaKO0Qkqo3N5nPaXQ/5NfWYrXcllOIZMjy4M8gnlZpvkD3l Tj4i2D9g2rHh8KDgzLl+u8MtLT2JF96dILIlOm0fF6HEtqV0Zt63cVd5P9q1CziOi+XaeR lGNvDj2v0L+Y8jFl+zJk2tUG06n+wLtZUOaV79sJIHRfMD4o3mjkFu/pEMrnbP1/a4Q6t/ 39+DOu8gMlOIyGOpkl0BIrstMsmArZ+fdkC55r2c0ZzrQrYuujN/xc/lfestTeq03kqGfH V7bKSM9qieNaq4hoEmTHPQxMzYWPZz8b1ziDRZuJS3BqLlMxnPJdbja3H7Dg2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=BKYb02OO; dmarc=pass (policy=none) header.from=umich.edu; 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: -1.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=BKYb02OO; dmarc=pass (policy=none) header.from=umich.edu; 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: D449025DFC X-Spam-Score: -1.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5dqW9xgLx5iw Andr=C3=A9s, sorry -- of course, you can use base e-lisp =3Dstring-join=3D to accomplish the same thing. ---- #+BEGIN_SRC emacs-lisp :var table=3Dsource-in-table :results value raw (let ((sqlcode (mapcar (lambda (row)=20 (concat "INSERT or ignore INTO labels_catalog (i= d, macro, language1, language2) VALUES (" (number-to-string (nth 0 row)) ", '" (nt= h 1 row) "', '" (nth 2 row) "', '" (nth 3 row) "');\n") ) table))) (string-join sqlcode " ")) #+END_SRC ---- cheers, Greg