[textadept] Textadept 5.0 API changes

From: mitchell <c....at.caladbolg.net>
Date: Thu, 5 Jan 2012 10:57:13 -0500 (Eastern Standard Time)


I am planning on having 2 API changes in Textadept 5.0 and they will be

1. Localization will be done using a global table '_L' instead of calling
    'locale.localize()'. This may break custom modules. Instead of using
    `locale.localize('message')`, you will use `_L['message']`. This will
    also allow for editing '_L' in scripts if necessary.

  2. Originally I wanted to use '_M' as the global table that contains
     modules, but Lua 5.1's modules used '_M' silently, so I had to settle
     on '_m'. Now that modules are gone, '_M' is available again and will
     be used. This will almost certainly cause breakage in custom modules.
     Ideally all instances of '_m' would be replaced with '_M'. In
     Textadept, you can easily do a search and replace with 'Match Case'
     and 'Whole Words' checked. I did this for updated Textadept's
     internals. If you are lazy, you can probably get away with putting
     `_m = _M` at the top of your '~/.textadept/init.lua'.

I will post any more API changes to this thread, but this is all for now.

Received on Thu 05 Jan 2012 - 10:57:13 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:28:13 EST