<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">I can reproduce it reliably like this:<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">
Start TextMate.  Press Cmd-N to open a new document.  Type something in the file.  Press Cmd-Q to quit.  <br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">I am not prompted to save the untitled document.  In preferences I have "Open documents from last session" selected.<br>
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">I start TextMate again, and I am presented with the untitled document.  So nothing is lost, but it does seem that I should be prompted to save.<br>
<br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 19, 2014 at 10:17 AM, Matt Neuburg <span dir="ltr"><<a href="mailto:matt@tidbits.com" target="_blank">matt@tidbits.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I assure you there is no crash and no special "kill". We are quitting in good order. It's just that sometimes (rarely and under circumstances I can't readily reproduce) TextMate "forgets" to offer to save a modified untitled unsaved document. One can only hope that others will notice and report this and that eventually a way of reproducing may be discovered... m.<br>

<br>
On Jan 19, 2014, at 1:52 AM, Allan Odgaard <<a href="mailto:mailinglist@textmate.org">mailinglist@textmate.org</a>> wrote:<br>
<br>
> On 14 Jan 2014, at 1:23, Matt Neuburg wrote:<br>
><br>
>> […] Holy cow there are a lot of "untitled" documents in this folder. I don't know whether to be critical that these are kept for so long or to rejoice that these are kept for so long. :) Is it my job to clean these out manually from time to time?<br>

><br>
> Ideally TextMate would clean it up, but I think if you select “Don’t Save” during termination, TM will instantly quit before cleaning up potential backup files. There might also be a few other cases. I haven’t considered it a serious issue, instead it’s sort of a feature :)<br>

><br>
>> […]<br>
>> It just did it again. After using TextMate 2 for a while and then closing everything was open, one by one, I did a New, typed in it, and did a Quit - and TextMate vanished off the screen without offering to save. (And yes, it's in the Session folder all right, saved as "untitled 15".)<br>

><br>
> Did you use ⌘Q? Could it be that you have that key overloaded to send “kill” to TextMate?<br>
><br>
>> Hmmm, you say "and furthermore not restore it after launch". But on my machine TextMate 2 does not restore anything after launch, ever. This may be because I have unchecked "Open documents from last session." But I have done that because I expect to be offered a chance to save when I quit […]<br>

><br>
> With this disabled, it should warn about unsaved untitled documents and does so here.<br>
><br>
>> […] There is no "restore after launch" behavior on my machine (with my settings). And that's exactly how I want it - but only because I expect to be offered a chance to save _always_, not just most of the time.<br>

><br>
> It should be “always”. I don’t know what could cause it to not do it all the time other than maybe a crash during exit? If you find a pattern then do let us know. To check if you did have a crash during exit, it should have added such info to Notification Center (unless you disabled submitting of crash reports).<br>

><br>
<br>
--<br>
matt neuburg, phd = <a href="mailto:matt@tidbits.com">matt@tidbits.com</a>, <a href="http://www.apeth.net/matt/" target="_blank">http://www.apeth.net/matt/</a><br>
pantes anthropoi tou eidenai oregontai phusei<br>
Programming iOS 7! <a href="http://shop.oreilly.com/product/0636920031017.do" target="_blank">http://shop.oreilly.com/product/0636920031017.do</a><br>
iOS 7 Fundamentals! <a href="http://shop.oreilly.com/product/0636920032465.do" target="_blank">http://shop.oreilly.com/product/0636920032465.do</a><br>
RubyFrontier! <a href="http://www.apeth.com/RubyFrontierDocs/default.html" target="_blank">http://www.apeth.com/RubyFrontierDocs/default.html</a><br>
TidBITS, Mac news and reviews since 1990, <a href="http://www.tidbits.com" target="_blank">http://www.tidbits.com</a><br>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a></blockquote></div><br></div>