Lisp HUG Maillist Archive

(require ...) + load-on-demand

Hi:

Probably a dumb question. I have a library of code that I use  
somewhat frequently in LispWorks. How can I modify my lispworks  
environment to make this code loadable-on-demand?

For example,

CL-USER 10 > (require "foreign-parser")
; Loading /Applications/LispWorks 5.0/Library/lib/5-0-0-0/load-on- 
demand/ffi-tools/parser/defsys.lisp on demand...

I would like to do the same sort of thing with my own module.

Thanks!,
-Chris


Re: (require ...) + load-on-demand

On Thu, 27 Mar 2008 20:51:11 -0400, Chris Sims <simsc@rpi.edu> wrote:

> Probably a dumb question. I have a library of code that I use
> somewhat frequently in LispWorks. How can I modify my lispworks
> environment to make this code loadable-on-demand?
>
> For example,
>
> CL-USER 10 > (require "foreign-parser")
> ; Loading /Applications/LispWorks 5.0/Library/lib/5-0-0-0/load-on- 
> demand/ffi-tools/parser/defsys.lisp on demand...
>
> I would like to do the same sort of thing with my own module.

Some implementations provide "hooks" for REQUIRE so that you can add
your own modules, but LispWorks doesn't AFAIK.  However, REQUIRE
accepts a second argument.  See the examples in the CLHS which show
code for a "portable" usage of REQUIRE.

  http://www.lispworks.com/documentation/HyperSpec/Body/f_provid.htm

An alternative would be to always load a couple of Common Defsystem
system definitions with your initialization file and to then use
LW:LOAD-SYSTEM instead of REQUIRE.

  http://www.lispworks.com/documentation/lw51/LWUG/html/lwuser-241.htm

Another alternative is ASDF which comes with facilities for system
lookup.  My "starter pack" shows how you can set up ASDF in LispWorks
in such a way that you can load arbitrary ASDF systems with keyboard
shortcuts (mimicking SLIME).

  http://weitz.de/starter-pack/
  http://weitz.de/lw-add-ons/

And, finally, if you use your library very often and if itself is
pretty stable, it might make sense to save an image containing that
library.

  http://www.lispworks.com/documentation/lw51/LWUG/html/lwuser-172.htm

Edi.


Re: In-place completion in text input pane in LW 5.1

On Fri, 28 Mar 2008 10:53:45 -0400, Mitch Berkson <mitch@bermita.com> wrote:

> In LW 5.1, the documentation describes in-place completion working
> in the text input pane of the Class Browser.  When I Tab in the
> text-input pane, the text isn't completed - I get the Tab behavior
> of moving the focus to the next item.  Alt+Ctrl+I doesn't do
> anything either.

Press Up or Down:

  http://www.lispworks.com/documentation/lw51/CLWUG-W/html/clwuser-w-69.htm

Edi.


Updated at: 2020-12-10 08:43 UTC