From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damian Bernardini Subject: Source code evaluation problem Date: Sat, 25 Apr 2015 15:47:15 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f3ba00351165a05148e6d1d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym2UV-0000el-Ha for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 11:59:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ym2IX-0007C5-DN for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 11:47:18 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:37247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym2IX-0007Bn-61 for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 11:47:17 -0400 Received: by widdi4 with SMTP id di4so49057741wid.0 for ; Sat, 25 Apr 2015 08:47:15 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --e89a8f3ba00351165a05148e6d1d Content-Type: text/plain; charset=UTF-8 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. --e89a8f3ba00351165a05148e6d1d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm trying to use ledger blocks inside org with babel:=

Babel language config:
(org-babel-do-load-languages
=C2= =A0'org-babel-load-languages
=C2=A0'((R . t)
=C2=A0=C2=A0 (em= acs-lisp . t)
=C2=A0=C2=A0 (ledger . t)))

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

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

Ledger mode and ledger from the comma= nd line are working.

--e89a8f3ba00351165a05148e6d1d-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Newell Subject: Re: Source code evaluation problem Date: Sat, 25 Apr 2015 07:14:48 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym3fe-0004gd-Sy for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 13:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ym3fZ-0006hb-RN for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 13:15:14 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:33637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym3fZ-0006hH-M6 for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 13:15:09 -0400 Received: by wiax7 with SMTP id x7so55108179wia.0 for ; Sat, 25 Apr 2015 10:15:08 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Damian Bernardini Cc: Org-mode mailing list On Sat, Apr 25, 2015 at 5:47 AM, Damian Bernardini wrote: > I'm trying to use ledger blocks inside org with babel: <> > 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 <>, for instance. #+name: balance #+begin_src ledger :cmdline -s bal :noweb yes <> #+end_src -- Bob Newell Honolulu, Hawai`i Sent via Linux Mint 17. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Source code evaluation problem Date: Sat, 25 Apr 2015 18:35:27 +0100 Message-ID: <871tj82js0.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym3zQ-00049R-Bw for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 13:35:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ym3zM-0007Zg-B7 for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 13:35:40 -0400 Received: from mail-db3on0124.outbound.protection.outlook.com ([157.55.234.124]:2762 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym3zM-0007YJ-2Z for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 13:35:36 -0400 In-Reply-To: (Damian Bernardini's message of "Sat, 25 Apr 2015 15:47:15 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Damian Bernardini Cc: emacs-orgmode@gnu.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damian Bernardini Subject: Re: Source code evaluation problem Date: Sat, 25 Apr 2015 17:55:40 +0000 Message-ID: References: <871tj82js0.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c383e08ebb9f05149038cb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym4Io-0002a8-No for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 13:55:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ym4In-0006ha-9f for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 13:55:42 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:37347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym4Im-0006hT-Vy for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 13:55:41 -0400 Received: by widdi4 with SMTP id di4so50813485wid.0 for ; Sat, 25 Apr 2015 10:55:40 -0700 (PDT) In-Reply-To: <871tj82js0.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Damian Bernardini , emacs-orgmode@gnu.org --001a11c383e08ebb9f05149038cb Content-Type: text/plain; charset=UTF-8 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 : > 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 > --001a11c383e08ebb9f05149038cb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You were right.
If I do M-x org-ve= rsion it says:
Org-mode version 8.3beta (release_8.3beta-1062-gce4e64-gi= t @ mixed installation! /usr/share/emacs/24.5/lisp/org/ and /home/damian/gi= t/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 2= 015 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/la= nguages/ob-doc-ledger.html
>
> I can evaluate and get results from income and expenses blocks, but wh= en 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?=C2=A0 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.=C2=A0 I<= br> 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-gce4= e64

--001a11c383e08ebb9f05149038cb-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Source code evaluation problem Date: Sat, 25 Apr 2015 19:26:36 +0100 Message-ID: <87oamc12ub.fsf@ucl.ac.uk> References: <871tj82js0.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym4mu-0003NI-OM for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 14:26:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ym4mp-0002F8-Om for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 14:26:48 -0400 Received: from mail-am1on0110.outbound.protection.outlook.com ([157.56.112.110]:42859 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym4mp-0002EY-G5 for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 14:26:43 -0400 In-Reply-To: (Damian Bernardini's message of "Sat, 25 Apr 2015 17:55:40 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Damian Bernardini Cc: emacs-orgmode@gnu.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damian Bernardini Subject: Re: Source code evaluation problem Date: Sat, 25 Apr 2015 18:35:05 +0000 Message-ID: References: <871tj82js0.fsf@ucl.ac.uk> <87oamc12ub.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bfd0c0c8c8967051490c588 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym4uy-0001z5-1u for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 14:35:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ym4uw-0005st-Tf for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 14:35:07 -0400 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:32860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym4uw-0005qd-C5 for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 14:35:06 -0400 Received: by wgin8 with SMTP id n8so79523997wgi.0 for ; Sat, 25 Apr 2015 11:35:05 -0700 (PDT) In-Reply-To: <87oamc12ub.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Damian Bernardini , emacs-orgmode@gnu.org --047d7bfd0c0c8c8967051490c588 Content-Type: text/plain; charset=UTF-8 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 : > 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 > --047d7bfd0c0c8c8967051490c588 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
After a reinstallation I forgot to do make autol= oads.
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.fra= ga@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:

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

Maybe you have something earlier in your initialisation that brings in
the old version?=C2=A0 Have you done "make" in your ~/git/org-mod= e 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-gce4= e64

--047d7bfd0c0c8c8967051490c588-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Source code evaluation problem Date: Mon, 27 Apr 2015 10:30:41 +0100 Message-ID: <87mw1tkjem.fsf@ucl.ac.uk> References: <871tj82js0.fsf@ucl.ac.uk> <87oamc12ub.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmfNQ-00006O-PT for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 05:30:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmfNM-0003QI-JN for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 05:30:56 -0400 Received: from mail-am1on0114.outbound.protection.outlook.com ([157.56.112.114]:10574 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmfNM-0003OY-Di for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 05:30:52 -0400 In-Reply-To: (Damian Bernardini's message of "Sat, 25 Apr 2015 18:35:05 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Damian Bernardini Cc: emacs-orgmode@gnu.org 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