aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/macros.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-08-15 16:36:19 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2007-08-15 16:36:19 -0400
commitcc8bc0b210d5716d970717e86216a6b059eecf05 (patch)
treece5674f4695da038208517f13920246bd9e9372d /modules/textadept/macros.lua
parentf332c1ccccc666e908eea56592b139ef685a99fd (diff)
downloadtextadept-cc8bc0b210d5716d970717e86216a6b059eecf05.tar.gz
textadept-cc8bc0b210d5716d970717e86216a6b059eecf05.zip
Renamed handlers module to events, updated everything to reflect changes.
Diffstat (limited to 'modules/textadept/macros.lua')
-rw-r--r--modules/textadept/macros.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/macros.lua b/modules/textadept/macros.lua
index 0d81f105..c97a372b 100644
--- a/modules/textadept/macros.lua
+++ b/modules/textadept/macros.lua
@@ -38,7 +38,7 @@ local function macro_notification(msg, wParam, lParam)
textadept.statusbar_text = 'Macro recording'
end
end
-textadept.handlers.add_handler_function('macro_record', macro_notification)
+textadept.events.add_handler('macro_record', macro_notification)
---
-- Starts recording a macro.
@@ -81,7 +81,7 @@ function stop_recording()
list[macro_name] = current
save()
textadept.statusbar_text = 'Macro saved'
- textadept.handlers.handle('macro_saved')
+ textadept.events.handle('macro_saved')
else
textadept.statusbar_text = 'Macro not saved'
end
@@ -124,7 +124,7 @@ function delete(macro_name)
if list[macro_name] then
list[macro_name] = nil
save()
- textadept.handlers.handle('macro_deleted')
+ textadept.events.handle('macro_deleted')
end
end