emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kodi Arfer <listu@arfer.net>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How is the return value of `org-babel-execute:FOO` interpreted?
Date: Sun, 3 Oct 2021 08:49:12 -0400	[thread overview]
Message-ID: <e22b550b-a345-c894-7e2e-81c52c219827@arfer.net> (raw)
In-Reply-To: <87v92ecmeu.fsf@localhost>

On 2021 Oct 03 Sun 8:39:37 AM -0400, Ihor Radchenko <yantar92@gmail.com> wrote:
> Ihor Radchenko <yantar92@gmail.com> writes:
> 
>> Kodi Arfer <listu@arfer.net> writes:
>>
>>>> Are you sure that you have :file parameter in the source block you tried
>>>> to execute?
>>>
>>> Yes, this is my code block:
>>>
>>> #+begin_src hy :file g/foo.png
>>> (plt.scatter [1 2 3] [4 5 -9])
>>> #+end_src
>>
>> What about
>>
>> #+begin_src hy :results file :file g/foo.png
>> (plt.scatter [1 2 3] [4 5 -9])
>> #+end_src
>>
>> ?
> 
> If this code works for you, the problem is the folloing incompatible
> change in Org 9.3 (see etc/ORG-NEWS file in the repo):
> 
> * Version 9.3
> ** Incompatible changes
> *** ~:file~ header argument no longer assume "file" ~:results~
> 
> The "file" ~:results~ value is now mandatory for a code block
> returning a link to a file.  The ~:file~ or ~:file-ext~ header
> arguments no longer imply a "file" result is expected.

It works, thank you. I should've looked at the changelog more closely. I wonder why this change was made. It would be annoyingly redundant to put `:results file` next to every `:file`. I already have code to change the default value of `:results` when `:file` is set, for a different Babel language, so I should be able to adapt that to this language.


  reply	other threads:[~2021-10-03 12:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-02 16:43 Kodi Arfer
2021-10-03  9:38 ` Ihor Radchenko
2021-10-03 12:03   ` Kodi Arfer
2021-10-03 12:20     ` Ihor Radchenko
2021-10-03 12:39       ` Ihor Radchenko
2021-10-03 12:49         ` Kodi Arfer [this message]
2021-10-03 13:09           ` Ihor Radchenko
  -- strict thread matches above, loose matches on Subject: below --
2021-10-02 13:27 Kodi Arfer

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=e22b550b-a345-c894-7e2e-81c52c219827@arfer.net \
    --to=listu@arfer.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@gmail.com \
    --subject='Re: How is the return value of `org-babel-execute:FOO` interpreted?' \
    /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

Code repositories for project(s) associated with this 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).