[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: SL command



cld@xxxxxxxx (Carl Distefano) wrote:

> On yet another hand (and in combination either of the other two hands),
> it could be designed more cautiously to pause at each open window and ask
> for user confirmation before saving the file.

If I may briefly raise my hand here, what you're describing there is
similar to a program that I've concocted in Xy3 days (before menus),
then slightly modified for Xy4, and have been using for more years than
I care to remember. Every time I quit Xy (by hitting Ctl-Q which is
where I put the routine), the program goes through each open file (no
directories) and asks two questions, in that order: save yes/no, and
reopen yes/no. What the first question does is obvious. The second, if
answered in the affirmative, stores information about the file name and path
and the current cursor position in a scratch file. A companion program
for restoring then uses the information in that file to return me to the
previous session, opening just the files that I specified upon shutting
down, and with the cursor at the exact same location.

Because I am a non-programmer who has only scratched at the very surface
of XPL, the program is extremely kludgy and does no error checking to
speak of. Some years ago, I made it available on this list, but at least
one person (Nathan Sivin?) had problems and/or even lost a file by some
unexpected combination of circumstances. But I'm sure that in your
capable hands, Carl, this would be a cinch.

Wolfgang Bechstein
bechstein@xxxxxxxx