[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] org-babel: load-path question and indentation of blocks
From: |
Sebastian Rose |
Subject: |
[Orgmode] org-babel: load-path question and indentation of blocks |
Date: |
Thu, 17 Sep 2009 01:51:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
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
- [Orgmode] org-babel: load-path question and indentation of blocks,
Sebastian Rose <=