Re: Reload uncompiled needed

2022-02-17 Thread Joost
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  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



Re: Reload uncompiled needed

2022-02-17 Thread Tim Cross


"Loris Bennett"  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). 



Reload uncompiled needed

2022-02-17 Thread Loris Bennett
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.