* org-babel problem @ 2010-11-25 19:10 Erik Butz 2010-11-25 19:55 ` Dan Davison 2010-11-25 19:58 ` Sébastien Vauban 0 siblings, 2 replies; 7+ messages in thread From: Erik Butz @ 2010-11-25 19:10 UTC (permalink / raw) To: emacs-orgmode Hi all, I am trying to run some org-babel code, but while this used to work in the past, I am now getting an error which says "Symbol's function definition is void: org-babel-get-header" Somehow I am puzzled, since this function is defined in lisp/ob.el and since this file provides 'ob and I have (require 'ob) in my .emacs I don't see why this should happen. Is there any check I should perform to see where and why this is failing? I am using GNU Emacs 23.1. with Org-mode version 7.3 (release_7.3.130.g9cc1) even though I somehow suspect that it's not either of the software versions that is responsible for this. Any hints appreciated. Thanks, Erik ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-babel problem 2010-11-25 19:10 org-babel problem Erik Butz @ 2010-11-25 19:55 ` Dan Davison 2010-11-25 19:58 ` Sébastien Vauban 1 sibling, 0 replies; 7+ messages in thread From: Dan Davison @ 2010-11-25 19:55 UTC (permalink / raw) To: Erik Butz; +Cc: emacs-orgmode Erik Butz <erik.butz@googlemail.com> writes: > Hi all, > > I am trying to run some org-babel code, but while this used to work in > the past, I am now getting an error which says > > "Symbol's function definition is void: org-babel-get-header" > > Somehow I am puzzled, since this function is defined in lisp/ob.el and > since this file provides 'ob and I have (require 'ob) in my .emacs I > don't see why this should happen. > > Is there any check I should perform to see where and why this is failing? Hi Erik, Apologies if this is obvious, but are you sure you don't have out of date *.elc files in org-mode/lisp? Try manually deleting the *.elc, or running 'make clean', to get rid of them and then restart org (C-c C-x !). If that works then optionally run make again to recompile them. Dan > > I am using GNU Emacs 23.1. with Org-mode version 7.3 > (release_7.3.130.g9cc1) even though I somehow suspect that it's not > either of the software versions that is responsible for this. > > Any hints appreciated. > > Thanks, > > Erik > > _______________________________________________ > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-babel problem 2010-11-25 19:10 org-babel problem Erik Butz 2010-11-25 19:55 ` Dan Davison @ 2010-11-25 19:58 ` Sébastien Vauban 2010-11-25 21:04 ` Erik Butz 1 sibling, 1 reply; 7+ messages in thread From: Sébastien Vauban @ 2010-11-25 19:58 UTC (permalink / raw) To: emacs-orgmode-mXXj517/zsQ Hi Erik, Erik Butz wrote: > I am trying to run some org-babel code, but while this used to work in > the past, I am now getting an error which says > > "Symbol's function definition is void: org-babel-get-header" The function is defined in my installation. Git version of yesterday. > Somehow I am puzzled, since this function is defined in lisp/ob.el and > since this file provides 'ob and I have (require 'ob) in my .emacs I > don't see why this should happen. Are you sure it really *is* loaded? What happens if you C-x C-e after the require line? > Is there any check I should perform to see where and why this is failing? > > I am using GNU Emacs 23.1. with Org-mode version 7.3 > (release_7.3.130.g9cc1) even though I somehow suspect that it's not > either of the software versions that is responsible for this. > > Any hints appreciated. Maybe you code post your block, or a stripped down version of it, if you want me to try and use it? In any case, AFAIK, it /should/ not fail here with the above message... Best regards, Seb -- Sébastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: org-babel problem 2010-11-25 19:58 ` Sébastien Vauban @ 2010-11-25 21:04 ` Erik Butz 2010-11-26 10:45 ` Sebastian Hofer 0 siblings, 1 reply; 7+ messages in thread From: Erik Butz @ 2010-11-25 21:04 UTC (permalink / raw) To: Sébastien Vauban; +Cc: emacs-orgmode Hi, thanks for the replies. It obviously was something stupid. I did not execute babel code for quite some time, and for some reason I still had a (setq load-path (cons "/home/erik/elisp/org-mode/lisp/babel" load-path)) in my .emacs and apparently I did not clean up enough and so the ob.elc file in that directory then shadowed the one in the /lisp directory. I tried a clean 'git clone' and there it worked and indeed that directory is not even there. How would I remove that old /lisp/babel directory using git? Typically I just do a 'git pull' and then 'make clean' 'make' to update, but that obviously can lead to problems. Thanks again, Erik 2010/11/25 Sébastien Vauban <wxhgmqzgwmuf@spammotel.com>: > Hi Erik, > > Erik Butz wrote: >> I am trying to run some org-babel code, but while this used to work in >> the past, I am now getting an error which says >> >> "Symbol's function definition is void: org-babel-get-header" > > The function is defined in my installation. Git version of yesterday. > >> Somehow I am puzzled, since this function is defined in lisp/ob.el and >> since this file provides 'ob and I have (require 'ob) in my .emacs I >> don't see why this should happen. > > Are you sure it really *is* loaded? What happens if you C-x C-e after the > require line? > >> Is there any check I should perform to see where and why this is failing? >> >> I am using GNU Emacs 23.1. with Org-mode version 7.3 >> (release_7.3.130.g9cc1) even though I somehow suspect that it's not >> either of the software versions that is responsible for this. >> >> Any hints appreciated. > > Maybe you code post your block, or a stripped down version of it, if you want > me to try and use it? > > In any case, AFAIK, it /should/ not fail here with the above message... > > Best regards, > Seb > > -- > Sébastien Vauban > > > _______________________________________________ > 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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-babel problem 2010-11-25 21:04 ` Erik Butz @ 2010-11-26 10:45 ` Sebastian Hofer 2010-11-26 12:37 ` Erik Butz 0 siblings, 1 reply; 7+ messages in thread From: Sebastian Hofer @ 2010-11-26 10:45 UTC (permalink / raw) To: emacs-orgmode; +Cc: Sébastien Vauban For the record, I was having the exact same problem, just didn't have the time to post it. So it's not just you! I just deleted the babel directory now everything is fine again. git didn't even notice it was gone. Thanks for finding the culprit! Sebastian At Thu, 25 Nov 2010 22:04:22 +0100, Erik Butz wrote: > > Hi, > > thanks for the replies. It obviously was something stupid. I did not > execute babel code for quite some time, and for some reason I still > had a > (setq load-path (cons "/home/erik/elisp/org-mode/lisp/babel" load-path)) > > in my .emacs and apparently I did not clean up enough and so the > ob.elc file in that directory then shadowed the one in the /lisp > directory. I tried a clean 'git clone' and there it worked and indeed > that directory is not even there. How would I remove that old > /lisp/babel directory using git? Typically I just do a 'git pull' and > then 'make clean' 'make' to update, but that obviously can lead to > problems. > > Thanks again, > > Erik > > > > 2010/11/25 Sébastien Vauban <wxhgmqzgwmuf@spammotel.com>: > > Hi Erik, > > > > Erik Butz wrote: > >> I am trying to run some org-babel code, but while this used to work in > >> the past, I am now getting an error which says > >> > >> "Symbol's function definition is void: org-babel-get-header" > > > > The function is defined in my installation. Git version of yesterday. > > > >> Somehow I am puzzled, since this function is defined in lisp/ob.el and > >> since this file provides 'ob and I have (require 'ob) in my .emacs I > >> don't see why this should happen. > > > > Are you sure it really *is* loaded? What happens if you C-x C-e after the > > require line? > > > >> Is there any check I should perform to see where and why this is failing? > >> > >> I am using GNU Emacs 23.1. with Org-mode version 7.3 > >> (release_7.3.130.g9cc1) even though I somehow suspect that it's not > >> either of the software versions that is responsible for this. > >> > >> Any hints appreciated. > > > > Maybe you code post your block, or a stripped down version of it, if you want > > me to try and use it? > > > > In any case, AFAIK, it /should/ not fail here with the above message... > > > > Best regards, > > Seb > > > > -- > > Sébastien Vauban > > > > > > _______________________________________________ > > 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 > > > > _______________________________________________ > 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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: org-babel problem 2010-11-26 10:45 ` Sebastian Hofer @ 2010-11-26 12:37 ` Erik Butz 2010-11-26 13:14 ` Dan Davison 0 siblings, 1 reply; 7+ messages in thread From: Erik Butz @ 2010-11-26 12:37 UTC (permalink / raw) To: Sebastian Hofer; +Cc: Sébastien Vauban, emacs-orgmode Hi, people with more git experience should comment here, but it seems with: ~/elisp/org-mode $ git status you will get a list of currently untracked files in the local working directory. These are of course both files or directories deleted from the repository (as /lisp/babel) but also files that you included locally to extend your local installation. In my case the above yielded: # On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # Makefile.old # contrib/docbook2twiki.xsl # contrib/lisp/org-taskjuggler.el # lisp/babel/ # lisp/org-R.el # lisp/org-twiki.el nothing added to commit but untracked files present (use "git add" to track) so the lisp/babel directory shows up there. In principle there is "git clean", but looking at what it would do: > git clean -n Would remove Makefile.old Would remove contrib/docbook2twiki.xsl Would remove contrib/lisp/org-taskjuggler.el Would not remove lisp/babel/ Would remove lisp/org-R.el Would remove lisp/org-twiki.el it explicitly states that it would NOT remove the lisp/babel directory. But at least both these things can tell you what is maybe still there but not actually in the repository anymore (+your personal files). If anyone has a good way to keep the installation clean w/o having to make a new clone each time, any hints would be appreciated ;) Thanks, Erik On Fri, Nov 26, 2010 at 11:45 AM, Sebastian Hofer <sebhofer@gmail.com> wrote: > For the record, I was having the exact same problem, just didn't have the time to post it. So it's not just you! > I just deleted the babel directory now everything is fine again. git didn't even notice it was gone. > > Thanks for finding the culprit! > Sebastian > > At Thu, 25 Nov 2010 22:04:22 +0100, > Erik Butz wrote: >> >> Hi, >> >> thanks for the replies. It obviously was something stupid. I did not >> execute babel code for quite some time, and for some reason I still >> had a >> (setq load-path (cons "/home/erik/elisp/org-mode/lisp/babel" load-path)) >> >> in my .emacs and apparently I did not clean up enough and so the >> ob.elc file in that directory then shadowed the one in the /lisp >> directory. I tried a clean 'git clone' and there it worked and indeed >> that directory is not even there. How would I remove that old >> /lisp/babel directory using git? Typically I just do a 'git pull' and >> then 'make clean' 'make' to update, but that obviously can lead to >> problems. >> >> Thanks again, >> >> Erik >> >> >> >> 2010/11/25 Sébastien Vauban <wxhgmqzgwmuf@spammotel.com>: >> > Hi Erik, >> > >> > Erik Butz wrote: >> >> I am trying to run some org-babel code, but while this used to work in >> >> the past, I am now getting an error which says >> >> >> >> "Symbol's function definition is void: org-babel-get-header" >> > >> > The function is defined in my installation. Git version of yesterday. >> > >> >> Somehow I am puzzled, since this function is defined in lisp/ob.el and >> >> since this file provides 'ob and I have (require 'ob) in my .emacs I >> >> don't see why this should happen. >> > >> > Are you sure it really *is* loaded? What happens if you C-x C-e after the >> > require line? >> > >> >> Is there any check I should perform to see where and why this is failing? >> >> >> >> I am using GNU Emacs 23.1. with Org-mode version 7.3 >> >> (release_7.3.130.g9cc1) even though I somehow suspect that it's not >> >> either of the software versions that is responsible for this. >> >> >> >> Any hints appreciated. >> > >> > Maybe you code post your block, or a stripped down version of it, if you want >> > me to try and use it? >> > >> > In any case, AFAIK, it /should/ not fail here with the above message... >> > >> > Best regards, >> > Seb >> > >> > -- >> > Sébastien Vauban >> > >> > >> > _______________________________________________ >> > 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 >> > >> >> _______________________________________________ >> 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 >> > > > > _______________________________________________ > 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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-babel problem 2010-11-26 12:37 ` Erik Butz @ 2010-11-26 13:14 ` Dan Davison 0 siblings, 0 replies; 7+ messages in thread From: Dan Davison @ 2010-11-26 13:14 UTC (permalink / raw) To: Erik Butz; +Cc: Sebastian Hofer, emacs-orgmode, Sébastien Vauban Erik Butz <erik.butz@googlemail.com> writes: > Hi, > > people with more git experience should comment here, but it seems with: > ~/elisp/org-mode $ git status > > you will get a list of currently untracked files in the local working > directory. These are of course both files or directories deleted from > the repository (as /lisp/babel) but also files that you included > locally to extend your local installation. > > In my case the above yielded: > # On branch master > # Untracked files: > # (use "git add <file>..." to include in what will be committed) > # > # Makefile.old > # contrib/docbook2twiki.xsl > # contrib/lisp/org-taskjuggler.el > # lisp/babel/ > # lisp/org-R.el > # lisp/org-twiki.el > nothing added to commit but untracked files present (use "git add" to track) > > so the lisp/babel directory shows up there. In principle there is "git > clean", but looking at what it would do: >> git clean -n > Would remove Makefile.old > Would remove contrib/docbook2twiki.xsl > Would remove contrib/lisp/org-taskjuggler.el > Would not remove lisp/babel/ > Would remove lisp/org-R.el > Would remove lisp/org-twiki.el > > it explicitly states that it would NOT remove the lisp/babel > directory. Hi Eric, See the -d option to git clean ,---- | -d Remove untracked directories in addition to untracked files. If an | untracked directory is managed by a different git repository, | it is not removed by default. Use -f option twice if you | really want to remove such a directory. `---- I believe that this is a correct solution, seeing as git status is showing you that the directory is not currently being tracked. As to how it managed to persist on your file system despite it being deleted in the org repo, not sure. Dan > But at least both these things can tell you what is maybe > still there but not actually in the repository anymore (+your personal > files). > > If anyone has a good way to keep the installation clean w/o having to > make a new clone each time, any hints would be appreciated ;) > > Thanks, > > Erik > > > On Fri, Nov 26, 2010 at 11:45 AM, Sebastian Hofer <sebhofer@gmail.com> wrote: >> For the record, I was having the exact same problem, just didn't have the time to post it. So it's not just you! >> I just deleted the babel directory now everything is fine again. git didn't even notice it was gone. >> >> Thanks for finding the culprit! >> Sebastian >> >> At Thu, 25 Nov 2010 22:04:22 +0100, >> Erik Butz wrote: >>> >>> Hi, >>> >>> thanks for the replies. It obviously was something stupid. I did not >>> execute babel code for quite some time, and for some reason I still >>> had a >>> (setq load-path (cons "/home/erik/elisp/org-mode/lisp/babel" load-path)) >>> >>> in my .emacs and apparently I did not clean up enough and so the >>> ob.elc file in that directory then shadowed the one in the /lisp >>> directory. I tried a clean 'git clone' and there it worked and indeed >>> that directory is not even there. How would I remove that old >>> /lisp/babel directory using git? Typically I just do a 'git pull' and >>> then 'make clean' 'make' to update, but that obviously can lead to >>> problems. >>> >>> Thanks again, >>> >>> Erik >>> >>> >>> >>> 2010/11/25 Sébastien Vauban <wxhgmqzgwmuf@spammotel.com>: >>> > Hi Erik, >>> > >>> > Erik Butz wrote: >>> >> I am trying to run some org-babel code, but while this used to work in >>> >> the past, I am now getting an error which says >>> >> >>> >> "Symbol's function definition is void: org-babel-get-header" >>> > >>> > The function is defined in my installation. Git version of yesterday. >>> > >>> >> Somehow I am puzzled, since this function is defined in lisp/ob.el and >>> >> since this file provides 'ob and I have (require 'ob) in my .emacs I >>> >> don't see why this should happen. >>> > >>> > Are you sure it really *is* loaded? What happens if you C-x C-e after the >>> > require line? >>> > >>> >> Is there any check I should perform to see where and why this is failing? >>> >> >>> >> I am using GNU Emacs 23.1. with Org-mode version 7.3 >>> >> (release_7.3.130.g9cc1) even though I somehow suspect that it's not >>> >> either of the software versions that is responsible for this. >>> >> >>> >> Any hints appreciated. >>> > >>> > Maybe you code post your block, or a stripped down version of it, if you want >>> > me to try and use it? >>> > >>> > In any case, AFAIK, it /should/ not fail here with the above message... >>> > >>> > Best regards, >>> > Seb >>> > >>> > -- >>> > Sébastien Vauban >>> > >>> > >>> > _______________________________________________ >>> > 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 >>> > >>> >>> _______________________________________________ >>> 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 >>> >> >> >> >> _______________________________________________ >> 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 >> > > _______________________________________________ > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-26 13:14 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-11-25 19:10 org-babel problem Erik Butz 2010-11-25 19:55 ` Dan Davison 2010-11-25 19:58 ` Sébastien Vauban 2010-11-25 21:04 ` Erik Butz 2010-11-26 10:45 ` Sebastian Hofer 2010-11-26 12:37 ` Erik Butz 2010-11-26 13: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).