home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
epm603a.zip
/
EPMSMP.ZIP
/
SAVEALL.E
< prev
next >
Wrap
Text File
|
1995-04-12
|
977b
|
30 lines
; Save all modified files in the ring,
; Larry Margolis
compile if not defined(SMALL) -- If being externally compiled...
tryinclude 'MYCNF.E' -- Include user's configuration
compile if not defined(NLS_LANGUAGE) -- If no language set,
const
NLS_LANGUAGE = 'ENGLISH' -- assume English.
compile endif
include NLS_LANGUAGE'.e' -- Need this to get UNNAMED_FILE_NAME
defmain -- ... set up so can be implicitly executed.
'saveall'
compile endif
defc saveall =
getfileid startid
do i = 1 to FilesInRing(2) -- Prevent looping forever.
if .modify then
if .filename = UNNAMED_FILE_NAME then
refresh -- Show file, because Save As dialog will be presented.
endif
'save'
endif
nextfile
getfileid fid
if fid=startid then leave; endif
enddo
activatefile startid -- Make sure we're back where we started