Lisp HUG Maillist Archive

Start process from .lispworks file

Hi!

Is there a way to start a background process from the ~/.lispworks
initialization file?  If I put

  (mp:initialize-multiprocessing)

in it then the IDE doesn't start up (I get a command prompt instead).

I also tried with action lists but that doesn't do the trick either.

Thanks,
Edi.

[LWW 4.4.0]


Re: Start process from .lispworks file

On Mar 21, 2005, at 4:42 AM, Edi Weitz wrote:

> Is there a way to start a background process from the ~/.lispworks
> initialization file?  If I put
>
>   (mp:initialize-multiprocessing)
>
> in it then the IDE doesn't start up (I get a command prompt instead).
>
> I also tried with action lists but that doesn't do the trick either.

I start a compilation conditions browser from my init file, so I think 
a normal background process should work. I do it like this:

(lw:define-action "Initialize LispWorks Tools" "create compilation 
conditions browser" 'cc-browser)


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


Re: Start process from .lispworks file

On Mon, 21 Mar 2005 08:00:46 -0500, John DeSoi <desoi@pgedit.com> wrote:

> I start a compilation conditions browser from my init file, so I
> think a normal background process should work. I do it like this:
>
> (lw:define-action "Initialize LispWorks Tools" "create compilation
> conditions browser" 'cc-browser)

Hmm, I also tried something like this but it doesn't work for me.  For
example if I have nothing in my init file except these lines

  (defparameter *x* 1)

  (defun foo ()
    (incf *x*)
    (capi:display-message "foo"))

  (compile 'foo)

  (lw:define-action "Initialize LispWorks Tools" "Bla" 'foo)

then at startup I don't see a message box and the value of *X* is 1
and not 2.  However, PRINT-ACTIONS lists the "Bla" action.

Any idea what I'm doing wrong?

Thanks,
Edi.


Re: Start process from .lispworks file

Unable to parse email body. Email id is 3665

Re: Start process from .lispworks file

On Mon, 21 Mar 2005 14:59:22 GMT, davef@lispworks.com wrote:

> Actions on that list take a SCREEN argument. Your call to function
> FOO is getting a wrong-number-of-arguments error, but that's handled
> by the action list mechanism.
>
> This works for me:
>
> (defparameter *x* 1)
>
> (defun foo (SCREEN)
>     (incf *x*)
>     (capi:display-message "foo"))
>
> (compile 'foo)
>
> (lw:define-action "Initialize LispWorks Tools" "Bla" 'foo)

Thanks, that works.

> Chapter 6 of the Common LispWorks User Guide is relevant:

I have to admit that it's a long time ago that I read that chapter...

Cheers,
Edi.


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