                      William D. Herlong
            WYCHE, BURGESS, FREEMAN & PARHAM, P.A.
                       ATTORNEYS AT LAW
                    44 East Camperdown Way
                      Post Office Box 728
             Greenville, South Carolina 29602-0728
                        (803) 242-3131
                 Telecopier No. (803) 235-8900

                          October 22, 1991

          Couple of bug fixes and minor modifications to the upgraded macros
"que.wpm" and "startup2.wpm," which had already improved over the versions
uploaded in July.

          The macro pair is de-signed to fill what I believe is a significant
shortcoming in WordPerfect -- its failure to list for the user on startup the
last several files saved in previous sessions.  (I understand WP51 for Windows
does list the last 4 files previously saved.)  The first macro, when mapped to
F7, allows the user to have the path, name, and cursor position of the file
being saved written to a scratch file.  The second macro allows the user to
have that information recalled for the last ten files queued, to recall any
of the ten files, and to go to the last cursor position in the recalled file.

          "Que.wpm" works by creating a scratch file called "pathhist" that
records the names of the last ten files the user has saved, the users's
comment (if any) for each one, and the last cursor location inside each file. 
The companion macro, "startup2.wpm," asks the user if he or she want to
display the list of the last ten files queued, and, if so, reads the
"pathhist" file and displays the queued file names and the user's comment for
each.  The macro then will automatically call up any one of the files and, if
the user desires, go to the cursor's last location in the called up file.

          I have mapped "que.wpm" to my F7 key.  I have set "startup2.wpm" as
a startup macro by starting WP with the command:  

          wp /m=startup2.wpm

          NB:  (1) The macros work only in WP51.  (2) The macros put the
"pathhist" file in the c:\wp51 directory and read it from that directory. 
If you have no such directory or don't want the file put there, you need only
edit the first line of EACH macro to so that the variable "histpath" is the
path that you want for the "pathhist" file.

          The previous version uploaded in July 1991 required that long
filenames be set to "on".  These versions will work with long filenames on or
off.  This improvement was possible when I realized that a "save" will work
with shortfilenames even if the enter key is hit four times, as it must be for
longfilenames.  The only wrinkle is for a file that does not already exist. 
The prior macro had a lengthy routine to allow it to be saved and continue the
macro.  The routine assumed longfilenames.  I decided simply to delete that
routine.  The macro now aborts to a simple save command if the document has
not previously been named and saved.

          There are a number of other improvements.  Most significantly, the
que.wpm macro has a state command that prevents it, if it is remapped to F7 as
I have it, from initiating when F7 is pressed in the spell checking module.

          As previously noted, these macros borrow heavily from several macros
written by Robert Blacksberg.  See Docstk.zip and mkjmp.zip.  Sysop Guerri
Stevens has also been very helpful and patient in resolving a few problems in
their operation.  Please let me know if you discover bugs.  I'd also like to
know if they work properly for you.

     

William Herlong   CIS 76106,1017