emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: org-babel: load-path question and indentation of blocks
Date: Thu, 17 Sep 2009 01:51:55 +0200	[thread overview]
Message-ID: <87zl8ue9d0.fsf@gmx.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]

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?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-babel-init-load-path.patch --]
[-- Type: text/x-diff, Size: 782 bytes --]

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)

[-- Attachment #3: Type: text/plain, Size: 666 bytes --]


  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

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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	other threads:[~2009-09-16 23:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-16 23:51 Sebastian Rose [this message]
2009-09-17  2:00 ` org-babel: load-path question and indentation of blocks Eric Schulte
2009-09-17 14:01   ` Sebastian Rose

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zl8ue9d0.fsf@gmx.de \
    --to=sebastian_rose@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).