From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MNQnJBEUzmSDuAAASxT56A (envelope-from ) for ; Sat, 05 Aug 2023 11:19:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +EgdJBEUzmTqOAEA9RJhRA (envelope-from ) for ; Sat, 05 Aug 2023 11:19:13 +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 1FECC51833 for ; Sat, 5 Aug 2023 11:19:13 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691227153; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=sj/p9RuB5x+j4ICRyjrQK1AbZhawq8oD8IJspyEIJPw=; b=Zl/D5jWOxaNC1W33jfy50s4fNMF5ovYqZbgjAFIdkJd3JnlUMXnophf2DsF6LucV3g3MmJ pwP2y0FnSYH1328KlBA6UfYeNmFQGUH3nlw1VCfPfm5RiwN3Ta+WHObs5icSBJp7b9e4rV 7WHIFDu2TKkId63Q9muTsiLFpDiPPRpsnMC/GZiqVveIH0HldRKE9IIFh2rKXdV9/2Ezl7 B0culr5tAyUQMEp8lGp7bmB/9Y6ydbFmmRQtsyynQJmx5LFpbOMlVQMjumBghG09+CAAMg pIKd0gD9TFtFSdVh4dvv5vSaqHFfzJQhy8oQuk5+/nZLDXccy5rwkWK2BVRcFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691227153; a=rsa-sha256; cv=none; b=b3hKtwyFupLf5Bi8PHKUZoPHSYxGbBSfBEt9oq7Q7mf+Fmet+9arJSnaPw2Zp4obUjmn4Z QAk39MjlGgvljqjcsp8hsORPS9M+rOSlVeqB7zJHaUSaXnpwqmwhjoLzd2azDv3G+ik+zp 1vo01todzKTD/tZlYFfjYjL2ZNErpvcGcxCRXxFtl7VTdppbN5N016+58wo4Wj3ID7L00N k6zVUbM0ib3Y5yXVkoHkPMo7u8pF/tcYZV6mG8TZ75AhKs72DpAiuErHDTCf/KpZysvaX5 fjvbaBpveR5EZzv0Al+Hft6aGsWtAKnmDHI8cSjQGghAEz13CHJdyD6mpbvXYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSDQG-0003ev-B5; Sat, 05 Aug 2023 05:18:08 -0400 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 1qSDQE-0003eU-F6 for emacs-orgmode@gnu.org; Sat, 05 Aug 2023 05:18:06 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSDQC-0003bW-Ib for emacs-orgmode@gnu.org; Sat, 05 Aug 2023 05:18:06 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id B634869B5AD; Sat, 5 Aug 2023 11:17:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3hzXQONaAv2k; Sat, 5 Aug 2023 11:17:56 +0200 (CEST) Received: from localhost (unknown [46.204.109.70]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 7079C22715A7; Sat, 5 Aug 2023 11:17:55 +0200 (CEST) References: <87cz035jdz.fsf@mbork.pl> <87v8dvkzdz.fsf@localhost> <87bkfm5zlu.fsf@mbork.pl> User-agent: mu4e 1.1.0; emacs 30.0.50 From: Marcin Borkowski To: Ihor Radchenko Cc: Org-Mode mailing list Subject: Re: How to put a string produced by an Elisp form in an Org source block in the Org file? In-reply-to: <87bkfm5zlu.fsf@mbork.pl> Date: Sat, 05 Aug 2023 11:17:47 +0200 Message-ID: <878rap6e6c.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 1FECC51833 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.20 X-Spam-Score: -5.20 X-TUID: eUoRJATOFQuZ On 2023-08-04, at 22:20, Marcin Borkowski wrote: > On 2023-08-04, at 10:03, Ihor Radchenko wrote: > >> Marcin Borkowski writes: >> >>> I have an Elisp form in an Org source block, returning a (multi-line) >>> string. I'd like to put that string into the same Org buffer. I tried >>> `:results raw', but the string contains `|' characters, so Org treats >>> its as a table and tries to format it as such, which is not what I want. >>> >>> How to do that? >> >> Maybe :wrap example? > > Thanks a lot, that works! (Apart from the issue with lines beginning > with a star, possibly preceded by whitespace, which are "escaped" with > a comma - but that is a known thing in Org, and I can easily circumvent > it.) > > BTW, that means that my blog post for this weekend (about plotting > charts from Org tables, all within Org mode and using ASCII art) is > basically almost ready! And here it is: https://mbork.pl/2023-08-05_Plotting_ASCII_art_charts_from_Org_mode_tables Thanks again! -- Marcin Borkowski http://mbork.pl