From: Greg Minshall <minshall@umich.edu>
To: =?utf-8?Q?Andr=C3=A9s_Ram=C3=ADrez?= <rrandresf@hotmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: how to remove parentheses from the output of a source code block
Date: Wed, 28 Sep 2022 07:01:56 +0300 [thread overview]
Message-ID: <537987.1664337716@archlinux> (raw)
In-Reply-To: <SJ1PR12MB63632FDAC2D78F80F8C4431CA6549@SJ1PR12MB6363.namprd12.prod.outlook.com>
Andrés,
this is maybe more of an e-lisp question, or, at least, here's more of
an e-lisp answer. if you have the useful =s= package [1] installed,
then will using =s-join= give you what you want?
----
(let ((sqlcode (mapcar (lambda (row)
(concat "INSERT or ignore INTO labels_catalog (id, macro, language1, language2) VALUES ("
(number-to-string (nth 0 row)) ", '" (nth 1 row) "', '" (nth 2 row) "', '"
(nth 3 row) "');\n")
) table)))
(s-join " " sqlcode))
----
give you what you are looking for?
cheers, Greg
[1] https://github.com/magnars/s.el
next prev parent reply other threads:[~2022-09-28 4:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-28 3:17 how to remove parentheses from the output of a source code block Andrés Ramírez
2022-09-28 4:01 ` Greg Minshall [this message]
2022-09-28 6:42 ` Greg Minshall
2022-09-29 17:52 ` andrés ramírez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537987.1664337716@archlinux \
--to=minshall@umich.edu \
--cc=emacs-orgmode@gnu.org \
--cc=rrandresf@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).