Browse Source

ob-ocaml: Add a cautionary comment about dodgy regex use.

* lisp/ob-ocaml.el (org-babel-ocaml-read-list): Add comment
Aaron Ecay 10 years ago
parent
commit
b3712b9840
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lisp/ob-ocaml.el

+ 4 - 0
lisp/ob-ocaml.el

@@ -150,6 +150,10 @@ VALUE and TYPE are string output from an ocaml process."
   "Convert RESULTS into an elisp table or string.
   "Convert RESULTS into an elisp table or string.
 If the results look like a table, then convert them into an
 If the results look like a table, then convert them into an
 Emacs-lisp table, otherwise return the results as a string."
 Emacs-lisp table, otherwise return the results as a string."
+  ;; XXX: This probably does not behave as expected when a semicolon
+  ;; is in a string in a list.  The same comment applies to
+  ;; `org-babel-ocaml-read-array' below (with even more failure
+  ;; modes).
   (org-babel-script-escape (replace-regexp-in-string ";" "," results)))
   (org-babel-script-escape (replace-regexp-in-string ";" "," results)))
 
 
 (defun org-babel-ocaml-read-array (results)
 (defun org-babel-ocaml-read-array (results)