DONE source block regexp matches delimiters inside source block
- State "DONE" from "DONE"
Thanks to Maurizio for pointing out this error.
And these are two test cases. I'm particularly puzzled by the first,
because the regexp seems to be anchored to the begin of line and hence
it shouldn't match the beginsrc inside the string.
For endsrc, it should probably be anchored to the begin of line.
[…] below
Best regards,
\nbsp\nbsp\nbsp\nbsp\nbsp\nbsp\nbsp\nbsp\nbsp\nbsp Maurizio
#+begin_src emacs-lisp ;;; evaluating the following C-x C-e with the point at the end is ok (message "%d" (org-babel-where-is-src-block-head)) (defun foo () (insert "#+begin_src emacs-lisp")) ;;; evaluating the following C-x C-e with the point at the end is not ok (message "%d" (org-babel-where-is-src-block-head)) #+end_src #+results: : 182800 #+begin_src emacs-lisp ;;; evaluating the following C-x C-e with the point at the end is ok (org-babel-where-is-src-block-head) (defun foo () (insert "#+end_src emacs-lisp")) ;;; evaluating the following C-x C-e with the point at the end is not ok (org-babel-where-is-src-block-head) #+end_src #+results: : 183148 #+begin_src ruby "#+end_src" #+end_src #+results: : #+end_src