Steinar Bang | 6 Aug 2012 11:16
Picon
Picon
Favicon

Bug: "File mode specification error: (invalid-function org-check-version)" on startup

Platform: Windows 2008R2 SP1
	  GNU Emacs 23.4.1 (i386-mingw-nt6.1.7601) of 2012-02-04 on MARVIN

I pulled org-mode master from git today.  When I tried to open an org
file, it failed, with the following message in the minibuffer:
 File mode specification error: (invalid-function org-check-version)

My previous version (ORIG_HEAD), was:
 cf8d979d8c519ab62a02bc7501baa376b122bf3d

The HEAD after update, was:
 7791d40045ea8b6eef089c362fdf3cb35312a1a8

git bisect identified the the following commit as the culprit:
C:\Users\sb\Documents\git\org-mode>git bisect bad
abbea596111611a945d73783b3e8790e76599740 is the first bad commit
commit abbea596111611a945d73783b3e8790e76599740
Author: Bastien Guerry <bzg <at> altern.org>
Date:   Sat Jul 28 00:55:45 2012 +0200

    Move org-element.el from contrib/lisp to lisp/.

    * org.el (org-mode-map): Add keybindings to
    `org-element-transpose' and `org-narrow-to-element'.
    (org-metaup): Fall back on `org-element-drag-backward'.
    (org-metadown): Fall back on `org-element-drag-forward'.
    Also move chunks of declarations and require statements to
    get rid of compiler warnings.

    * org-exp-blocks.el (org): Don't require org.  Add declarations.
(Continue reading)

Achim Gratz | 6 Aug 2012 15:47
Picon

Re: Bug: "File mode specification error: (invalid-function org-check-version)" on startup

Steinar Bang <sb <at> dod.no> writes:
> I pulled org-mode master from git today.  When I tried to open an org
> file, it failed, with the following message in the minibuffer:
>  File mode specification error: (invalid-function org-check-version)

My guess is that you have outdated autoloads... but please follow these steps to
produce a meaningful bug report:

http://orgmode.org/manual/Feedback.html#Feedback

Perhaps also relevant:

http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development
http://orgmode.org/worg/org-hacks.html#compiling-org-without-make

> git bisect identified the the following commit as the culprit:

Likely that was the first commit where the generated autoloads would become
different.

Regards,
Achim.

Steinar Bang | 7 Aug 2012 09:54
Picon
Picon
Favicon

Re: Bug: "File mode specification error: (invalid-function org-check-version)" on startup

>>>>> Achim Gratz <Stromeko <at> NexGo.DE>:

> My guess is that you have outdated autoloads... but please follow
> these steps to produce a meaningful bug report:

> http://orgmode.org/manual/Feedback.html#Feedback

I have used org-submit-bug-report once, back in July (I think).  And the
report with a minimal test case, just disappeared down a black hole.

Oh well!

> Perhaps also relevant:

[snip!]
> http://orgmode.org/worg/org-hacks.html#compiling-org-without-make

This was indeed relevant.  Recompiling with
 emacs -batch -Q -L lisp -l ../UTILITIES/org-fixup -f org-make-autoloads-compile-force
fixed my problem.


Gmane