Hi Dan and Eric,

I'm an org-babel fan now :)


Here are two little things I noticed and that I want to discard from my
todo list.


* load-path

  Why is load modified only temporarily in org-babel-init.el?

  Wouldn't this here make sense?

diff --git a/contrib/lisp/org-babel-init.el b/contrib/lisp/org-babel-init.el
index c2e4211..1cd1a30 100644
--- a/contrib/lisp/org-babel-init.el
+++ b/contrib/lisp/org-babel-init.el
@@ -35,11 +35,12 @@
                     "babel"
                     (expand-file-name
                      ".." (file-name-directory (or load-file-name buffer-file-name))))))
-       
-       (langs-dir (expand-file-name "langs" babel-dir))
-       (load-path (append
-                   (list babel-dir langs-dir)
-                   (or load-path nil))))
+
+       (langs-dir (expand-file-name "langs" babel-dir)))
+
+  (add-to-list 'load-path (append
+                           (list babel-dir langs-dir)
+                           (or load-path nil)))
 
   ;; org-babel core
   (require 'cl)
  Users wouldn't have to add the babel/lisp/langs/ directory to the
  load-path `by hand' in that case.




* Evaluation of indented code-blocks

  This is a minor quirk I found.
  If the code block is indented according to the outline, evaluation (C-c C-c)
  does not work:

  #+begin_src sh :results output :exports both
  echo "Directory structure:"
  tree -d ~/.emacs.d/
  #+end_src

  Error message:

  Debugger entered--Lisp error: (error "C-c C-c can do nothing useful
  at this location.")
  ...


  While this works:

#+begin_src sh :results output :exports both
  echo "Directory structure:"
  tree -d ~/.emacs.d/
#+end_src





Best wishes

   Sebastian
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to