Normalize comma-escaping of src-blocks and example-blocks
commitfac86b03fe19d5bb6fe018c3cbc3becac6263b0e
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 30 Sep 2012 15:20:27 +0000 (30 17:20 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Mon, 1 Oct 2012 19:24:00 +0000 (1 21:24 +0200)
tree3c23180fe86f814f63279e55174d36934b63c75e
parent857a3921afe267a47fce704c5da361d5e42a23e8
Normalize comma-escaping of src-blocks and example-blocks

* lisp/org-src.el (org-escape-code-in-string,
  org-unescape-code-in-string, org-escape-code-in-region,
  org-unescape-code-in-region): New functions.
(org-edit-src-code, org-edit-src-exit): Use new functions.
* lisp/org.el (org-strip-protective-commas): Removed function.
* lisp/org-exp.el (org-export-select-backend-specific-text): Use new
  function.
* lisp/ob.el (org-babel-parse-src-block-match,
  org-babel-parse-inline-src-block-match, org-babel-insert-result):
  Always escape produced blocks, independently on the language of the
  block, if any.  Use new functions.
* doc/org.texi: Update documentation.
* testing/lisp/test-ob.el: Update test.
doc/org.texi
lisp/ob.el
lisp/org-exp.el
lisp/org-src.el
lisp/org.el
testing/lisp/test-ob.el