[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] [babel] problems with org-babel-src-block-regexp
From: |
Maurizio Vitale |
Subject: |
[Orgmode] [babel] problems with org-babel-src-block-regexp |
Date: |
Thu, 11 Mar 2010 12:02:29 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
There're problems with org-babel-src-block-regexp when the src block
contains the block delimiters (for instance in strings or comments).
Granted, this is an uncommon occurrence (which I discovered by accident)
editing an org-file containing elisp code that needed to insert
#+begin_src...#+end_src pairs, but if it is not too difficult to fix it
would be nice to have a more useful behaviour.
This is my setting:
org-babel-src-block-regexp is a variable defined in `org-babel.el'.
Its value is
"^[ ]*#\\+begin_src[ ]+\\(python\\|sh\\|emacs-lisp\\)[
]*\\([^\":\n]*\"[^\"\n*]*\"[^\":\n]*\\|[^\":\n]*\\)\\([^\n]*\\)\n\\([^
- [Orgmode] [babel] problems with org-babel-src-block-regexp,
Maurizio Vitale <=