Open tonyaldon opened 11 months ago
I'm unable to reproduce with the following test case:
2023-12-19 10:06:29
gnu/linux
prerelease (HEAD -> develop, origin/develop, fork/develop) b3760f5 2023-10-21
GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) of 2023-12-18
Does the error occur for you if you evaluate that test case?
I just evaluated the test case and no error occurred.
2023-12-19 16:30:26
gnu/linux
prerelease (HEAD -> master, origin/master, origin/develop, origin/HEAD) b3760f5 2023-10-21
GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2023-12-11
See if you can add to that reproduction case in a way that reproduces the error. Otherwise it's difficult to diagnose.
Thanks for looking at it. I'll try to see how can reproduce the error within the test case.
What's wrong
Byte compilation done by straight differs from the one done by
byte-compile-file
and seems to create a symbol that doesn't exist.Directions to reproduce
When I let
straight
install and build the packageone.el
like thisand called the following commands sequentially
I got the following error:
It is normal because
org-element--property
is not defined byorg-mode
. But what caught my attention is thatone.el
never callsorg-element--property
, it only callsorg-element-property
which is well defined.I found
org-element--property
symbol instraight/build/one/one.elc
file generated bystraight
(if I understand correctly):But if I byte compile
one.el
file withbyte-compile-file
directly, I no longer have that issue and the compiled file looks like this:I recently switched from straight from commit 3eca39d to straight at commit b3760f5. I hadn't that issue with 3eca39d.
So, I disable byte compilation for that package:
What do you think? Am I doing something wrong?
Version information