From 5852a19d38a84a7cddc717dc5aa64bff0c92bd8f Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 6 Oct 2007 20:53:02 -0400 Subject: Added textadept.print function that prints to the error buffer. --- core/.textadept.lua | 4 ++++ core/events.lua | 2 ++ 2 files changed, 6 insertions(+) (limited to 'core') 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 -- cgit v1.2.3