Subject: Re: bug#76573: 30.1; native compilation fails for record inside function

From: Lin Jian <[email-masked]>
Date: Sat, 26 Apr 2025 15:50:03 +0800

My point is not that the code is correct and the compiler is wrong.  To
make it crystal clear, my point is that the following situation is
confusing and we should make it less so.  At least the author of
el-easydraw agrees[1] with me.

1. This compiler error only appears in Emacs >= 30.
2. This compiler error does not appear if native-comp-speed < 2.
3. It's not clear from the manual and the docstring that the code is
wrong.
4. It is not clear how to fix this error.

> Maybe we should make the error message more clear, like
>
>   Type foo-r is unknown or undefined!

It would be even better to mention how to fix this error.

[1]: https://github.com/misohena/el-easydraw/issues/36#issuecomment-2831640002