Paulo Moura | 22 Mar 2012 17:16
Picon
Gravatar

[SVN] Re: textmate-dev Digest, Vol 46, Issue 5


> Message: 2
> Date: Thu, 22 Mar 2012 10:53:13 +0700
> From: Allan Odgaard <mailinglist@...>
> To: Bundle developers <textmate-dev@...>
> Subject: [SVN] Re: Indentation issues (Allan Odgaard)
> Message-ID: <1B025FCA-BC89-41CE-9456-30F294BEC85B@...>
> Content-Type: text/plain; charset=windows-1252
> 
> On 22/03/2012, at 07.11, Paulo Moura wrote:
> 
>>> The new auto-correction behavior can be disabled, see http://wiki.macromates.com/FAQ/TextMate2
>> Thanks for the FAQ. It would be nice if the solution for disabling the auto correction behavior would be
syntactically valid (even if not operative) for TM 1.x (so that the same language bundle could work on both
TM 1.x and TM 2.x), however.
> 
> It is.

I got syntax errors the first time I tried it to add (as per the FAQ):

{ disableIndentCorrections = :true; }

Tried it again today by creating a new bundle preferences item and adding the line above. I get:

line 1:30: unexpected char: ':'

I'm using TM 1.5.10 (1631). I can workaround the error by writing instead:

{ disableIndentCorrections = ':true'; }

(Continue reading)

Allan Odgaard | 25 Mar 2012 06:29
Favicon

[SVN] Re: textmate-dev Digest, Vol 46, Issue 5

On 22/03/2012, at 23.16, Paulo Moura wrote:

> […] I got syntax errors the first time I tried it to add (as per the FAQ):
> 
> { disableIndentCorrections = :true; }
> 
> […] I'm using TM 1.5.10 (1631) […]

Right, :true is a boolean value introduced in 2.0 and only the 2.0 bundle editor understands that. But the
plist produced will be backwards compatible.

If you want to insert a “true” value into a plist and not use 2.0 to edit the plist, you either need to edit
the plist “by hand” (<true/>) or you can use ‘1’ which technically is an integer value but will
work as “true” for most contexts.

Gmane