[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Auto Save filename
- To: BUG-EMACS%MIT-OZ@MIT-MC.ARPA
- Subject: Auto Save filename
- From: Eugene Ciccarelli <ECC%MIT-OZ@MIT-MC.ARPA>
- Date: Fri, 18 May 1984 21:49 EDT
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 *.!