emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: Keith Lancaster <klancaster1957@mac.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Problems using org-babel
Date: Sat, 03 Oct 2009 14:14:30 -0400	[thread overview]
Message-ID: <8763awpcop.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <F36DE53A-6143-4FE5-B66E-B505D81947AE@mac.com> (Keith Lancaster's message of "Sat, 03 Oct 2009 12:11:57 -0500")

Keith Lancaster <klancaster1957@mac.com> writes:

> I enabled org-babel according to the instructions on worg, but am
> running into a number of issues which I am guessing are a function of
> my configuration. For example, enabling org-babel completely breaks
> remember mode, giving me a "wrong ..." argument (sorry - don't have it
> in front of me) error.  Adding a python source block still allows
> exporting, but adding a ruby block causes a "wrong..." error as well
> when I try to export. I guess the real question is how do I debug
> this? I am relatively new to emacs, and not familiar really with how
> to track some of these issues down.

Hi Keith,

In general, a good approach is to replace your personal configuration
file with an absolutely bare-bones file -- which only contains the
"official" recommended configuration for org-mode and
org-babel:

http://orgmode.org/manual/Installation.html#Installation
http://orgmode.org/manual/Activation.html#Activation
http://orgmode.org/worg/org-contrib/babel/org-babel.php#getting-started

Presumably you have installed org-mode yourself, rather than using the
version that comes with emacs (otherwise you would not have org-babel),
so minimally that would be something like this:

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "/your/location/of/org-mode/lisp")
(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)

(add-to-list 'load-path "/your/location/of/org-mode/contrib/lisp")
(require 'org-babel-init)
(require 'org-babel-ruby)      ;; requires ruby, irb, ruby-mode, and inf-ruby
(require 'org-babel-python)    ;; requires python, and python-mode
--8<---------------cut here---------------end--------------->8---

With a configuration like this, org-babel should not interact badly with
remember mode. So if you're still seeing this problem, please report
back, telling us *exactly* what steps you did, in addition to operating
system, org-mode version, emacs version. Error messages in emacs tend to
get copied to a buffer called *Messages*, so that's a convenient place
to retrieve the exact error message from -- perhaps you could send the
last few lines from there. If you don't see the problem then you can add
your personal config back in incrementally until something breaks.

For the problem with ruby, could you send a minimal file containing a
ruby block with which you have a problem? Have you definitely got the
various ruby dependencies installed (ruby, irb, inf-ruby.el,
ruby-mode.el). What operating system and version of org?

Dan






>
> Keith Lancaster
> klancaster1957@mac.com
>
>
>
>
>
> _______________________________________________
> 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

      parent reply	other threads:[~2009-10-03 18:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-03 17:11 Problems using org-babel Keith Lancaster
2009-10-03 17:27 ` Benjamin Andresen
2009-10-03 18:14 ` Dan Davison [this message]

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=8763awpcop.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=klancaster1957@mac.com \
    /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).