Changing scopeAttributes in a .tm_properties file i.e. adding
[ *.tex ] scopeAttributes = 'attr.save-on-deactivate'
does not update scope attributes in open files. Only .tex files opened after the .tm_properties change will carry the new scope attribute. Not sure if this is a bug or not, but it is worth noting as it does confuse matters when trying test attribute-specific commands :-).
Cheers,
David.
On 01/03/2012, at 01.48, David Howden wrote:
Changing scopeAttributes in a .tm_properties file […] does not update scope attributes in open files.
Right, it’s a little expensive to re-read .tm_properties each time scopes are needed plus scopes can affect many things (like injected grammars, theming, etc.), so presently some changes need a re-open of the file to take effect — although I think scope attributes are also re-obtained when saving / changing path.