aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-10-06 20:53:02 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2007-10-06 20:53:02 -0400
commit5852a19d38a84a7cddc717dc5aa64bff0c92bd8f (patch)
tree067db9dd07afdd629c3f67db835ddc6fc2e8d4f5
parenta87821f93d5a6cf08c28059c6846a6f794f29d4c (diff)
downloadtextadept-5852a19d38a84a7cddc717dc5aa64bff0c92bd8f.tar.gz
textadept-5852a19d38a84a7cddc717dc5aa64bff0c92bd8f.zip
Added textadept.print function that prints to the error buffer.
-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