* babel setup @ 2014-06-09 5:18 Shiyuan 2014-06-09 10:00 ` Jacob Gerlach ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Shiyuan @ 2014-06-09 5:18 UTC (permalink / raw To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 567 bytes --] Hi all, I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) I followed this instruction http://orgmode.org/worg/org-contrib/babel/languages.html#configure and added the following to my .emacs file. (org-babel-do-load-languages 'org-babel-load-languages '((python . t) (emacs-lisp . t))) After that, org-mode mysteriously switched back to the old version 7.9. Another problem is that export command C-c C-e no longer works and generates error: Symbol's function definition is void: org-defvaralias. Is there any step I missed? Thanks. Shiyuan [-- Attachment #2: Type: text/html, Size: 928 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: babel setup 2014-06-09 5:18 babel setup Shiyuan @ 2014-06-09 10:00 ` Jacob Gerlach 2014-06-09 13:48 ` Omid 2014-06-09 14:54 ` Jorge A. Alfaro-Murillo 2 siblings, 0 replies; 8+ messages in thread From: Jacob Gerlach @ 2014-06-09 10:00 UTC (permalink / raw To: Shiyuan; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1001 bytes --] I think this has to do with autoload, but I am not an emacs or org expert. Try making sure that (package-initialize) comes before any org functions in your .emacs (from the answer here <http://stackoverflow.com/questions/17416738/emacs-initialization-as-org-file-how-can-i-get-the-right-version-of-org-mode> ). HTH, Jake On Mon, Jun 9, 2014 at 1:18 AM, Shiyuan <gshy2014@gmail.com> wrote: > Hi all, > I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) > I followed this instruction > http://orgmode.org/worg/org-contrib/babel/languages.html#configure > > and added the following to my .emacs file. > > (org-babel-do-load-languages > 'org-babel-load-languages > '((python . t) > (emacs-lisp . t))) > > After that, org-mode mysteriously switched back to the old version 7.9. > Another problem is that export command C-c C-e no longer works and > generates error: Symbol's function definition is void: org-defvaralias. Is > there any step I missed? Thanks. > > Shiyuan > > > > [-- Attachment #2: Type: text/html, Size: 1788 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: babel setup 2014-06-09 5:18 babel setup Shiyuan 2014-06-09 10:00 ` Jacob Gerlach @ 2014-06-09 13:48 ` Omid 2014-06-09 18:39 ` Shiyuan 2014-06-09 14:54 ` Jorge A. Alfaro-Murillo 2 siblings, 1 reply; 8+ messages in thread From: Omid @ 2014-06-09 13:48 UTC (permalink / raw To: emacs-orgmode What else do you have in your .emacs related to Org? (BTW, it would be much better if you could write a more detailed subject line than "babel setup" like "Using org-babel-do-load-languages causes Org mode to switch to older version" so that the right people on the list can more easily prioritize answering to your email based on how urgent it is.) On 06/09/2014 01:18 AM, Shiyuan wrote: > Hi all, > I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) > I followed this > instruction http://orgmode.org/worg/org-contrib/babel/languages.html#configure > > and added the following to my .emacs file. > > (org-babel-do-load-languages > 'org-babel-load-languages > '((python . t) > (emacs-lisp . t))) > > After that, org-mode mysteriously switched back to the old version 7.9. > Another problem is that export command C-c C-e no longer works and > generates error: Symbol's function definition is void: org-defvaralias. > Is there any step I missed? Thanks. > > Shiyuan > > > -- Omid Sent from my Emacs GPG: 0x371DC12B (see https://u.fsf.org/yw) ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: babel setup 2014-06-09 13:48 ` Omid @ 2014-06-09 18:39 ` Shiyuan 0 siblings, 0 replies; 8+ messages in thread From: Shiyuan @ 2014-06-09 18:39 UTC (permalink / raw To: Omid; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1368 bytes --] No, I don't have anything else in my .emacs. Thanks for the suggestion for subject line. Next time, I will write more meaningful(and longer) subject line. On Mon, Jun 9, 2014 at 6:48 AM, Omid <omidlink@gmail.com> wrote: > What else do you have in your .emacs related to Org? > > (BTW, it would be much better if you could write a more detailed > subject line than "babel setup" like "Using > org-babel-do-load-languages causes Org mode to switch to older > version" so that the right people on the list can more easily > prioritize answering to your email based on how urgent it is.) > > On 06/09/2014 01:18 AM, Shiyuan wrote: > > Hi all, > > I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) > > I followed this > > instruction > http://orgmode.org/worg/org-contrib/babel/languages.html#configure > > > > and added the following to my .emacs file. > > > > (org-babel-do-load-languages > > 'org-babel-load-languages > > '((python . t) > > (emacs-lisp . t))) > > > > After that, org-mode mysteriously switched back to the old version 7.9. > > Another problem is that export command C-c C-e no longer works and > > generates error: Symbol's function definition is void: org-defvaralias. > > Is there any step I missed? Thanks. > > > > Shiyuan > > > > > > > > -- > Omid > > Sent from my Emacs > GPG: 0x371DC12B (see https://u.fsf.org/yw) > > [-- Attachment #2: Type: text/html, Size: 2329 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: babel setup 2014-06-09 5:18 babel setup Shiyuan 2014-06-09 10:00 ` Jacob Gerlach 2014-06-09 13:48 ` Omid @ 2014-06-09 14:54 ` Jorge A. Alfaro-Murillo 2014-06-09 15:03 ` psycho_punch 2014-06-09 18:40 ` Shiyuan 2 siblings, 2 replies; 8+ messages in thread From: Jorge A. Alfaro-Murillo @ 2014-06-09 14:54 UTC (permalink / raw To: emacs-orgmode Shiyuan <gshy2014@gmail.com> writes: > Hi all, > I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) > I followed this instruction > http://orgmode.org/worg/org-contrib/babel/languages.html#configure > > and added the following to my .emacs file. > > (org-babel-do-load-languages > 'org-babel-load-languages > '((python . t) > (emacs-lisp . t))) > > After that, org-mode mysteriously switched back to the old version > 7.9. Another problem is that export command C-c C-e no longer works > and generates error: Symbol's function definition is void: > org-defvaralias. Is there any step I missed? Thanks. > > Shiyuan Hi Shiyuan, Have you tried to put (package-initialize) early (say first line) in your .emacs? Best, Jorge. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: babel setup 2014-06-09 14:54 ` Jorge A. Alfaro-Murillo @ 2014-06-09 15:03 ` psycho_punch 2014-06-09 18:44 ` Shiyuan 2014-06-09 18:40 ` Shiyuan 1 sibling, 1 reply; 8+ messages in thread From: psycho_punch @ 2014-06-09 15:03 UTC (permalink / raw To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1451 bytes --] Yes, I had the same problem earlier (see the thread on required 'ox-publish). Here's what I did: First, I noticed that the packages get loaded only after initialization, so I put my org-related initialization script in the after-init-hook. Then after other people here told me about (package-initialize), I just placed it somewhere in the beginning of my emacs initialization script, and it worked as well. I also removed a similar script for setting up babel since I noticed my installation works without it anyway. I think those languages are supported by default. On Mon, Jun 9, 2014 at 10:54 PM, Jorge A. Alfaro-Murillo < jorge.a.alfaro@gmail.com> wrote: > Shiyuan <gshy2014@gmail.com> writes: > > > Hi all, > > I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) > > I followed this instruction > > http://orgmode.org/worg/org-contrib/babel/languages.html#configure > > > > and added the following to my .emacs file. > > > > (org-babel-do-load-languages > > 'org-babel-load-languages > > '((python . t) > > (emacs-lisp . t))) > > > > After that, org-mode mysteriously switched back to the old version > > 7.9. Another problem is that export command C-c C-e no longer works > > and generates error: Symbol's function definition is void: > > org-defvaralias. Is there any step I missed? Thanks. > > > > Shiyuan > > Hi Shiyuan, > > Have you tried to put (package-initialize) early (say first line) in > your .emacs? > > Best, > > Jorge. > > > [-- Attachment #2: Type: text/html, Size: 2112 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: babel setup 2014-06-09 15:03 ` psycho_punch @ 2014-06-09 18:44 ` Shiyuan 0 siblings, 0 replies; 8+ messages in thread From: Shiyuan @ 2014-06-09 18:44 UTC (permalink / raw To: psychopunch.me; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1815 bytes --] For me, without the setup step, python/latex doesn't work by default. `C-c C-c` gives me the error : org-babel-execute-src-block: No org-babel-execute function for latex! But with the setup step, `C-c C-c` works now. On Mon, Jun 9, 2014 at 8:03 AM, psycho_punch <psychopunchme@gmail.com> wrote: > Yes, I had the same problem earlier (see the thread on required > 'ox-publish). Here's what I did: > > First, I noticed that the packages get loaded only after initialization, > so I put my org-related initialization script in the after-init-hook. Then > after other people here told me about (package-initialize), I just placed > it somewhere in the beginning of my emacs initialization script, and it > worked as well. > > I also removed a similar script for setting up babel since I noticed my > installation works without it anyway. I think those languages are supported > by default. > > > > On Mon, Jun 9, 2014 at 10:54 PM, Jorge A. Alfaro-Murillo < > jorge.a.alfaro@gmail.com> wrote: > >> Shiyuan <gshy2014@gmail.com> writes: >> >> > Hi all, >> > I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) >> > I followed this instruction >> > http://orgmode.org/worg/org-contrib/babel/languages.html#configure >> > >> > and added the following to my .emacs file. >> > >> > (org-babel-do-load-languages >> > 'org-babel-load-languages >> > '((python . t) >> > (emacs-lisp . t))) >> > >> > After that, org-mode mysteriously switched back to the old version >> > 7.9. Another problem is that export command C-c C-e no longer works >> > and generates error: Symbol's function definition is void: >> > org-defvaralias. Is there any step I missed? Thanks. >> > >> > Shiyuan >> >> Hi Shiyuan, >> >> Have you tried to put (package-initialize) early (say first line) in >> your .emacs? >> >> Best, >> >> Jorge. >> >> >> > [-- Attachment #2: Type: text/html, Size: 2827 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: babel setup 2014-06-09 14:54 ` Jorge A. Alfaro-Murillo 2014-06-09 15:03 ` psycho_punch @ 2014-06-09 18:40 ` Shiyuan 1 sibling, 0 replies; 8+ messages in thread From: Shiyuan @ 2014-06-09 18:40 UTC (permalink / raw To: Jorge A. Alfaro-Murillo; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 992 bytes --] Yes. Putting (package-initialize) immediately before the (org-babel-do-load-languages ...) solves the problem. On Mon, Jun 9, 2014 at 7:54 AM, Jorge A. Alfaro-Murillo < jorge.a.alfaro@gmail.com> wrote: > Shiyuan <gshy2014@gmail.com> writes: > > > Hi all, > > I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) > > I followed this instruction > > http://orgmode.org/worg/org-contrib/babel/languages.html#configure > > > > and added the following to my .emacs file. > > > > (org-babel-do-load-languages > > 'org-babel-load-languages > > '((python . t) > > (emacs-lisp . t))) > > > > After that, org-mode mysteriously switched back to the old version > > 7.9. Another problem is that export command C-c C-e no longer works > > and generates error: Symbol's function definition is void: > > org-defvaralias. Is there any step I missed? Thanks. > > > > Shiyuan > > Hi Shiyuan, > > Have you tried to put (package-initialize) early (say first line) in > your .emacs? > > Best, > > Jorge. > > > [-- Attachment #2: Type: text/html, Size: 1815 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-06-09 18:44 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-06-09 5:18 babel setup Shiyuan 2014-06-09 10:00 ` Jacob Gerlach 2014-06-09 13:48 ` Omid 2014-06-09 18:39 ` Shiyuan 2014-06-09 14:54 ` Jorge A. Alfaro-Murillo 2014-06-09 15:03 ` psycho_punch 2014-06-09 18:44 ` Shiyuan 2014-06-09 18:40 ` Shiyuan
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.