emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ob-lua: Support all types and multiple values in results


From: Rudolf Adamkovič
Subject: Re: [PATCH] ob-lua: Support all types and multiple values in results
Date: Wed, 24 Apr 2024 17:01:14 +0200

Ihor Radchenko <yantar92@posteo.net> writes:

> May you create a test for this with expected failure?

Sure!  Here is one:

  (should
   (equal "{B}"
          (org-test-with-temp-text
              "src_lua{return string.match('A {B} C', '%b{}')}"
            (org-babel-execute-src-block))))

The return value from 'string.match' is the substring "{B}", which Babel
misjudges to be a list and signals the error:

  (user-error "Inline error: list result cannot be used")

> Applied, onto main, after [...]

Thank you, Ihor!

Rudy
-- 
"I do not fear death.  I had been dead for billions and billions of
years before I was born, and had not suffered the slightest
inconvenience from it."  --- Mark Twain, paraphrased

Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
Studenohorská 25, 84103 Bratislava, Slovakia, European Union



reply via email to

[Prev in Thread] Current Thread [Next in Thread]