From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Lu Subject: Re: Upgrade to org 8.0 Date: Fri, 21 Jun 2013 16:15:41 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd9218a1bd23604dfafba21 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq7kH-00038R-BQ for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 16:15:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uq7kE-00010S-TC for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 16:15:45 -0400 Received: from mail-wg0-x241.google.com ([2a00:1450:400c:c00::241]:45535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq7kE-00010I-IW for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 16:15:42 -0400 Received: by mail-wg0-f65.google.com with SMTP id b12so2420102wgh.8 for ; Fri, 21 Jun 2013 13:15:41 -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: emacs-orgmode@gnu.org --047d7bd9218a1bd23604dfafba21 Content-Type: text/plain; charset=ISO-8859-1 This is so confusing... M-x org-version "Org-mode version 8.0.3 (8.0.3-dist @ /Users/LooChao/Dropbox/.emacs.d/lisp/org/)" M-x list-load-path-shadows: /Users/LooChao/Dropbox/.emacs.d/lisp/org/org hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org /Users/LooChao/Dropbox/.emacs.d/lisp/org/contrib/lisp/org-wl hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-wl /Users/LooChao/Dropbox/.emacs.d/lisp/org/org-w3m hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-w3m *M-x describe-function org-export* * * org-export is an interactive autoloaded compiled Lisp function in*`org-exp.el'. * * |* * This one is in /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/* * * This explains why I got the error when org-export-as-latex on test.org: * org-export-as-latex: Symbol's value as variable is void: org-export-latex-default-packages-alist * * * Totally lost why this is happening... On Fri, Jun 21, 2013 at 3:34 PM, Chao Lu wrote: > > > > On Fri, Jun 21, 2013 at 3:27 PM, Chao Lu wrote: > >> Thanks a lot for those replies, which are quite helpful. >> >> 1. lch-org.el and lch-org-export.el together completes my conf about org, >> which works before 8.0 >> >> 2. The version I installed is 8.0.3 tar ball instead of git, usually I do >> not prefer living at cutting edge. >> - M-x org-version --> "Org-mode version 8.0.3 (8.0.3-dist @ >> /Users/LooChao/Dropbox/.emacs.d/lisp/org/)" >> - Which reveals the org loaded is the one I installed, which is in my >> lisp dir. >> - I agree with John's advice -- keep the new version separate and >> some where in the load-path, which is ~/Dropbox/.emacs.d/lisp/org/ >> >> *3. M-x locate org-publish gives: >> '/Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-publish.elc', >> indicating my installation has something wrong... >> * >> * still working on it.* >> > ================ > * I just tried list-load-path-shadows, got outputs like:* > /Users/LooChao/Dropbox/.emacs.d/lisp/org/org hides > /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org > /Users/LooChao/Dropbox/.emacs.d/lisp/org/contrib/lisp/org-wl hides > /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-wl > /Users/LooChao/Dropbox/.emacs.d/lisp/org/org-w3m hides > /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-w3m > *...* > * > * > *which shows my installation is OK, I guess just the new version don't > have org-publish so the one bundled with emacs is not shadowed?* > ================= > >> Thanks, >> >> Chao >> >> >> On Fri, Jun 21, 2013 at 8:45 AM, John Hendy wrote: >> >>> >>> On Jun 21, 2013 2:43 AM, "Chao Lu" wrote: >>> > >>> > Dear list, >>> > >>> > I'm trying to upgrade to org 8.0.3 and met some difficulty that could >>> not solve. Please help. >>> > >>> > 1. About installation >>> > ---------------------------- >>> > Currently I'm using Emacs 24.3 under MacOSX mountain lion. >>> > The org mode shipped with this version of emacs is 7.9 >>> > >>> > I followed the instruction, successfully compiled org 8.0.3 and put >>> all the *.elc file into my load-path. >>> > Here is the first confusion: >>> > Before I was using (require 'org-install) to get org code evaluated. >>> Seems org-install is obsolete now, then what should I put in my .emacs to >>> get org loaded? >>> > >>> > Although I do know why, but seems my old settings get org(8.0.3) >>> loaded, i.e. M-x org-version gives 8.0.3. But when I try ffap on (require >>> 'org-publish) seems emacs wants to jump to >>> "/Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-publish.el.gz", >>> which is the old org version shipped with Emacs itself. >>> > >>> > 2. About org-export >>> > ---------------------------- >>> > I read through the upgrading notes from worg, but still haven't got a >>> working configuration file, maybe that's the issue of my org installation. >>> But is there's working conf on org-export that I can start with? >>> > >>> > I attached my lch-org-export.el, could somebody have a look how to >>> improve them to get 8.0.3 working. >>> > >>> > Thanks in advance for the help. >>> > >>> >>> Hi, >>> >>> Where exactly are the new org files installed? I don't see any load >>> paths defined. >>> >>> I think the easiest/simplest/cleanest is to keep the hit version >>> separate and just add the lisp dir to your load path vs mixing default org >>> with installed git org files. >>> >>> I didn't catch any defined ox-* backends loaded either. For every backed >>> you need to add it to org-export-backends or do: >>> >>> (require 'ox-backend) >>> >>> Lastly, you have old variable names in there... org-export-backend-* >>> vars are now org-backend-*. >>> >>> I'd suggest reading the worg doc again! >>> >>> John >>> >>> > Chris >>> > >>> > >>> >> >> > --047d7bd9218a1bd23604dfafba21 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
This is so confusing...

M-x org-v= ersion=A0"Org-mode version 8.0.3 (8.0.3-dist @ /Us= ers/LooChao/Dropbox/.emacs.d/lisp/org/)"
M-x=A0= list-load-path-shadows:
=A0 =A0 =A0 =A0 =A0 =A0 =A0 /Users/LooChao/Dropbox/.emacs.d/lisp/org/org hi= des /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org
=
= =A0 =A0 =A0 =A0 =A0 =A0 =A0 /Users/LooChao/Dropbox/.emacs.d/lisp/org/contri= b/lisp/org-wl hides /Applications/Documents/Emacs.app/Contents/Resources/li= sp/org/org-wl
= =A0 =A0 =A0 =A0 =A0 =A0 =A0 /Users/LooChao/Dropbox/.emacs.d/lisp/org/org-w3= m hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-w= 3m

M-x describe-function org-export
=A0 =A0 =A0 <= span style=3D"font-family:arial,sans-serif;font-size:12.800000190734863px">= =A0org-export is an interactive aut= oloaded compiled Lisp function in `org-exp.el'.
=A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0|
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0This one is in /Applications/Documents/Emacs.app/Contents/Resou= rces/lisp/org/

This explains why I got the error when= org-export-as-latex on test.org:
=A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0org-export-a= s-latex: Symbol's value as variable is void: org-export-latex-default-p= ackages-alist

Totally lost why this is happening...


= On Fri, Jun 21, 2013 at 3:34 PM, Chao Lu <loochao.list@gmail.com&= gt; wrote:



On Fri, Jun 21, 20= 13 at 3:27 PM, Chao Lu <loochao.list@gmail.com> wrote:<= br>
Thanks a lot for those replies, which are= quite helpful.

1. lch-org.el and lch-org-export.el together completes my co= nf about org, which works before 8.0

2. The version I installed is 8.0.3 tar ball instead of git, usually I do n= ot prefer living at cutting edge.
=A0 =A0 - M-x org-version -->= ; "Org-mode version 8.0.3 (8.0.3-dist @ /Users/LooChao/Dropbox/.emacs.= d/lisp/org/)"
=A0 =A0 - Which reveals the org loaded is the one I installed, which i= s in my lisp dir.
=A0 =A0 - I agree with John's advice -- kee= p the new version=A0separate and some where in the load-path, which is ~/Dr= opbox/.emacs.d/lisp/org/

3. M-x locate org-publish gives: '/Applications/= Documents/Emacs.app/Contents/Resources/lisp/org/org-publish.elc', indic= ating my installation has something wrong...
=A0 =A0 still working on it.
=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=A0 =A0 =A0 =A0I ju= st tried list-load-path-shadows, got outputs like:
/Users/Loo= Chao/Dropbox/.emacs.d/lisp/org/org hides /Applications/Documents/Emacs.app/= Contents/Resources/lisp/org/org
/Users/LooChao/Dropbox/.emacs.d/lisp/org/contrib/lisp/org-wl hides /Ap= plications/Documents/Emacs.app/Contents/Resources/lisp/org/org-wl
/Users/LooChao/Dropbox/.emacs.d/lisp/org/org-w3m hides /Applications/Docum= ents/Emacs.app/Contents/Resources/lisp/org/org-w3m
...

which shows my installat= ion is OK, I guess just the new version don't have org-publish so the o= ne bundled with emacs is not shadowed?
=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Thanks,

Cha= o


On Fri, Jun 21, 2013 at 8:45 AM, John Hendy <jw.hendy@gmail.com>= ; wrote:


On Jun 21, 2013 2:43 AM, "Chao Lu" <loochao.list@gmail.com> wrote:
>
> Dear list,
>
> I'm trying to upgrade to org 8.0.3 and met some difficulty that co= uld not solve. Please help.
>
> 1. About installation
> ----------------------------
> Currently I'm using Emacs 24.3 under MacOSX mountain lion.
> The org mode shipped with this version of emacs is 7.9
>
> I followed the instruction, successfully compiled org 8.0.3 and put al= l the *.elc file into my load-path.
> Here is the first confusion:
> Before I was using (require 'org-install) to get org code evaluate= d. Seems org-install is obsolete now, =A0then what should I put in my .emac= s to get org loaded?
>
> Although I do know why, but seems my old settings get org(8.0.3) loade= d, i.e. M-x org-version gives 8.0.3. But when I try ffap on (require 'o= rg-publish) seems emacs wants to jump to "/Applications/Documents/Emac= s.app/Contents/Resources/lisp/org/org-publish.el.gz", which is the old= org version shipped with Emacs itself.
>
> 2. About org-export
> ----------------------------
> I read through the upgrading notes from worg, but still haven't go= t a working configuration file, maybe that's the issue of my org instal= lation. But is there's working conf on org-export that I can start with= ?
>
> I attached my =A0lch-org-export.el, could somebody have a look how to = improve them to get 8.0.3 working.=A0
>
> Thanks in advance for the help.
>

Hi,

Where exactly are the new org files installed? I don't s= ee any load paths defined.

I think the easiest/simplest/cleanest is to keep the hit ver= sion separate and just add the lisp dir to your load path vs mixing default= org with installed git org files.

I didn't catch any defined ox-* backends loaded either. = For every backed you need to add it to org-export-backends or do:

(require 'ox-backend)

Lastly, you have old variable names in there... org-export-b= ackend-* vars are now org-backend-*.

I'd suggest reading the worg doc again!

John

> Chris
>
> =A0




--047d7bd9218a1bd23604dfafba21--