I dug into the code to try and fix this, but it's a lot more complex than it looks. If anyone wants to start digging, look at `gedit- tab.c:248` - that's the first catch conditional. Also look at the function getting called if that conditional passes - there's a similar catch conditional in there.
The main problem is that auto-save pulls in the file object, which doesn't exist if the document is unsaved. Autosave would actually have to save the file to some special "temporary" directory. Easier said than done. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gedit in Ubuntu. https://bugs.launchpad.net/bugs/151365 Title: Autosave doesn't work for Unsaved Documents Status in gedit: Confirmed Status in gedit package in Ubuntu: Triaged Bug description: Autosave doesn't happen if the document has *never* been saved. It should, since data can be lost if there is a crash while an unsaved document is in the editor. To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/151365/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

