Global preferences etc.
In LWW 4.3.6, I want to save more state between
sessions than what is presently saved of the global
preferences. For example, if I have a listener
maximized in the mdi window, and I quit and restart,
the listener will no longer be maximized.
If I wanted to save that particular detail to a file
and restore it on restart by loading that file from my
..lispworks, how would I do it? Would I find it in a
specific global variable? Or would I have to get it
from the Microsoft Window data via FLI?
Another such detail is the space occupied by the
buttons below the menu. When deleting all those
buttons, the space is reduced to a thin line, which is
what it should be in that case. But after restarting,
the space is restored to its original size, even
though the buttons are still removed.
I'm also wondering if I could write a function,
find-related-symbols, which would take a symbol as its
argument and return a list of related symbols. It
would work as follows: First, it would make a list of
all functions that referenced the given symbol. I
don't know how to do that, but I assume it's possible.
Second, it would make a list of all symbols
referenced by all of those functions. Third, it would
count how many references existed in the image to each
symbol in the list, and omit those with too many
references, on the theory that they would probably not
be very closely related to the symbol in question.
Would such a function be trivial, or very difficult,
or what? Any hints how it would do the cross
referencing? Or does such a function or something
similar already exist? As an example of what I would
do with such a function, suppose I wanted to find the
global preferences, to figure out how to control them
from my .lispworks or whatever. I might give this
function a symbol such as :MDI, which is probably
related to the global preferences, and that might be
the fastest and easiest way to find them.
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree