aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/.textadept.lua4
-rw-r--r--core/events.lua2
2 files changed, 6 insertions, 0 deletions
diff --git a/core/.textadept.lua b/core/.textadept.lua
index 4675a994..c03d9fbc 100644
--- a/core/.textadept.lua
+++ b/core/.textadept.lua
@@ -85,3 +85,7 @@ function popupmenu(menu)
-- if the check fails.
-- @param buffer The buffer in question.
function check_focused_buffer(buffer) end
+
+---
+-- Prints a message to the error buffer.
+function print(...) end
diff --git a/core/events.lua b/core/events.lua
index 13a41077..f9f6d484 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -477,3 +477,5 @@ function error(...)
end
pcall( handle_error, unpack{...} ) -- prevent endless loops if this errors
end
+
+textadept.print = error