emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Reload uncompiled needed
@ 2022-02-17 15:37 Loris Bennett
  2022-02-17 22:44 ` Tim Cross
  0 siblings, 1 reply; 3+ messages in thread
From: Loris Bennett @ 2022-02-17 15:37 UTC (permalink / raw)
  To: Org Mode Mailing List

Hi,

I have managed to install 9.5 but I now get 

  org-agenda-get-day-entries: Invalid function: (date date)

when I try to generate my agenda.  If I reload Org uncompiled, the error
disappears.

In *Messages* it seems like the very same version has been reloaded:

  Org mode version 9.5.2 (9.5.2-gfbff08 @ /home/loris/.emacs.d.default/elpa/org-9.5.2/)

  Successfully reloaded Org
  Org mode version 9.5.2 (9.5.2-gfbff08 @ /home/loris/.emacs.d.default/elpa/org-9.5.2/)

If I try to byte recompile the directory, everything seems
up-to-date:
 
  Checking /home/loris/.emacs.d.default/elpa/org-9.5.2/... [125 times]
  Checking /home/loris/.emacs.d.default/elpa/org-9.5.2/doc...
  Checking /home/loris/.emacs.d.default/elpa/org-9.5.2/etc...
  Checking /home/loris/.emacs.d.default/elpa/org-9.5.2/etc/csl...
  Checking /home/loris/.emacs.d.default/elpa/org-9.5.2/etc/styles...
  Done (Total of 0 files compiled, 124 skipped)

The el and elc files seem to have the same date:

  $ ll ~/.emacs.d.default/elpa/org-9.5.2/org.el*
  -rw-r--r-- 1 loris users 834072 Feb  9 16:45 /home/loris/.emacs.d.default/elpa/org-9.5.2/org.el
  -rw-r--r-- 1 loris users 719363 Feb  9 16:45 /home/loris/.emacs.d.default/elpa/org-9.5.2/org.elc

I can't pretend to understand the contents of org.elc, but it does
contain the following

  (provide \\='org-xyz)\n\nFor export specific modules, see also
  `org-export-backends'." :group org :set org-set-modules
  :package-version (Org . "9.5")

The version which comes with Emacs 27 on Debian seems to be 9.3:

  $ zgrep '^;; Version' /usr/share/emacs/27.1/lisp/org/org.el.gz
  ;; Version: 9.3

I presume I could just delete all the elc-files, but I would like to
know what is going on.  Can anyone see what is happening?

Cheers,

Loris
-- 
This signature is currently under construction.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Reload uncompiled needed
  2022-02-17 15:37 Reload uncompiled needed Loris Bennett
@ 2022-02-17 22:44 ` Tim Cross
  2022-02-18  7:47   ` Joost
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Cross @ 2022-02-17 22:44 UTC (permalink / raw)
  To: emacs-orgmode


"Loris Bennett" <loris.bennett@fu-berlin.de> writes:

> Hi,
>
> I have managed to install 9.5 but I now get 
>
>   org-agenda-get-day-entries: Invalid function: (date date)
>
> when I try to generate my agenda.  If I reload Org uncompiled, the error
> disappears.
>
> In *Messages* it seems like the very same version has been reloaded:
>
>   Org mode version 9.5.2 (9.5.2-gfbff08 @ /home/loris/.emacs.d.default/elpa/org-9.5.2/)
>
>   Successfully reloaded Org
>   Org mode version 9.5.2 (9.5.2-gfbff08 @ /home/loris/.emacs.d.default/elpa/org-9.5.2/)
>
> If I try to byte recompile the directory, everything seems
> up-to-date:
>  
>   Checking /home/loris/.emacs.d.default/elpa/org-9.5.2/... [125 times]
>   Checking /home/loris/.emacs.d.default/elpa/org-9.5.2/doc...
>   Checking /home/loris/.emacs.d.default/elpa/org-9.5.2/etc...
>   Checking /home/loris/.emacs.d.default/elpa/org-9.5.2/etc/csl...
>   Checking /home/loris/.emacs.d.default/elpa/org-9.5.2/etc/styles...
>   Done (Total of 0 files compiled, 124 skipped)
>
> The el and elc files seem to have the same date:
>
>   $ ll ~/.emacs.d.default/elpa/org-9.5.2/org.el*
>   -rw-r--r-- 1 loris users 834072 Feb  9 16:45 /home/loris/.emacs.d.default/elpa/org-9.5.2/org.el
>   -rw-r--r-- 1 loris users 719363 Feb  9 16:45 /home/loris/.emacs.d.default/elpa/org-9.5.2/org.elc
>
> I can't pretend to understand the contents of org.elc, but it does
> contain the following
>
>   (provide \\='org-xyz)\n\nFor export specific modules, see also
>   `org-export-backends'." :group org :set org-set-modules
>   :package-version (Org . "9.5")
>
> The version which comes with Emacs 27 on Debian seems to be 9.3:
>
>   $ zgrep '^;; Version' /usr/share/emacs/27.1/lisp/org/org.el.gz
>   ;; Version: 9.3
>
> I presume I could just delete all the elc-files, but I would like to
> know what is going on.  Can anyone see what is happening?
>

How did you upgrade? (package.el, straight.el, manual git clone etc)?

Did you make sure no org functionality was already loaded into Emacs
before you performed the upgrade?

If you try to upgrade org using a apckage manager, such as package.el,
and you already have some org functionality loaded at the time of the
upgrade, you can get a broken 'mixed' installation. This will often
create the type of errors you are experiencing.

The solution is to uninstall the upgraded version, start a new Emacs
session which has no org functionality loaded (may be necessary to
comment out any org related configuration in your init file to prevent
org being loaded at startup), upgrade org to current version and then
restore your init setup code. Depending on what configuration code you
ahve in your init file and how it is structured, sometimes it is
sufficient to just ensure you do the upgrade immediately after starting
a new Emacs session. Where people run into problems is when they upgrade
org in an Emacs session which has been running for some time (and which
likely has some org functionality already loaded). 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Reload uncompiled needed
  2022-02-17 22:44 ` Tim Cross
@ 2022-02-18  7:47   ` Joost
  0 siblings, 0 replies; 3+ messages in thread
From: Joost @ 2022-02-18  7:47 UTC (permalink / raw)
  To: fatiparty---

On Thu, 17 Feb 2022, at 23:44, Tim Cross wrote:
> If you try to upgrade org using a apckage manager, such as package.el,
> and you already have some org functionality loaded at the time of the
> upgrade, you can get a broken 'mixed' installation. This will often
> create the type of errors you are experiencing.

Using <https://github.com/jwiegley/emacs-async> may help avoid this issue. See specifically here:

https://github.com/jwiegley/emacs-async#enable-asynchronous-compilation-of-your-melpa-packages

-- 
Joost Kremers
Life has its moments


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-18  7:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-17 15:37 Reload uncompiled needed Loris Bennett
2022-02-17 22:44 ` Tim Cross
2022-02-18  7:47   ` Joost

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).