From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: org-babel: load-path question and indentation of blocks Date: Thu, 17 Sep 2009 01:51:55 +0200 Message-ID: <87zl8ue9d0.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mo4IC-0004Rz-0i for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 19:52:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mo4I5-0004KY-TJ for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 19:52:07 -0400 Received: from [199.232.76.173] (port=56524 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mo4I5-0004KQ-Dk for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 19:52:01 -0400 Received: from mail.gmx.net ([213.165.64.20]:54384) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Mo4I4-00058c-OR for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 19:52:01 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode mailing list --=-=-= 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? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org-babel-init-load-path.patch 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 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--