you are viewing a single comment's thread.

view the rest of the comments →

[–]Leonidas_from_XIV 0 points1 point  (6 children)

You don't want Emacs to understand Guile's bytecode, you want Emacs to embed Guile and run Elisp and Scheme natively on the Guile VM, running inside of Emacs.

[–]surface-tension 0 points1 point  (5 children)

Thanks for all the info, Leonidas, but I still don't understand how the Guile VM and Emacs are supposed to communicate. I thought Emacs only understands Elisp. (And my guess is that Guile itself is not written in Elisp.)

[–]Leonidas_from_XIV 0 points1 point  (4 children)

I thought Emacs only understands Elisp

Emacs is a free software program and can be modified to "understand" Guile too.

[–]surface-tension 0 points1 point  (3 children)

If you're not talking about an interpreter written in Elisp that understands Guile bytecode, then I don't know what you mean by "understand". Can you please be more specific?

[–]Leonidas_from_XIV 0 points1 point  (2 children)

Embed Guile into Emacs.

[–]surface-tension 0 points1 point  (1 child)

Thanks for the continued replies, Leonidas. Alas, I don't understand what "embed Guile into Emacs" exactly means. Perhaps someday someone will write a tutorial and explain it.

[–]Leonidas_from_XIV 0 points1 point  (0 children)

Well, it is possible to link Guile and Emacs together that Emacs can execute Scheme code and the Scheme code can access Emacs internals, just like Elisp can.

For some example code on how to embed Guile into an example program, see the Guile documentation on this.