diff options
author | 2007-08-15 16:36:19 -0400 | |
---|---|---|
committer | 2007-08-15 16:36:19 -0400 | |
commit | cc8bc0b210d5716d970717e86216a6b059eecf05 (patch) | |
tree | ce5674f4695da038208517f13920246bd9e9372d /core/file_io.lua | |
parent | f332c1ccccc666e908eea56592b139ef685a99fd (diff) | |
download | textadept-cc8bc0b210d5716d970717e86216a6b059eecf05.tar.gz textadept-cc8bc0b210d5716d970717e86216a6b059eecf05.zip |
Renamed handlers module to events, updated everything to reflect changes.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index 958a03cc..cdc09af0 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -5,7 +5,7 @@ -- Opens and saves files and sessions and reads API files. module('textadept.io', package.seeall) -local handlers = textadept.handlers +local events = textadept.events --- -- [Local function] Opens a file or goes to its already open buffer. @@ -24,7 +24,7 @@ local function open_helper(filename) end buffer.filename = filename buffer:set_save_point() - handlers.handle('file_opened', filename) + events.handle('file_opened', filename) end --- @@ -58,7 +58,7 @@ function save(buffer) f:close() buffer:set_save_point() else - handlers.error(err) + events.error(err) end end @@ -77,7 +77,7 @@ function save_as(buffer, filename) if #filename > 0 then buffer.filename = filename:sub(1, -2) -- chomp buffer:save() - handlers.handle('file_saved_as', filename) + events.handle('file_saved_as', filename) end end |