diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/.iconv.luadoc | 3 | ||||
-rw-r--r-- | core/gui.lua | 3 | ||||
-rw-r--r-- | core/init.lua | 13 |
3 files changed, 3 insertions, 16 deletions
diff --git a/core/.iconv.luadoc b/core/.iconv.luadoc index 0aa2b3a6..eb761d56 100644 --- a/core/.iconv.luadoc +++ b/core/.iconv.luadoc @@ -7,8 +7,7 @@ module('string') --- -- Converts a string from one character set to another using iconv. --- Valid character sets are ones GLib's `g_convert()` accepts, typically GNU --- iconv's character sets. +-- Valid character sets are GNU iconv's character sets. -- @param text The text to convert. -- @param to The character set to convert to. -- @param from The character set to convert from. diff --git a/core/gui.lua b/core/gui.lua index ca25402e..32df8aeb 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -424,7 +424,7 @@ events_connect(events.ERROR, --[[ The tables below were defined in C. --- --- A table of GTK menus defining a menubar. (Write-only) +-- A table of menus defining a menubar. (Write-only) -- @class table -- @name menubar local menubar @@ -442,6 +442,7 @@ The functions below are Lua C functions. -- Each argument is like a string in Lua's `arg` table. Tables of strings are -- allowed as arguments and are expanded in place. This is useful for -- filteredlist dialogs with many items. +-- For more information on gtdialog, see http://foicica.com/gtdialog. -- @param kind The kind of gtdialog. -- @param ... Parameters to the gtdialog. -- @return string gtdialog result. 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. --- |