Re: [O] (require 'org-publish) causes downgrade in org-version
Ok, so apparently, ox-publish doesn't get loaded after init in my setup; I'm not sure why. What I have done so far is to run the publish script after init using the after-init-hook. However, I feel like this shouldn't be how it's done. On Mon, Jun 9, 2014 at 1:42 PM, Achim Gratz strom...@nexgo.de wrote: psycho_punch writes: I have just upgraded org-mode to the latest available in ELPA. According to the official documentation, the installation has to be done in fresh emacs session where no org-related scripts/files have been loaded. The installation is successful, and org-version reports that I have updated to 8.2.6 (from 7.9.3f). However, as soon as I put back my old org-related scripts, and reload emacs, I'd get 7.9.3f when I run org-version. To track what's causing it I retrace my steps by adding my org-related scripts one by one. I found out that when I add back (require 'org-publish), the version downgrades to the built-in one. I don't know why this is happening. You need to replace this with (require 'ox-publish). As to why this is happening, you're sending Emacs down the wrong rabbit hole to search for Org and the autoload stuff will do the rest. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves
Re: [O] (require 'org-publish) causes downgrade in org-version
psycho_punch writes: Ok, so apparently, ox-publish doesn't get loaded after init in my setup; I'm not sure why. What I have done so far is to run the publish script after init using the after-init-hook. However, I feel like this shouldn't be how it's done. It's hard to tell, but you're likely trying to configure Org before package-initialize has run. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
Re: [O] (require 'org-publish) causes downgrade in org-version
I've defined my initialization script in ~/.emacs.d/init.el; I'm not sure if it matters. So since 'ox-publish doesn't get loaded until after initialization, I defined: (add-hook 'after-init-hook (lambda() (load-file /path/to/org-publish-project.el))) I'm wondering when do the packages installed via package-install get loaded... On Mon, Jun 9, 2014 at 7:04 PM, Achim Gratz strom...@nexgo.de wrote: psycho_punch writes: Ok, so apparently, ox-publish doesn't get loaded after init in my setup; I'm not sure why. What I have done so far is to run the publish script after init using the after-init-hook. However, I feel like this shouldn't be how it's done. It's hard to tell, but you're likely trying to configure Org before package-initialize has run. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
Re: [O] (require 'org-publish) causes downgrade in org-version
So I need to explicitly call (package-initialize) in init.el, probably one of the, if not the, first line? On Mon, Jun 9, 2014 at 7:59 PM, Alexis flexibe...@gmail.com wrote: psycho_punch writes: I've defined my initialization script in ~/.emacs.d/init.el; I'm not sure if it matters. So since 'ox-publish doesn't get loaded until after initialization, I defined: (add-hook 'after-init-hook (lambda() (load-file /path/to/org-publish-project.el))) I'm wondering when do the packages installed via package-install get loaded... They get loaded when (package-initialize) is called in one's initialisation file(s). Alexis.
Re: [O] (require 'org-publish) causes downgrade in org-version
psycho_punch psychopunc...@gmail.com writes: So I need to explicitly call (package-initialize) in init.el, probably one of the, if not the, first line? Yes, I had a similar issue with different versions from ELPA, and applying (package-initialize) early (first line in my .emacs) fixed.
Re: [O] (require 'org-publish) causes downgrade in org-version
Yup. That works, too. Thanks for all the help, everyone. On Mon, Jun 9, 2014 at 9:42 PM, Jorge A. Alfaro-Murillo jorge.a.alf...@gmail.com wrote: psycho_punch psychopunc...@gmail.com writes: So I need to explicitly call (package-initialize) in init.el, probably one of the, if not the, first line? Yes, I had a similar issue with different versions from ELPA, and applying (package-initialize) early (first line in my .emacs) fixed.
[O] (require 'org-publish) causes downgrade in org-version
I have posted this question on StackOverflow http://stackoverflow.com/questions/24111890/org-mode-require-org-publish-causes-downgrade-in-org-version but in case you don't want to visit the page, I've pasted the contents in this email. I have just upgraded org-mode to the latest available in ELPA. According to the official documentation, the installation has to be done in fresh emacs session where no org-related scripts/files have been loaded. The installation is successful, and org-version reports that I have updated to 8.2.6 (from 7.9.3f). However, as soon as I put back my old org-related scripts, and reload emacs, I'd get 7.9.3f when I run org-version. To track what's causing it I retrace my steps by adding my org-related scripts one by one. I found out that when I add back (require 'org-publish), the version downgrades to the built-in one. I don't know why this is happening. Thanks.
Re: [O] (require 'org-publish) causes downgrade in org-version
psycho_punch writes: I have just upgraded org-mode to the latest available in ELPA. According to the official documentation, the installation has to be done in fresh emacs session where no org-related scripts/files have been loaded. The installation is successful, and org-version reports that I have updated to 8.2.6 (from 7.9.3f). However, as soon as I put back my old org-related scripts, and reload emacs, I'd get 7.9.3f when I run org-version. To track what's causing it I retrace my steps by adding my org-related scripts one by one. I found out that when I add back (require 'org-publish), the version downgrades to the built-in one. I don't know why this is happening. You need to replace this with (require 'ox-publish). As to why this is happening, you're sending Emacs down the wrong rabbit hole to search for Org and the autoload stuff will do the rest. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves