On Sun, 26 Oct 2008 21:04:00 -0200, Damián Viano <[EMAIL PROTECTED]> wrote:
>Jelle: > >Hi, thanks for your report! Could you please clarify how do you >reproduce this step by step? > >I've tried: > > 1) mount -t tmpfs -o size=4k none /mnt/tmp/ > 2) cd /mnt/tmp && cat /usr/share/common-licenses/GPL-2 > file > 3) geany file > 4) add some text at the end > 5) hit save > 6) quit > >Result: the file had the same content as before opening it with geany, >in other words, the added text wasn't saved at all Last time I worked on this issue, I was able to reproduce it. Damián, it might be you can't reproduce it because of tmpfs, IIRC it resizes itself if needed. At least I remember I used ramfs for testing. Anyway, we already discussed this issue in detail, see the (full) discusson in http://lists.uvena.de/pipermail/geany/2008-April/003203.html So, this is not new. The only usable solution would be to rename the actual file for backup, try to save the contents of the text buffer, and delete the backup file on success, or move it back if writing the file has failed (also explained in the above mentioned thread). Well, this is what actually most Gnome apps do and maybe others as well. But it has a big downside: it (can) break file permissions and it will break hard links in any case. This is why I don't like this way. >Expected result: an error dialog when hitting the save button > >This is in fact a bug, but it didn't "destroy the working document" nor >my "personal settings" (this last however can be because my .geany file >was in another non-tmpfs partition). I agree with Damián, it shouldn't destroy your "personal settings" whatever this could mean. It only destroys the file you are trying to save. The most easy workaround is to avoid getting into the case of a full disk and/or using the backupcopy plugin with a backup path on another partition (as also mentioned in the thread on the Geany list). The backup copy plugin is now part of the Save Actions plugin available in Geany 0.15. Regards, Enrico -- Get my GPG key from http://www.uvena.de/pub.asc
pgp5SLjMmbe60.pgp
Description: PGP signature

