From: Dan Davison <davison@stats.ox.ac.uk>
To: Andrea Crotti <andrea.crotti.0@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Tangling
Date: Fri, 09 Apr 2010 09:38:39 -0400 [thread overview]
Message-ID: <87k4sgsq3k.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <m1tyrlugqw.fsf@84-014.eduroam.rwth-aachen.de> (Andrea Crotti's message of "Fri, 09 Apr 2010 11:17:43 +0200")
Hi Andrea,
Andrea Crotti <andrea.crotti.0@gmail.com> writes:
> So for my presentation I'm preparing a minimal emacs configuration which
> will have
> - org-mode/babel
> - python mode
> - yasnippet/auto complete
>
> And it will be everything here
> http://github.com/AndreaCrotti/Org-mode-notes
>
> I'm running
> Org-mode version 6.34trans
> on
> GNU Emacs 23.1.50.1
> (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-09-16 on neutron.local
>
> But I don't know why I'm not able to tangle anything and then load the
> elisp code from an org-mode file.
>
> ELISP> (org-babel-load-file "/Users/andrea/Documents/pycon/miniconf.org")
> *** Eval error *** No buffer named miniconf.org
>
> But the file is actually there, or like this
> ELISP> (org-babel-tangle "/Users/andrea/Documents/pycon/miniconf.org")
I think you meant
(org-babel-tangle-file "/Users/andrea/Documents/pycon/miniconf.org")
here
> nil
>
> And it doesn't export any source even if it looks something like this
>
> * Org mode
> ** Clock configuration
> #+begin_src elisp :tangle yes
> ;; Clock configuration
> (setq org-clock-persist t)
> (org-clock-persistence-insinuate)
> #+end_src
Although Org maps "elisp" to emacs-lisp-mode in org-src-lang-modes
(therefore C-c ' works), Org-babel currently does not recognise "elisp"
by default. Thanks for raising this, I think we need to make ourselves
more compatible with org-src-lang-modes.
So the short answer is: change "elisp" to "emacs-lisp".
The longer answer is, you could do
(org-babel-add-interpreter "elisp")
(add-to-list 'org-babel-tangle-langs '("elisp" "el"))
But you (we) 'll still be faced with the problem that org-babel-load-file
expects the blocks to be "emacs-lisp" blocks. org-babel-tangle-file, on
the other hand, will work.
Does that get things working?
Dan
>
> Any idea?
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-04-09 13:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-09 9:17 Tangling Andrea Crotti
2010-04-09 13:38 ` Dan Davison [this message]
2010-04-11 12:22 ` Tangling Andrea Crotti
2010-04-11 12:44 ` Tangling Dan Davison
2010-04-12 8:40 ` Tangling Andrea Crotti
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=87k4sgsq3k.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=andrea.crotti.0@gmail.com \
--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).