On Thu 2009-03-05, at 13:51, Allan Odgaard wrote:

On 24 Feb 2009, at 23:54, Matthew Scott wrote:

Using the reStructuredText bundle, I keep running into a problem  
with TextMate "forgetting" the soft tabs settings I apply to  
the .rst file extension.
[...]

Well, clearly something is wrong. Try quit TextMate then run:

    defaults delete com.macromates.textmate OakTextViewScopedSoftTabs

To “start over” and see if that fixes it. E.g. it might be that  
something bad got into this data structure that somehow prevents  
TextMate from properly updateing it.


Still getting the same problem.  And in fact it is not limited to .rst files I've now noticed — my previous statement that it was not happening to other file types is incorrect.

Here's some more detail:

$ defaults read com.macromates.textmate OakTextViewScopedSoftTabs
2009-03-08 13:56:37.547 defaults[72816:10b] 
The domain/default pair of (com.macromates.textmate, OakTextViewScopedSoftTabs) does not exist


Open TextMate, quit.  Still same output.

Open TextMate, open project, quit.  Still same output.

Open TextMate, open project, open rst file, quit.  Still same output.

Open TextMate, open project, open rst file, change to soft tabs, quit:
$ defaults read com.macromates.textmate OakTextViewScopedSoftTabs
{
    "source.catch-all" =     {
        softTabs = 0;
        updated = 2009-03-08 14:02:37 -0700;
    };
    "source.plist" =     {
        softTabs = 1;
        updated = 0001-12-31 16:00:00 -0800;
    };
    "source.ruby" =     {
        softTabs = 1;
        updated = 0001-12-31 16:00:00 -0800;
    };
    "source.yaml" =     {
        softTabs = 1;
        updated = 0001-12-31 16:00:00 -0800;
    };
    "text.catch-all" =     {
        softTabs = 0;
        updated = 2009-03-08 14:02:37 -0700;
    };
    "text.restructuredtext" =     {
        softTabs = 1;
        updated = 2009-03-08 14:02:49 -0700;
    };
}

Open TextMate, open project, open rst file.  Still using hard tabs.


--
Matthew Scott
gldnspud@gmail.com