diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-04-07 01:22:18 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-04-07 01:22:18 +0200 |
commit | 0a7e382c27b95ff14d3a4fd797649b76b66d3138 (patch) | |
tree | 665f19a8dedc9725e7fcb55d24958a5811e6b20c | |
parent | 3c87b8263d12cec1dce5b09261b8d2d1af383c06 (diff) | |
parent | e3373f4beb16395f17e54c3494c0c7e53222ebcd (diff) | |
download | org-mode-0a7e382c27b95ff14d3a4fd797649b76b66d3138.tar.gz |
Merge branch 'maint'
-rw-r--r-- | lisp/ob-core.el | 2 | ||||
-rw-r--r-- | testing/lisp/test-ob.el | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 10aed1f..93bf312 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2490,7 +2490,7 @@ in the buffer." (if (memq (org-element-type element) ;; Possible results types. '(drawer example-block export-block fixed-width item - plain-list src-block table)) + plain-list special-block src-block table)) (save-excursion (goto-char (min (point-max) ;for narrowed buffers (org-element-property :end element))) diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el index 2d66e73..8d1a2a7 100644 --- a/testing/lisp/test-ob.el +++ b/testing/lisp/test-ob.el @@ -545,6 +545,17 @@ duplicate results block." (org-babel-next-src-block 1) (should (looking-at org-babel-src-block-regexp)))) +(ert-deftest test-ob/replace-special-block-result () + (should-error + (org-test-with-temp-text " +#+begin_src emacs-lisp :wrap special<point> +'foo +#+end_src" + (org-babel-execute-src-block) + (org-babel-execute-src-block) + (buffer-string) + (search-forward "#+begin_special" nil nil 2)))) + (ert-deftest test-ob/catches-all-references () (org-test-with-temp-text " #+NAME: literal-example |