Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Detecting the IDE

1 view
Skip to first unread message

Fernando

unread,
May 4, 2000, 3:00:00 AM5/4/00
to
Hi!

Is there a way to tell if the app is running in the ide or as
a compiled exe? O:-) I'm using lispworks, btw.

TIA

David Allen

unread,
May 4, 2000, 3:00:00 AM5/4/00
to
In article <vff3hssdfjd4k3io6...@4ax.com>, Fernando

Beats me, but you might try to get at one of the variables
inside of the ide (they usually have a lot of variables that
control their look and feel). If the variable exists and you
can set it, you're in the IDE. If you're compiled, then you
probably won't have a bunch of ide specific variables
that control the look of the program in there with you.

It might work - I haven't used lispworks, so YMMV
--
David Allen
http://opop.nols.com/
----------------------------------------
Firearms are second only to the Constitution in importance; they are the
peoples' liberty's teeth.
-- George Washington


David McClain

unread,
May 5, 2000, 3:00:00 AM5/5/00
to
Try the following:

(if (mp:list-all-processes)
(do-whatever-with-running-ide)
(do-whatever-with-ide-not-running))

This seems to work because the IDE uses multiple windows, which by
definition means that the multiprocessing stuff is running.

- DM

David Allen <s2md...@titan.vcu.edu> wrote in message
news:8etbms$khk$2...@bob.news.rcn.net...

ro...@corman.net

unread,
May 5, 2000, 3:00:00 AM5/5/00
to
In article <sh5l5l4...@corp.supernews.com>,

"David McClain" <dmcc...@azstarnet.com> wrote:
> Try the following:
>
> (if (mp:list-all-processes)
> (do-whatever-with-running-ide)
> (do-whatever-with-ide-not-running))
>
> This seems to work because the IDE uses multiple windows, which by
> definition means that the multiprocessing stuff is running.
>
> - DM
Assuming he isn't using multiprocessing himself.

Sent via Deja.com http://www.deja.com/
Before you buy.

David McClain

unread,
May 5, 2000, 3:00:00 AM5/5/00
to

<ro...@corman.net> wrote in message news:8ev5bb$gn2$1...@nnrp1.deja.com...

> In article <sh5l5l4...@corp.supernews.com>,
> "David McClain" <dmcc...@azstarnet.com> wrote:
> > Try the following:
> >
> > (if (mp:list-all-processes)
> > (do-whatever-with-running-ide)
> > (do-whatever-with-ide-not-running))
> >
> > This seems to work because the IDE uses multiple windows, which by
> > definition means that the multiprocessing stuff is running.
> >
> > - DM
> Assuming he isn't using multiprocessing himself.
>
This would return non-nil for his own use only after he intentionally starts
up the MP stuff, assuming he isn't running in the IDE. Hence, before
starting any MP stuff on your own, just use the check outlined above....

- DM

0 new messages