[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Auto Save filename



On Twenex, when there are no Buffer Filenames, the following code
sets the autosave filename based on the Buffer Name:

    fq(fs d fn2â—Š)"e		    !* On Twenex, use buffer name as extension!
      q:.b(Q1+1!*Bufnam!)fs DFN2â—Š''	    !* unless otherwise specified.!

This is not robust, and Babyl users can run into a typical case:
The user is editing mail to send, in the *Mail* buffer, and turns on
Auto Save Mode.  The autosave filenames chosen are
⊗[SAVE⊗].*MAIL*.0.  The asterisks, however, cause
invalid-wildcard-designator errors.  They need to be quoted with
^V.  How about having this code do something like the following:

    fq(fs d fn2â—Š)"e		    !* On Twenex, use buffer name as extension!
				    !* unless otherwise specified.!
      q:.b(Q1+1!*Bufnam!)@:fcu2	    !* 2: Uppercased buffer name.!
      et← ≥∪2◊◊''		    !* Set FS DFN2, quoting unusual!
				    !* characters, such as *.!