fixed bug in org-babel-balanced-split when run on Emacs22

Thanks to Martyn Jago for the test case

* lisp/ob.el (org-babel-balanced-split): Explicit checking if list
  before calling member.
* testing/lisp/test-ob.el (test-ob/org-babel-balanced-split): Testing
  the new Emacs22-proof behavior.
This commit is contained in:
Eric Schulte 2012-01-03 11:44:32 -07:00
parent 60176c84e5
commit 2b2e853b1b
1 changed files with 0 additions and 10 deletions

View File

@ -618,16 +618,6 @@ on two lines
(buffer-substring-no-properties (buffer-substring-no-properties
(point-min) (point-max))))))) (point-min) (point-max)))))))
(ert-deftest test-org-babel/inline-src-block-enclosed-within-parenthesis ()
(let ((test-line "{src_emacs-lisp[ :results verbatim ]{ \"x\" }"))
(org-test-with-temp-text
(concat test-line "}")
(forward-char 1)
(org-ctrl-c-ctrl-c)
(should (string= (concat test-line " =\"x\"=}")
(buffer-substring-no-properties
(point-min) (point-max)))))))
(ert-deftest test-org-babel/inline-src_blk-preceded-by-letter () (ert-deftest test-org-babel/inline-src_blk-preceded-by-letter ()
"Test inline source block invalid where preceded by letter" "Test inline source block invalid where preceded by letter"