On Sat, Apr 26, 2008 at 6:34 AM, FD Cami francois.cami@free.fr wrote:
It may be that one way to do it is :
- move "file" to "file~"
- save memory buffer to "file"
- remove "file~"
It seems that in some cases this would actually make the situation worse, e.g.if there is just enough room for 'file', but not enough for 'file' + '~file'.
IMO it is not so critical to retain the information in the disk file, since the user was trying to overwrite it anyway. More important is to make the user fully aware that the operation failed. This is one place where I think the tiny message on the status bar is not sufficient.
Geany should display a prominent warning dialog, maybe even followed by a save-as dialog to allow the user to save the buffer to a new location, or to try again after freeing up some disk space.
- Jeff