jingtaozf / literate-lisp

Load Common Lisp code blocks from Org files
64 stars 7 forks source link

source inside org examples and comments is not ignored #5

Closed alanruttenberg closed 4 years ago

alanruttenberg commented 4 years ago

For the below org, M-x org-babel-execute-buffer does not evaluate anything, but literate-lisp does. I believe these should be ignored.

#+begin_example
#+begin_src lisp
(print 'hello)
#+end_src
#+end_example

#+begin_comment
#+begin_src lisp
(print 'hello)
#+end_src
#+end_comment
jingtaozf commented 4 years ago

org-babel-execute-buffer is not the protocol we want to keep compatibility because at least for me, I never use it when I do literate programming.

But a patch to avoid such confusion is welcome.