This is the mail archive of the guile-emacs@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: automating %load-path


Kalle Olavi Niemitalo <tosi@ee.oulu.fi> writes:

> 5. Create a new module (emacs init) and place all Scheme
>    initialization code there.  This could load (emacs io).
> 
> 6. Load (emacs init) from lisp/startup.el.

I have committed these changes.

There is a bug; I now get the following error on startup:
> No such function: scheme-interaction-mode

This message comes from Guile.  `scheme-interaction-mode' exists
as a Lisp function, and in the (emacs guile) module as a Scheme
function, but the default module does not use (emacs guile) and
so the Lisp-to-Scheme call fails.  This can be worked around by
doing M-: (scheme-eval '(use-modules (emacs guile))) after
getting the error.

I guess a real fix involves changing `define-command' so that it
makes the Lisp part of the command always call the Scheme part
from the correct module.  I haven't yet figured out how to do
this.  This will perhaps be affected when Guile gets its new
module system, but I don't think we should wait for that.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]