From 5a50a7e55b870ae66a6bb69fcd3a7bd1841f3d9b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 21 Jul 2012 09:34:51 -0400 Subject: Lua code cleanup and API changes. --- core/init.lua | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'core/init.lua') diff --git a/core/init.lua b/core/init.lua index a43061ca..97fbdde2 100644 --- a/core/init.lua +++ b/core/init.lua @@ -46,19 +46,6 @@ _M = {} -- modules table -- If Textadept is running in the terminal, this flag is `true`. module('_G')]] ---- --- Calls `dofile()` on the given filename in the user's Textadept directory. --- Errors are printed to the Textadept message buffer. --- @param filename The name of the file (not path). --- @return `true` if successful; `false` otherwise. --- @see dofile -function user_dofile(filename) - if not lfs.attributes(_USERHOME..'/'..filename) then return false end - local ok, err = pcall(dofile, _USERHOME..'/'..filename) - if not ok then gui.print(err) end - return ok -end - --[[ The tables below were defined in C. --- -- cgit v1.2.3