Make SAVE-RESOURCE on file folders gracefully handle failure to write
authorTaylor R. Campbell <net/mumble/campbell>
Sat, 9 Feb 2008 10:29:03 +0000 (10:29 +0000)
committerTaylor R. Campbell <net/mumble/campbell>
Sat, 9 Feb 2008 10:29:03 +0000 (10:29 +0000)
commitfba2a33b05d8df2ea1f77f887f14451dbdaf937d
tree1cc305ca04c2f5756e66b042abc4196e628ce63f
parent35b1c954b07f2cae6b891936ea5f9bf3400c3c5b
Make SAVE-RESOURCE on file folders gracefully handle failure to write
the file.  Previously killing an IMAIL file folder buffer for a
read-only file would create an *error* buffer and fail to kill the
IMAIL buffer!

(Perhaps it would be better to add a new value to FOLDER-SYNC-STATUS,
to indicate that the persistant storage is immutable.  But putting an
error handler here is useful anyway, because the state of the world
may change between the call to FOLDER-SYNC-STATUS and the actual write
to the disk.)
v7/src/imail/imail-file.scm