Hi there,

Here's a TINYCHANGE patch that fixes an issue in ob-lisp.el.

Before:

#+BEGIN_SRC lisp :results file
"plot.png"
#+END_SRC

#+RESULTS:
[[file:"plot.png"]]  <-- which is wrong

After:

#+BEGIN_SRC lisp :results file
"plot.png"
#+END_SRC

#+RESULTS:
[[file:plot.png]]


Mike

From 414af442fed1ef1b94613638330071cef4250645 Mon Sep 17 00:00:00 2001
From: Mike Ivanov <m...@daatsys.com>
Date: Sat, 7 Sep 2019 11:03:46 -0700
Subject: [PATCH] ob-lisp.el: Strip quotes from result value

* lisp/ob-lisp.el (org-babel-execute:lisp): Make sure that when a
  singular string value is returned, it has no quotation marks around
  it.

Before this change, the code below would produce an incorrect result:

  #+BEGIN_SRC lisp :results file
  "plot.png"
  #+END_SRC

  #+RESULTS:
  [[file:"plot.png"]]

After the change:

  #+BEGIN_SRC lisp :results file
  "plot.png"
  #+END_SRC

  #+RESULTS:
  [[file:plot.png]]

TINYCHANGE
---
 lisp/ob-lisp.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ob-lisp.el b/lisp/ob-lisp.el
index e717fc34e..0afb8c053 100644
--- a/lisp/ob-lisp.el
+++ b/lisp/ob-lisp.el
@@ -107,7 +107,7 @@ a property list containing the parameters of the block."
                                      (point-min) (point-max)))))
                               (cdr (assq :package params)))))))
      (org-babel-result-cond (cdr (assq :result-params params))
-       result
+       (org-babel-strip-quotes result)
        (condition-case nil
            (read (org-babel-lisp-vector-to-list result))
          (error result))))
-- 
2.20.1

Reply via email to