Subject: bug#21267: 25.0.50; error when installing org from dirty Emacs

From: Eli Zaretskii <[email-masked]>
Date: Sat, 15 Aug 2015 20:59:04 +0300

> From: Rasmus <[email-masked]>
> Date: Sat, 15 Aug 2015 18:31:34 +0200
> 
> 1. Start emacs -Q to use build in version of org 
> 2. Load org: (mapc 'require '(org ob ox-latex))
> 3. Install org 8.3 via gelpa
> 4. Start with my "normal" emacs instance and M-x orgstruct.
>    I have not found a way to trigger this from a clean emacs...
> 
> my version of emacs is GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu,
> GTK+ Version 3.16.6) of 2015-08-11 on W530.
> [...]
> Debugger entered--Lisp error: (invalid-function org-babel-header-args-safe-fn)
> [...]
>   eval-after-load-helper("/home/rasmus/.emacs.d/elpa/org-20150810/ob.elc")
>   run-hook-with-args(eval-after-load-helper "/home/rasmus/.emacs.d/elpa/org-20150810/ob.elc")
>   do-after-load-evaluation("/home/rasmus/.emacs.d/elpa/org-20150810/ob.elc")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
What's this about?  Are you loading parts of Org in your init files,
directly or indirectly, and is the version of Org in
.emacs.d/elpa/org-20150810/ the one you call "org 8.3" above or some
older version?

> Load-path shadows:
> [...]
> /usr/share/emacs/site-lisp/org/ox-texinfo hides /usr/share/emacs/25.0.50/lisp/org/ox-texinfo
> /usr/share/emacs/site-lisp/org/ox-odt hides /usr/share/emacs/25.0.50/lisp/org/ox-odt

And these say you have one more version of Org, under
/usr/share/emacs/site-lisp/.  What version of Org is that?