emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems using org-babel
@ 2009-10-03 17:11 Keith Lancaster
  2009-10-03 17:27 ` Benjamin Andresen
  2009-10-03 18:14 ` Dan Davison
  0 siblings, 2 replies; 3+ messages in thread
From: Keith Lancaster @ 2009-10-03 17:11 UTC (permalink / raw)
  To: Org Mode

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.

Keith Lancaster
klancaster1957@mac.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems using org-babel
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Andresen @ 2009-10-03 17:27 UTC (permalink / raw)
  To: Org Mode

Hey Keith,

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.

Create a new file with nothing in it, then start adding org-mode parts.
(The load path, require the org and org-babel). That way you can
guarantee the problem is with org-mode/org-babel and not with some other
part of your setup.

emacs -Q -l newfile.el

If you've done so, incrementally add parts of your old init.el to the
new file and see if something breaks.

That way you find the step that doesn't work.

If you experience problems with the initial step of getting org-mode to
run with an empty init.el file, tell us what versions you're using (M-x
org-version RET) and what exactly you did to cause the error message.
(Alternatively you could also do M-x toggle-debug-on-error RET and post
that.)

br,
benny

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems using org-babel
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Davison @ 2009-10-03 18:14 UTC (permalink / raw)
  To: Keith Lancaster; +Cc: Org Mode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-03 18:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).