emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Source code evaluation problem
@ 2015-04-25 15:47 Damian Bernardini
  2015-04-25 17:14 ` Bob Newell
  2015-04-25 17:35 ` Eric S Fraga
  0 siblings, 2 replies; 7+ messages in thread
From: Damian Bernardini @ 2015-04-25 15:47 UTC (permalink / raw)
  To: emacs-orgmode

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

I'm trying to use ledger blocks inside org with babel:

Babel language config:
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (emacs-lisp . t)
   (ledger . t)))

Ledger lisp path:
(autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t)
(add-to-list 'load-path
             (expand-file-name "/home/damian/git/ledger/lisp/"))
(add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode))

I'm trying the noweb example from:
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html

I can evaluate and get results from income and expenses blocks, but when I
try to run C-c C-c on balance block I get:
Symbol's function definition is void: org-id-find-id-file

Ledger mode and ledger from the command line are working.

[-- Attachment #2: Type: text/html, Size: 1090 bytes --]

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

* Re: Source code evaluation problem
  2015-04-25 15:47 Source code evaluation problem Damian Bernardini
@ 2015-04-25 17:14 ` Bob Newell
  2015-04-25 17:35 ` Eric S Fraga
  1 sibling, 0 replies; 7+ messages in thread
From: Bob Newell @ 2015-04-25 17:14 UTC (permalink / raw)
  To: Damian Bernardini; +Cc: Org-mode mailing list

On Sat, Apr 25, 2015 at 5:47 AM, Damian Bernardini
<damian.bernardini@gmail.com> wrote:
> I'm trying to use ledger blocks inside org with babel:
<<snip>>
> I can evaluate and get results from income and expenses blocks, but when I
> try to run C-c C-c on balance block I get:
> Symbol's function definition is void: org-id-find-id-file

I have no problem doing a balance report.

My transactions sit in a block like this:

#+name: hcfgeneralledger :noweb yes
#+begin_src ledger
... etc
... etc
#+end_src

And then I use this to get the balance report. C-c C-c on the line
<<hcfgeneralldeger>>, for instance.

#+name: balance
#+begin_src ledger :cmdline -s bal :noweb yes
<<hcfgeneralledger>>
#+end_src


-- 
Bob Newell
Honolulu, Hawai`i

Sent via Linux Mint 17.

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

* Re: Source code evaluation problem
  2015-04-25 15:47 Source code evaluation problem Damian Bernardini
  2015-04-25 17:14 ` Bob Newell
@ 2015-04-25 17:35 ` Eric S Fraga
  2015-04-25 17:55   ` Damian Bernardini
  1 sibling, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2015-04-25 17:35 UTC (permalink / raw)
  To: Damian Bernardini; +Cc: emacs-orgmode

On Saturday, 25 Apr 2015 at 15:47, Damian Bernardini wrote:
> I'm trying to use ledger blocks inside org with babel:

[...]

> I'm trying the noweb example from:
> http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html
>
> I can evaluate and get results from income and expenses blocks, but when I
> try to run C-c C-c on balance block I get:
> Symbol's function definition is void: org-id-find-id-file

What version of org are you using?  How are you loading org?

The error message you get is rather suspicious and makes me think you
might have an installation of org that is possibly a mix of old and new.
That function is in org-id.el which is required by org-attach which
itself is required by org...

What is the output of M-x find-library RET org RET?

Finally, maybe prepare a minimal example and post it to this list.  I
use ledger in org all the time and it works fine.  
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1062-gce4e64

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

* Re: Source code evaluation problem
  2015-04-25 17:35 ` Eric S Fraga
@ 2015-04-25 17:55   ` Damian Bernardini
  2015-04-25 18:26     ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Damian Bernardini @ 2015-04-25 17:55 UTC (permalink / raw)
  To: Damian Bernardini, emacs-orgmode

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

You were right.
If I do M-x org-version it says:
Org-mode version 8.3beta (release_8.3beta-1062-gce4e64-git @ mixed
installation! /usr/share/emacs/24.5/lisp/org/ and
/home/damian/git/org-mode/lisp/)

I've downloaded org from git and loaded it with:
(add-to-list 'load-path "~/git/org-mode/lisp")
(add-to-list 'load-path "~/git/org-mode/contrib/lisp")

How can I tell emacs to not load the /usr/share/emacs/24.5/lisp/org package?

2015-04-25 17:35 GMT+00:00 Eric S Fraga <e.fraga@ucl.ac.uk>:

> On Saturday, 25 Apr 2015 at 15:47, Damian Bernardini wrote:
> > I'm trying to use ledger blocks inside org with babel:
>
> [...]
>
> > I'm trying the noweb example from:
> > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html
> >
> > I can evaluate and get results from income and expenses blocks, but when
> I
> > try to run C-c C-c on balance block I get:
> > Symbol's function definition is void: org-id-find-id-file
>
> What version of org are you using?  How are you loading org?
>
> The error message you get is rather suspicious and makes me think you
> might have an installation of org that is possibly a mix of old and new.
> That function is in org-id.el which is required by org-attach which
> itself is required by org...
>
> What is the output of M-x find-library RET org RET?
>
> Finally, maybe prepare a minimal example and post it to this list.  I
> use ledger in org all the time and it works fine.
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org
> release_8.3beta-1062-gce4e64
>

[-- Attachment #2: Type: text/html, Size: 2217 bytes --]

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

* Re: Source code evaluation problem
  2015-04-25 17:55   ` Damian Bernardini
@ 2015-04-25 18:26     ` Eric S Fraga
  2015-04-25 18:35       ` Damian Bernardini
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2015-04-25 18:26 UTC (permalink / raw)
  To: Damian Bernardini; +Cc: emacs-orgmode

On Saturday, 25 Apr 2015 at 17:55, Damian Bernardini wrote:
> You were right.
> If I do M-x org-version it says:
> Org-mode version 8.3beta (release_8.3beta-1062-gce4e64-git @ mixed
> installation! /usr/share/emacs/24.5/lisp/org/ and
> /home/damian/git/org-mode/lisp/)
>
> I've downloaded org from git and loaded it with:
> (add-to-list 'load-path "~/git/org-mode/lisp")
> (add-to-list 'load-path "~/git/org-mode/contrib/lisp")

which is what I have:

  (add-to-list 'load-path "~/git/org-mode/lisp")
  (add-to-list 'load-path "~/git/org-mode/contrib/lisp/")
  (require 'org)

Maybe you have something earlier in your initialisation that brings in
the old version?  Have you done "make" in your ~/git/org-mode directory?

What happens if you start emacs with -Q, execute the lines above
and then visit your ledger org file?

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1062-gce4e64

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

* Re: Source code evaluation problem
  2015-04-25 18:26     ` Eric S Fraga
@ 2015-04-25 18:35       ` Damian Bernardini
  2015-04-27  9:30         ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Damian Bernardini @ 2015-04-25 18:35 UTC (permalink / raw)
  To: Damian Bernardini, emacs-orgmode

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

After a reinstallation I forgot to do make autoloads.
Now, it's working perfectly.
It was my mistake, sorry and thank you for your help.

2015-04-25 18:26 GMT+00:00 Eric S Fraga <e.fraga@ucl.ac.uk>:

> On Saturday, 25 Apr 2015 at 17:55, Damian Bernardini wrote:
> > You were right.
> > If I do M-x org-version it says:
> > Org-mode version 8.3beta (release_8.3beta-1062-gce4e64-git @ mixed
> > installation! /usr/share/emacs/24.5/lisp/org/ and
> > /home/damian/git/org-mode/lisp/)
> >
> > I've downloaded org from git and loaded it with:
> > (add-to-list 'load-path "~/git/org-mode/lisp")
> > (add-to-list 'load-path "~/git/org-mode/contrib/lisp")
>
> which is what I have:
>
>   (add-to-list 'load-path "~/git/org-mode/lisp")
>   (add-to-list 'load-path "~/git/org-mode/contrib/lisp/")
>   (require 'org)
>
> Maybe you have something earlier in your initialisation that brings in
> the old version?  Have you done "make" in your ~/git/org-mode directory?
>
> What happens if you start emacs with -Q, execute the lines above
> and then visit your ledger org file?
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org
> release_8.3beta-1062-gce4e64
>

[-- Attachment #2: Type: text/html, Size: 1735 bytes --]

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

* Re: Source code evaluation problem
  2015-04-25 18:35       ` Damian Bernardini
@ 2015-04-27  9:30         ` Eric S Fraga
  0 siblings, 0 replies; 7+ messages in thread
From: Eric S Fraga @ 2015-04-27  9:30 UTC (permalink / raw)
  To: Damian Bernardini; +Cc: emacs-orgmode

On Saturday, 25 Apr 2015 at 18:35, Damian Bernardini wrote:
> After a reinstallation I forgot to do make autoloads.
> Now, it's working perfectly.
> It was my mistake, sorry and thank you for your help.

No problem; it happens to all of us at some point...  Glad that you
sorted it out.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1062-gce4e64

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

end of thread, other threads:[~2015-04-27  9:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-25 15:47 Source code evaluation problem Damian Bernardini
2015-04-25 17:14 ` Bob Newell
2015-04-25 17:35 ` Eric S Fraga
2015-04-25 17:55   ` Damian Bernardini
2015-04-25 18:26     ` Eric S Fraga
2015-04-25 18:35       ` Damian Bernardini
2015-04-27  9:30         ` Eric S Fraga

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