ahyatt / ekg

The emacs knowledge graph, app for notes and structured data.
GNU General Public License v3.0
230 stars 19 forks source link

startup warning message #88

Open notuntoward opened 1 year ago

notuntoward commented 1 year ago

I thought you'd be interested to know that, when I start up emacs, I see this in the async-native-compile-log buffer

Compiling c:/users/scott/.emacs.d/straight/build/ekg/ekg.el...

In end of data: ekg.el:860:12: Warning: the function `delete-line' is not known to be defined. c:/users/scott/.emacs.d/straight/build/ekg/ekg.el: Error: Invalid function # Compilation finished.

I haven't noticed that this causes a problem, though. This is on emacs 28.2.

ahyatt commented 1 year ago

This is very interesting, thanks for opening this. If you can reproduce this, would you mind adding (declare-function delete-line "subr") after the other declare-function calls in ekg.el and seeing if this helps? I'd check it in, but this is very weird, and I don't really understand why this is a problem or what the best fix is. The problem is, this is in a file that is just part of emacs, and doesn't provide any module, so I can't require it. And delete-line is not new, AFAICT.

In addition, I don't really understand what is happening with the "invalid function #". I really need to get native compilation working on my own computer so I can try to track down these problems.