From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sPmmE9Gm02B69gAAgWs5BA (envelope-from ) for ; Wed, 23 Jun 2021 23:25:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CHlbD9Gm02BaKQAAB5/wlQ (envelope-from ) for ; Wed, 23 Jun 2021 21:25:37 +0000 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 5392A24D7A for ; Wed, 23 Jun 2021 23:25:36 +0200 (CEST) Received: from localhost ([::1]:34950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwANK-00030Q-IO for larch@yhetil.org; Wed, 23 Jun 2021 17:25:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwAMw-000303-5q for emacs-orgmode@gnu.org; Wed, 23 Jun 2021 17:25:10 -0400 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]:37549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwAMu-000052-C2 for emacs-orgmode@gnu.org; Wed, 23 Jun 2021 17:25:09 -0400 Received: by mail-oi1-x233.google.com with SMTP id h9so4936105oih.4 for ; Wed, 23 Jun 2021 14:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=EFhbRBDQNV8GvSXqKSIZ1AaSNpJuysE/QmPnyL3lC0g=; b=DjvoTn2UmIuQBlr0WFSV7e54QKi4mRWwSdGcBDw1lq0KNg9nOJXGsjuQFOxWjsEVGS JTigvPz4Hx0tl6ou8wIPgTqUwEY4bMe5Q33px0Y+qjPx7hiXlCM4u6ox+J9hA6iE4HpS 9zZzZABQBq6joyYAz2ehqOm845kjxX6AKVknG6ydc77LLdH1h7eGXI+JjftnKJoIJ7s7 URWlQi7Pww6tX6hKPEaM6RbI67x/b6KNp7fOaZlnmJdaxWhPvtkK/8ukZB5sMFE47uV2 6/8G9qz+yo6gXw4mQa6dcaylThPcBFLmU+n3did8P5lTL9F6RFCEyDu/E/AW5NuR3ADa uzGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=EFhbRBDQNV8GvSXqKSIZ1AaSNpJuysE/QmPnyL3lC0g=; b=Po1Ur11AsqWOLyHm8MCYmkuy3BLHpUWvOSRYJBrAsLrT5I4MxL63rYV4K/6hTnfu/n 91qg2x8HJwoIcrWP/5nzKNRZ5OV3eyCp0FvyIcnSOraGi3ci7xKOPD6rkKAMnt6/XcfY kf6taiZXECJwKYdHME9fgn45AL//JdwKA37nPVQZKWCtUNOYjSsuDAuXucTwf9YnwPDJ aDhLlDDsDXIUQiWB5z47mMfxFWT6KOlEMAAOWPGTpiNDckHLnpVNBQl+sWKuDoP/tUt1 uO4ZLs1mTcBBypANG4MCR8KuVlvGHJa27u8hvZ9eGbQg1eiVrax272T5E9KMNVqBWOBF vimg== X-Gm-Message-State: AOAM531lxc8+jIWDBgeVYP4pkkoQn4YNSU6BaXBvbzZfDp1tAtaYqwPb xPzgs3GUhpu6Mwn4w0mtMwXBencWIRIH9t53xXQbnGfR X-Google-Smtp-Source: ABdhPJzZ/Ka4O7L5aWlGGlk1WvJA04W6LU3BmlbMEZZi8C8mPmtcaVeIjTM7MURHQ4pSji4qM/B1uVCnv8HHbKytnE4= X-Received: by 2002:aca:330a:: with SMTP id z10mr1517808oiz.31.1624483506517; Wed, 23 Jun 2021 14:25:06 -0700 (PDT) MIME-Version: 1.0 References: <7C2DF594-A3F2-4AF5-9C2C-9D1CE0C710BD@nordakademie.de> <87r1gs1i4k.fsf@posteo.net> <8FBACF2F-7559-4987-A8D0-BB5F5B3E42E0@nordakademie.de> <87zgvgs2q3.fsf@gmail.com> In-Reply-To: <87zgvgs2q3.fsf@gmail.com> From: George Mauer Date: Wed, 23 Jun 2021 16:24:55 -0500 Message-ID: Subject: Re: appearance of list as results from evaluating code blocks To: orgmode Content-Type: multipart/alternative; boundary="00000000000059911b05c5758a5a" Received-SPF: pass client-ip=2607:f8b0:4864:20::233; envelope-from=gmauer@gmail.com; helo=mail-oi1-x233.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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: gmauer@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624483536; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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:dkim-signature; bh=EFhbRBDQNV8GvSXqKSIZ1AaSNpJuysE/QmPnyL3lC0g=; b=PtaFQ47lLkaYmb86cNC8D3RePOQyNc9VVk1GXFUWcLDwcyIaPIODPPQGUUgOVrA6cjrsgg CbO3Lt6Ex7UQY0XNatYzpqa+AdFmOAMupdXwAudnAJWqg9Gtb4PkiDF0ao+otOI1j3IhtH NJz490oedoj9/wceoHLDhSghI3nyc2mnWhxdDXLqKPeCRGKJyf4C4CpgPREF0k4fd8SHyS djg3HUYAAZZl79vmpvMmPm5gTTH/5xWNDxbJDvXPmadl6Aar2CB1eYqbPygoEMu6RaecFU rmPd7vKHpWN6lt6g9efWUir1XA7goCWPE6+BcBa2CgT36CntgzI5KqhLCmShmg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624483536; a=rsa-sha256; cv=none; b=QIvIulupa6tgnZjLOQ/aMq8nRAlW/agzjslxBj8DPXSalVhwu5fZWH7bCNEwKg7vgaG+qB Bo6QiP5HhtGlJ+rzrcAeBYJ6FJ+Wleoumx+nSdLOrV9xWeR2D1oMlCqCJM/GBbkj/T6Xl5 3+xxXKMVHB+4LoaqiOdOwqra+qMGh1XdNWpuWH1gooYqvq74xszizni4Rvi7zcokSU4PLl Tx5ULyzykZdu6dVPOcBgCyw2FsHfdCdafk7WoJUBQob2cI2V3oGM+89uLege+ZTMbigIDl rbhrh5dKH7YYl94Tt52q/7o1x601co7qGFR1SgnE0dbCko3wEGxF8rlFx0dltA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=DjvoTn2U; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=DjvoTn2U; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5392A24D7A X-Spam-Score: -3.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: Jbad0cw4oXMW --00000000000059911b05c5758a5a Content-Type: text/plain; charset="UTF-8" What about :results code The default is a elisp code block so you get syntax coloring On Wed, Jun 23, 2021, 16:22 Rodrigo Morales wrote: > Johannes Brauer writes: > > Johannes Brauer writes: > > > thanks, that works > > While that works, you might be interested in ":results verbatim" instead > of ":results raw" since when using "verbatim" the results are replaced > when re-evaluating the code block. See minimal working example below. > > After pressing =C-c C-c= five times > > #+BEGIN_SRC elisp :results raw > (list 1 2 3) > #+END_SRC > > #+RESULTS: > (1 2 3) > (1 2 3) > (1 2 3) > (1 2 3) > (1 2 3) > > After pressing =C-c C-c= five times > > #+BEGIN_SRC elisp :results verbatim > (list 1 2 3) > #+END_SRC > > #+RESULTS: > #+begin_example > (1 2 3) > #+end_example > > PS: If you haven't customized Org Mode enough, you might get a ":" as > the prefix of some of your results. > > #+BEGIN_SRC elisp :results verbatim > (list 1 2 3) > #+END_SRC > > #+RESULTS: > : (1 2 3) > > As can be seen above, the results are not enclosed within > #+begin_example and #+end_example. To enable this, set the following. > > #+BEGIN_SRC elisp > (setq org-babel-min-lines-for-block-output 0) > #+END_SRC > > Once you set the option shown above, you might get the following when > evaluating the code block. > > #+BEGIN_SRC elisp :results verbatim > (list 1 2 3) > #+END_SRC > > #+RESULTS: > #+begin_example > (1 2 3) > #+end_example > > --00000000000059911b05c5758a5a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
What about :results code
The default is = a elisp code block so you get syntax coloring

On Wed, Jun 23, 2021, 16= :22 Rodrigo Morales <mor= alesrodrigo1100@gmail.com> wrote:
Johannes Brauer <brauer@nordakademie.de> writes:

Johannes Brauer writes:

> thanks, that works

While that works, you might be interested in ":results verbatim" = instead
of ":results raw" since when using "verbatim" the resul= ts are replaced
when re-evaluating the code block. See minimal working example below.

After pressing =3DC-c C-c=3D five times

#+BEGIN_SRC elisp :results raw
(list 1 2 3)
#+END_SRC

#+RESULTS:
(1 2 3)
(1 2 3)
(1 2 3)
(1 2 3)
(1 2 3)

After pressing =3DC-c C-c=3D five times

#+BEGIN_SRC elisp :results verbatim
(list 1 2 3)
#+END_SRC

#+RESULTS:
#+begin_example
(1 2 3)
#+end_example

PS: If you haven't customized Org Mode enough, you might get a ":&= quot; as
the prefix of some of your results.

#+BEGIN_SRC elisp :results verbatim
(list 1 2 3)
#+END_SRC

#+RESULTS:
: (1 2 3)

As can be seen above, the results are not enclosed within
#+begin_example and #+end_example. To enable this, set the following.

#+BEGIN_SRC elisp
(setq org-babel-min-lines-for-block-output 0)
#+END_SRC

Once you set the option shown above, you might get the following when
evaluating the code block.

#+BEGIN_SRC elisp :results verbatim
(list 1 2 3)
#+END_SRC

#+RESULTS:
#+begin_example
(1 2 3)
#+end_example

--00000000000059911b05c5758a5a--