Deprecate TextMate.save_current_document

Instead of using this function you should set the command to “Save: Modified Documents” and use TextMate.save_if_untitled in the command — this way, TextMate will handle saving (ensuring requested encoding, save filters, callbacks, and similar) unless the document is untitled.

For untitled documents the TextMate.save_if_untitled function will save the buffer to a temporary file and setup TM_FILEPATH, TM_FILENAME, and TM_FILE_IS_UNTITLED.

If TM_FILE_IS_UNTITLED is set and your command needs to link to files (e.g. hyperlinked errors in build/run output) it should not link to TM_FILEPATH. Either create ‘txmt:’ links without a URL or use TM_DOCUMENT_UUID, e.g. txmt://open?uuid=«uuid»&line=32 (requires TextMate 2.0.0-alpha.9339).