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

Reopening files



Users of Robert Holmgren's STACK.PM have a ready-made way of
reopening files: any command (CAll, EDit, REad, NEw, etc. etc.)
used to open a file is automatically added to the stack and can
easily be restored to the command line via the "Hint" feature.
If, instead of typing a command, you use a dedicated key to open
files (along the lines of Tim's recent advice), you can still
stack the underlying command via XPL; i.e., with STACK assigned
to &S, you would load this to your point-and-shoot CAll key:

>>&S BX ca "PV01"Q2

(Tim, I assume that this code could be adapted to work with
K-frames as well.) For a more comprehensive variation on this
theme, see frame CALLUP in SmartSet [SMART252.ZIP], available
here.

If you store the command stack to disk overnight, you can reopen
any previously-opened file for however long the command remains
in the stack (i.e., until overwritten by new commands or purged by the user).
With a stack size of 200 or more, this can be several days.

SmartSet includes a utility (STORESGT) that generically enables
overnight disk storage of "permanent" programming save/gets
(including but not limited to save/gets used by STACK).

--------------
Carl Distefano
70154.3452@xxxxxxxx