aboutsummaryrefslogtreecommitdiff
path: root/core/ext
diff options
context:
space:
mode:
Diffstat (limited to 'core/ext')
-rw-r--r--core/ext/mime_types.lua8
-rw-r--r--core/ext/pm/buffer_browser.lua12
-rw-r--r--core/ext/pm/ctags_browser.lua10
-rw-r--r--core/ext/pm/macro_browser.lua6
4 files changed, 18 insertions, 18 deletions
diff --git a/core/ext/mime_types.lua b/core/ext/mime_types.lua
index 489f1d4a..ec4ef808 100644
--- a/core/ext/mime_types.lua
+++ b/core/ext/mime_types.lua
@@ -120,7 +120,7 @@ local function handle_switch()
end
local handlers = textadept.handlers
-handlers.add_function_to_handler('file_opened', handle_new)
-handlers.add_function_to_handler('file_saved_as', handle_new)
-handlers.add_function_to_handler('buffer_switch', handle_switch)
-handlers.add_function_to_handler('view_new', handle_switch)
+handlers.add_handler_function('file_opened', handle_new)
+handlers.add_handler_function('file_saved_as', handle_new)
+handlers.add_handler_function('buffer_switch', handle_switch)
+handlers.add_handler_function('view_new', handle_switch)
diff --git a/core/ext/pm/buffer_browser.lua b/core/ext/pm/buffer_browser.lua
index 56891fa9..1c2fb33c 100644
--- a/core/ext/pm/buffer_browser.lua
+++ b/core/ext/pm/buffer_browser.lua
@@ -46,12 +46,12 @@ function perform_menu_action(menu_item, selected_item)
textadept.pm.activate()
end
-local add_function_to_handler = textadept.handlers.add_function_to_handler
+local add_handler_function = textadept.handlers.add_handler_function
local function update_view()
if matches(textadept.pm.entry_text) then textadept.pm.activate() end
end
-add_function_to_handler('file_opened', update_view)
-add_function_to_handler('buffer_new', update_view)
-add_function_to_handler('buffer_deleted', update_view)
-add_function_to_handler('save_point_reached', update_view)
-add_function_to_handler('save_point_left', update_view)
+add_handler_function('file_opened', update_view)
+add_handler_function('buffer_new', update_view)
+add_handler_function('buffer_deleted', update_view)
+add_handler_function('save_point_reached', update_view)
+add_handler_function('save_point_left', update_view)
diff --git a/core/ext/pm/ctags_browser.lua b/core/ext/pm/ctags_browser.lua
index 2d2385ad..842dce9e 100644
--- a/core/ext/pm/ctags_browser.lua
+++ b/core/ext/pm/ctags_browser.lua
@@ -230,7 +230,7 @@ function perform_menu_action(menu_item, selected_item)
end
-local add_function_to_handler = textadept.handlers.add_function_to_handler
+local add_handler_function = textadept.handlers.add_handler_function
local function update_view()
if matches(textadept.pm.entry_text) then
if buffer.filename then
@@ -240,7 +240,7 @@ local function update_view()
end
end
end
-add_function_to_handler('file_opened', update_view)
-add_function_to_handler('buffer_deleted', update_view)
-add_function_to_handler('buffer_switch', update_view)
-add_function_to_handler('save_point_reached', update_view)
+add_handler_function('file_opened', update_view)
+add_handler_function('buffer_deleted', update_view)
+add_handler_function('buffer_switch', update_view)
+add_handler_function('save_point_reached', update_view)
diff --git a/core/ext/pm/macro_browser.lua b/core/ext/pm/macro_browser.lua
index 237aa9fb..3fc38aca 100644
--- a/core/ext/pm/macro_browser.lua
+++ b/core/ext/pm/macro_browser.lua
@@ -35,9 +35,9 @@ function perform_menu_action(menu_item, selected_item)
textadept.pm.activate()
end
-local add_function_to_handler = textadept.handlers.add_function_to_handler
+local add_handler_function = textadept.handlers.add_handler_function
local function update_view()
if matches(textadept.pm.entry_text) then textadept.pm.activate() end
end
-add_function_to_handler('macro_saved', update_view)
-add_function_to_handler('macro_deleted', update_view)
+add_handler_function('macro_saved', update_view)
+add_handler_function('macro_deleted', update_view)