aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2007-08-10 23:59:17 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2007-08-10 23:59:17 -0400
commit180bad5d0b91766b26564c2ae89d91d4330bef5f (patch)
tree62a4e5ab89c5e0773020b87e376d9327a4115cae /modules
parent6804993bd99c7aebf18a9f824405fadca8250c62 (diff)
Renamed textadept.handlers' add_function_to_handler to add_handler_function.
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/editing.lua4
-rw-r--r--modules/textadept/keys.lua2
-rw-r--r--modules/textadept/macros.lua2
3 files changed, 4 insertions, 4 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 4af699ce..282d5ad3 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -55,7 +55,7 @@ local enclosure = {
single_tag = { left = '<', right = ' />' }
}
-textadept.handlers.add_function_to_handler('char_added',
+textadept.handlers.add_handler_function('char_added',
function(c) -- matches characters specified in char_matches
if char_matches[c] then
buffer:insert_text( -1, char_matches[c] )
@@ -154,7 +154,7 @@ function show_call_tip(api, start)
buffer:call_tip_show(current_call_tip.start_pos, call_tip)
end
-textadept.handlers.add_function_to_handler('call_tip_click',
+textadept.handlers.add_handler_function('call_tip_click',
function(position) -- display the next or previous call tip
if not buffer:call_tip_active() then return end
if position == 1 and current_call_tip.num > 1 then
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index 77a5cef7..f7131782 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -127,7 +127,7 @@ function keypress(code, shift, control, alt)
else return true end
end
end
-textadept.handlers.add_function_to_handler('keypress', keypress, 1)
+textadept.handlers.add_handler_function('keypress', keypress, 1)
-- Note the following functions are called inside pcall so error handling or
-- checking if keys exist etc. is not necessary.
diff --git a/modules/textadept/macros.lua b/modules/textadept/macros.lua
index 0ba966c6..0d81f105 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_function_to_handler('macro_record', macro_notification)
+textadept.handlers.add_handler_function('macro_record', macro_notification)
---
-- Starts recording a macro.