aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/lua/api27
-rw-r--r--modules/lua/tags13
2 files changed, 15 insertions, 25 deletions
diff --git a/modules/lua/api b/modules/lua/api
index de6dcec5..99f36a01 100644
--- a/modules/lua/api
+++ b/modules/lua/api
@@ -52,7 +52,7 @@ ERROR events.ERROR (string)\nEmitted when an error occurs.\nArguments:\n\n* _`te
ERROR lexer.ERROR (string)\nThe token name for error tokens.
ERROR_COLOR _M.textadept.run.ERROR_COLOR (string)\nThe name of the color in the current theme to mark a line containing a\nrecognized run or compile error.
FIELD _M.textadept.adeptsense.FIELD (string)\nCtags kind for Adeptsense fields.
-FIELDS _M.textadept.adeptsense.FIELDS (string)\nXPM image for Adeptsense fields.
+FIELD_IMAGE _M.textadept.adeptsense.FIELD_IMAGE (string)\nXPM image for Adeptsense fields.
FILE_AFTER_SAVE events.FILE_AFTER_SAVE (string)\nEmitted right after saving a file to disk.\nEmitted by `buffer:save()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename.
FILE_BEFORE_SAVE events.FILE_BEFORE_SAVE (string)\nEmitted right before saving a file to disk.\nEmitted by `buffer:save()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename.
FILE_OPENED events.FILE_OPENED (string)\nEmitted when opening a file in a new buffer.\nEmitted by `open_file()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename.
@@ -66,7 +66,7 @@ FOLD_BLANK lexer.FOLD_BLANK (number)\nFlag indicating that the line is blank.
FOLD_HEADER lexer.FOLD_HEADER (number)\nFlag indicating the line is fold point.
FUNCTION _M.textadept.adeptsense.FUNCTION (string)\nCtags kind for Adeptsense functions.
FUNCTION lexer.FUNCTION (string)\nThe token name for function tokens.
-FUNCTIONS _M.textadept.adeptsense.FUNCTIONS (string)\nXPM image for Adeptsense functions.
+FUNCTION_IMAGE _M.textadept.adeptsense.FUNCTION_IMAGE (string)\nXPM image for Adeptsense functions.
HIGHLIGHT_BRACES _M.textadept.editing.HIGHLIGHT_BRACES (bool)\nHighlight matching brace characters like "()[]{}".\nThe default value is `true`.\nMatching braces are defined in the `braces` table.
HIGHLIGHT_COLOR _M.textadept.editing.HIGHLIGHT_COLOR (string)\nThe name of the color in the current theme to\nhighlight words with.
HOTSPOT_CLICK events.HOTSPOT_CLICK (string)\nEmitted when clicking on text that is in a style with the hotspot attribute\nset.\nArguments:\n\n* _`position`_: The position in the buffer clicked.\n* _`modifiers`_: A bit-mask of modifier keys held down. Modifiers are\n `_SCINTILLA.constants.SCMOD_ALT`, `_SCINTILLA.constants.SCMOD_CTRL`,\n `_SCINTILLA.constants.SCMOD_SHIFT`, and\n `_SCINTILLA.constants.SCMOD_META`.\n Note: If you set `buffer.rectangular_selection_modifier` to\n `_SCINTILLA.constants.SCMOD_CTRL`, the "Control" modifier is reported as\n *both* "Control" and "Alt" due to a Scintilla limitation with GTK+.
@@ -119,7 +119,6 @@ R lpeg.R({range})\nReturns a pattern that matches any single character belonging
REGEX lexer.REGEX (string)\nThe token name for regex tokens.
REPLACE events.REPLACE (string)\nEmitted to replace selected (found) text.\nArguments:\n\n* _`text`_: The text to replace the selected text with.
REPLACE_ALL events.REPLACE_ALL (string)\nEmitted to replace all occurrences of found text.\nArguments:\n\n* _`find_text`_: The text to search for.\n* _`repl_text`_: The text to replace found text with.
-RESETTING _G.RESETTING (bool)\nIf `reset()` has been called, this flag is `true` while the Lua\nstate is being re-initialized.
RESET_AFTER events.RESET_AFTER (string)\nEmitted after resetting the Lua state.\nEmitted by `reset()`.
RESET_BEFORE events.RESET_BEFORE (string)\nEmitted before resetting the Lua state.\nEmitted by `reset()`.
RUN_OUTPUT events.RUN_OUTPUT (string)\nEmitted after executing a language's run command.\nBy default, output is printed to the message buffer. To override this\nbehavior, connect to the event with an index of `1` and return `true`.\nArguments:\n\n* `lexer`: The lexer language name.\n* `output`: The string output from the command.
@@ -753,7 +752,7 @@ SC_WRAP_NONE _SCINTILLA.constants.SC_WRAP_NONE\n0
SC_WRAP_WORD _SCINTILLA.constants.SC_WRAP_WORD\n1
SNAPOPEN_MAX io.SNAPOPEN_MAX (number)\nThe maximum number of files to list in the snapopen dialog.\nThe default value is `1000`.
STRING lexer.STRING (string)\nThe token name for string tokens.
-STRIP_WHITESPACE_ON_SAVE _M.textadept.editing.STRIP_WHITESPACE_ON_SAVE (bool)\nStrip trailing whitespace on file save.\nThe default value is `true`.
+STRIP_TRAILING_SPACES _M.textadept.editing.STRIP_TRAILING_SPACES (bool)\nStrip trailing whitespace on file save.\nThe default value is `true`.
STYLE_BRACEBAD _SCINTILLA.constants.STYLE_BRACEBAD\n35
STYLE_BRACEBAD lexer.STYLE_BRACEBAD (string)\nThe style used for unmatched brace characters.
STYLE_BRACELIGHT _SCINTILLA.constants.STYLE_BRACELIGHT\n34
@@ -805,13 +804,11 @@ WHITESPACE lexer.WHITESPACE (string)\nThe token name for whitespace tokens.
WIN32 _G.WIN32 (bool)\nIf Textadept is running on Windows, this flag is `true`.
_BUFFERS _G._BUFFERS (table)\nTable of all open buffers in Textadept.\nNumeric keys have buffer values and buffer keys have their associated numeric\nkeys.\n@see _G.buffer
_CHARSET _G._CHARSET (string)\nThe character set encoding of the filesystem.\nThis is used when working with files.
-_EXISTS _L._EXISTS(message)\nReturns whether or not *message* is localized.\nThis function is necessary since `_L[message]` never returns `nil`.\n@param message The message to localize.\n@return `true` if a localization exists, `false` otherwise.
_G _G._G (module)\nLua _G module.
_G _G._G (table)\nA global variable (not a function) that holds the global environment\n(see §2.2). Lua itself does not use this variable; changing its value does\nnot affect any environment, nor vice-versa.
_HOME _G._HOME (string)\nThe path to the directory containing Textadept.
-_L _G._L (module)\nMap of all messages used by Textadept to their localized form.\nIf the table does not contain the localized version of a given message, it\nreturns a string indicating so via a metamethod.
+_L _G._L (module)\nMap of all messages used by Textadept to their localized form.\nIf the table does not contain the localized version of a given message, it\nreturns a string that starts with "No Localization:" via a metamethod.
_LEXBYLINE lexer.lexer._LEXBYLINE (table)\nIndicates the lexer matches text by whole lines instead of\n arbitrary chunks.\n The default value is `false`. Line lexers cannot look ahead to subsequent\n lines.
-_LEXERPATH _G._LEXERPATH (string)\nThe paths to lexers, formatted like Lua's `package.path`.
_M _G._M (module)\nA table of loaded modules.
_NAME lexer.lexer._NAME (table)\nThe string name of the lexer in lowercase.
_RELEASE _G._RELEASE (string)\nThe Textadept release version string.
@@ -897,7 +894,7 @@ back_tab buffer.back_tab(buffer)\nDedents the selected lines.\n@param buffer The
band bit32.band(...)\nReturns the bitwise "and" of its operands.
begin_undo_action buffer.begin_undo_action(buffer)\nStarts a sequence of actions to undo or redo as a single action.\nMay be nested.\n@param buffer The global buffer.
bit32 _G.bit32 (module)\nLua bit32 module.
-block_comment _M.textadept.editing.block_comment(prefix)\nComments or uncomments the selected lines with line comment prefix string\n*prefix* or the prefix from the `comment_string` table for the current lexer.\nAs long as any part of a line is selected, the entire line is eligible for\ncommenting/uncommenting.\n@param prefix Optional prefix string inserted or removed from the beginning\n of each line in the selection. The default value is the prefix in the\n `comment_string` table for the current lexer.\n@see comment_string
+block_comment _M.textadept.editing.block_comment(comment)\nComments or uncomments the selected lines with line comment string *comment*\nor the comment from the `comment_string` table for the current lexer.\nAs long as any part of a line is selected, the entire line is eligible for\ncommenting/uncommenting.\n@param comment Optional comment string inserted or removed from each line in\n the selection. Comment delimiters are separated by a '|'. The default value\n is the comment in the `comment_string` table for the current lexer.\n@see comment_string
bnot bit32.bnot(x)\nReturns the bitwise negation of `x`. For any integer `x`, the following\nidentity holds:\n\n assert(bit32.bnot(x) == (-1 - x) % 2^32)
boms io.boms (table)\nList of byte-order marks (BOMs) for identifying unicode file types.
bookmarks _M.textadept.bookmarks (module)\nBookmarks for Textadept.
@@ -974,7 +971,7 @@ collectgarbage _G.collectgarbage([opt [, arg]])\nThis function is a generic inte
colourise buffer.colourise(buffer, start_pos, end_pos)\nTells the lexer to style and fold the range of text from *start_pos* to\n*end_pos*.\nIf *end_pos* is `-1`, styles and folds to the end of the buffer.\n@param buffer The global buffer.\n@param start_pos The start position of the range of text in *buffer* to\n process.\n@param end_pos The end position of the range of text in *buffer* to process,\n or `-1` to process from *start_pos* to the end of *buffer*.
column buffer.column (table, Read-only)\nTable of column numbers, taking tab widths into account, for positions in\nthe buffer starting from zero.
command_entry gui.command_entry (module)\nTextadept's Command Entry.
-comment_string _M.textadept.editing.comment_string (table)\nMap of lexer names to line comment prefix strings for programming languages,\nused by the `block_comment()` function.\nKeys are lexer names and values are the line comment prefixes for the\nlanguage. This table is typically populated by language-specific modules.\n@see block_comment
+comment_string _M.textadept.editing.comment_string (table)\nMap of lexer names to line comment strings for programming languages, used by\nthe `block_comment()` function.\nKeys are lexer names and values are either the language's line comment\nprefixes or block comment delimiters separated by a '|'.\n@see block_comment
compile _M.textadept.run.compile()\nCompiles the file based on its extension using the command from the\n`compile_command` table.\nEmits a `COMPILE_OUTPUT` event.\n@see compile_command\n@see _G.events
compile_command _M.textadept.run.compile_command (table)\nMap of file extensions (excluding the leading '.') to their associated\n"compile" shell command line strings or functions returning such strings.\nCommand line strings may have the following macros:\n\n + `%(filepath)`: The full path of the current file.\n + `%(filedir)`: The current file's directory path.\n + `%(filename)`: The name of the file, including its extension.\n + `%(filename_noext)`: The name of the file, excluding its extension.\n\nThis table is typically populated by language-specific modules.
complete _M.textadept.adeptsense.complete(sense, only_fields, only_functions)\nShows an autocompletion list of functions (unless *only_fields* is `true`)\nand fields (unless *only_funcs* is `true`) for the symbol behind the caret,\nreturning `true` on success.\n@param sense The Adeptsense returned by `adeptsense.new()`. If `nil`, uses\n the current language's Adeptsense (if it exists).\n@param only_fields Optional flag indicating whether or not to return a list\n of only fields. The default value is `false`.\n@param only_functions Optional flag indicating whether or not to return a\n list of only functions. The default value is `false`.\n@return `true` on success or `false`.\n@see get_symbol\n@see get_completions
@@ -1068,7 +1065,7 @@ error _G.error(message [, level])\nTerminates the last protected function called
error_detail _M.textadept.run.error_detail (table)\nMap of lexer names to their error string details, tables containing the\nfollowing fields:\n\n + `pattern`: A Lua pattern that matches the language's error string,\n capturing the filename the error occurs in, the line number the error\n occurred on, and optionally the error message.\n + `filename`: The numeric index of the Lua capture containing the filename\n the error occurred in.\n + `line`: The numeric index of the Lua capture containing the line number\n the error occurred on.\n + `message`: (Optional) The numeric index of the Lua capture containing the\n error's message. An annotation will be displayed if a message was\n captured.\n\nWhen an error message is double-clicked, the user is taken to the point of\nerror.\nThis table is usually populated by language-specific modules.
events _G.events (module)\nTextadept's core event structure and handlers.
execute os.execute([command])\nThis function is equivalent to the ANSI C function `system`. It passes\n`command` to be executed by an operating system shell. Its first result is\n`true` if the command terminated successfully, or `nil` otherwise. After this\nfirst result the function returns a string and a number, as follows:\n "exit": the command terminated normally; the following number is the exit\n status of the command.\n "signal": the command was terminated by a signal; the following number is\n the signal that terminated the command.\n\nWhen called without a `command`, `os.execute` returns a boolean that is true\nif a shell is available.
-execute_lua gui.command_entry.execute_lua(code)\nExecutes string *code* as Lua code.\nCode is subject to an "abbreviated" environment where the `buffer`, `view`,\nand `gui` tables are also considered as globals.\nPrint the results of '=' expressions like in the Lua prompt.\n@param code The Lua code to execute.
+execute_lua gui.command_entry.execute_lua(code)\nExecutes string *code* as Lua code.\nCode is subject to an "abbreviated" environment where the `buffer`, `view`,\nand `gui` tables are also considered as globals.\nPrints the results of '=' expressions like in the Lua prompt.\n@param code The Lua code to execute.
exit os.exit([code [, close]])\nCalls the ANSI C function `exit` to terminate the host program. If `code` is\n`true`, the returned status is `EXIT_SUCCESS`; if `code` is `false`, the\nreturned status is `EXIT_FAILURE`; if `code` is a number, the returned status\nis this number. The default value for `code` is `true`.\n\nIf the optional second argument `close` is true, closes the Lua state before\nexiting.
exp math.exp(x)\nReturns the value *e^x*.
expand_children buffer.expand_children(buffer, line, level)\nExpands the fold states of the fold header on line number *line* and its\nchildren with fold level *level*.\n@param buffer The global buffer.\n@param line The line number in *buffer* to expand the folds for.\n@param level The previous fold level of *line*, not the current one. This is\n because this function is used to respond to changes in a line's fold level\n or fold header status, so a new fold level has already been set.
@@ -1144,7 +1141,6 @@ getregistry debug.getregistry()\nReturns the registry table (see §4.5).
getupvalue debug.getupvalue(f, up)\nThis function returns the name and the value of the upvalue with index\n`up` of the function `f`. The function returns nil if there is no upvalue\nwith the given index.
getuservalue debug.getuservalue(u)\nReturns the Lua value associated to `u`. If `u` is not a userdata, returns\nnil.
gmatch string.gmatch(s, pattern)\nReturns an iterator function that, each time it is called, returns the\nnext captures from `pattern` over the string `s`. If `pattern` specifies no\ncaptures, then the whole match is produced in each call.\n\nAs an example, the following loop will iterate over all the words from string\n`s`, printing one per line:\n\n s = "hello world from Lua"\n for w in string.gmatch(s, "%a+") do\n print(w)\n end\n\nThe next example collects all pairs `key=value` from the given string into a\ntable:\n\n t = {}\n s = "from=world, to=Lua"\n for k, v in string.gmatch(s, "(%w+)=(%w+)") do\n t[k] = v\n end\n\nFor this function, a caret '`^`' at the start of a pattern does not work as\nan anchor, as this would prevent the iteration.
-goto_bookmark _M.textadept.bookmarks.goto_bookmark()\nPrompts the user to select a bookmarked line to go to.
goto_buffer view.goto_buffer(view, n, relative)\nGoes to buffer number *n* in the view.\nIf *relative* is `true`, *n* is an index relative to the index of the current\nbuffer in `_G._BUFFERS` instead of an absolute index.\nEmits `BUFFER_BEFORE_SWITCH` and `BUFFER_AFTER_SWITCH` events.\n@param view The view to switch buffers in.\n@param n A relative or absolute buffer index in `_G._BUFFERS`. An absolute\n index of `-1` goes to the last buffer.\n@param relative Optional flag indicating whether *n* is a relative or\n absolute index. The default value is `false`, for an absolute index.\n@see _G._G._BUFFERS\n@see events.BUFFER_BEFORE_SWITCH\n@see events.BUFFER_AFTER_SWITCH
goto_ctag _M.textadept.adeptsense.goto_ctag(sense, kind, title)\nPrompts the user to select a symbol to jump to from a list of all known\nsymbols of kind *kind* (classes, functions, fields, etc.) shown in a filtered\nlist dialog whose title text is *title*.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param kind The Ctag character kind (e.g. `'f'` for a Lua function).\n@param title The title for the filtered list dialog.
goto_error _M.textadept.run.goto_error(line, next)\nGoes to the source of the recognized compile/run error on line number *line*\nin the message buffer or the next or previous recognized error depending on\nboolean *next*.\nDisplays an annotation with the error message, if available.\n@param line The line number in the message buffer that contains the\n compile/run error to go to.\n@param next Optional flag indicating whether to go to the next recognized\n error or the previous one. Only applicable when *line* is `nil` or `false`.\n@see error_detail\n@see cwd
@@ -1152,9 +1148,8 @@ goto_file gui.goto_file(filename, split, preferred_view, sloppy)\nGoes to the bu
goto_file_found gui.find.goto_file_found(line, next)\nGoes to the source of the find in files search result on line number *line*\nin the files found buffer, or if `nil`, the next or previous search result\ndepending on boolean *next*.\n@param line The line number in the files found buffer that contains the\n search result to go to.\n@param next Optional flag indicating whether to go to the next search result\n or the previous one. Only applicable when *line* is `nil` or `false`.
goto_line _M.textadept.editing.goto_line(line)\nGoes to line number *line* or the user-specified line in the buffer.\n@param line Optional line number to go to. If `nil`, the user is prompted for\n one.
goto_line buffer.goto_line(buffer, line)\nPlaces the caret an anchor at the beginning of line number *line* and scrolls\nthem into view.\n@param buffer The global buffer.\n@param line The line number in *buffer* to go to.
-goto_next _M.textadept.bookmarks.goto_next()\nGoes to the next bookmarked line in the current buffer.
+goto_mark _M.textadept.bookmarks.goto_mark(next)\nPrompts the user to select a bookmarked line to go to unless *next* is given.\nIf *next* is `true` or `false`, goes to the next or previous bookmark,\nrespectively.\n@param next Optional flag indicating whether to go to the next or previous\n bookmarked line relative to the current line. The default value is `nil`,\n prompting the user for a bookmarked line to go to.
goto_pos buffer.goto_pos(buffer, pos)\nPlaces the caret and anchor at position *pos* and scrolls them into view.\n@param buffer The global buffer.\n@param pos The position in *buffer* to go to.
-goto_prev _M.textadept.bookmarks.goto_prev()\nGoes to the previous bookmarked line in the current buffer.
goto_view gui.goto_view(n, relative)\nGoes to view number *n*.\nIf *relative* is `true`, *n* is an index relative to the index of the current\nview in `_G._VIEWS` instead of an absolute index.\nEmits `VIEW_BEFORE_SWITCH` and `VIEW_AFTER_SWITCH` events.\n@param n A relative or absolute view index in `_G._VIEWS`.\n@param relative Optional flag indicating whether *n* is a relative or\n absolute index. The default value is `false`, for an absolute index.\n@see _G._G._VIEWS\n@see events.VIEW_BEFORE_SWITCH\n@see events.VIEW_AFTER_SWITCH
grab_focus buffer.grab_focus(buffer)\nSets the focus to the buffer's view.\n@param buffer The global buffer.
graph lexer.graph (pattern)\nA pattern matching any graphical character (`!` to `~`).
@@ -1223,7 +1218,7 @@ lexer _G.lexer (module)\nLexes Scintilla documents with Lua and LPeg.
lexer buffer.lexer (number)\nThe numeric ID of the Scintilla lexer used by the buffer.
lexer lexer.lexer (table)\nIndividual lexer fields.
lexer_language buffer.lexer_language (string)\nThe name of the Scintilla lexer used by the buffer.\nYou probably want to use `buffer:get_lexer()` instead.
-lexers _M.textadept.mime_types.lexers (table)\nList of lexers found in `_LEXERPATH`.
+lexers _M.textadept.mime_types.lexers (table)\nList of available lexers.
lfs _G.lfs (module)\nLua lfs module.
line_copy buffer.line_copy(buffer)\nCopies the current line to the clipboard.\n@param buffer The global buffer.
line_count buffer.line_count (number, Read-only)\nThe number of lines in the buffer.\nThere is always at least one.
@@ -1443,7 +1438,7 @@ replace_sel buffer.replace_sel(buffer, text)\nReplaces the selected text with st
replace_target buffer.replace_target(buffer, text)\nReplaces the text in the target range with string *text*, returning the\nlength of *text*.\nThe recommended way to delete text in the buffer is to set the target to the\ntext to be removed, and to call this function with an empty string.\n@param buffer The global buffer.\n@param text The text to replace the target range with.\n@return number
replace_target_re buffer.replace_target_re(buffer, text)\nReplaces the text in the target range with string *text* after replacing any\n"\d" sequences, where `d` is a number in the range of `1` to `9`, with the\ntag match values from the regular expression or the entire match for "\0",\nreturning the length of the replacement text.\n@param buffer The global buffer.\n@param text The text to replace the target range with.\n@return number
require _G.require(modname)\nLoads the given module. The function starts by looking into the\n`package.loaded` table to determine whether `modname` is already\nloaded. If it is, then `require` returns the value stored at\n`package.loaded[modname]`. Otherwise, it tries to find a *loader* for\nthe module.\n\nTo find a loader, `require` is guided by the `package.searchers` sequence. By\nchanging this sequence, we can change how `require` looks for a module. The\nfollowing explanation is based on the default configuration for\n`package.searchers`.\n\nFirst `require` queries `package.preload[modname]`. If it has a value,\nthis value (which should be a function) is the loader. Otherwise `require`\nsearches for a Lua loader using the path stored in `package.path`. If\nthat also fails, it searches for a C loader using the path stored in\n`package.cpath`. If that also fails, it tries an *all-in-one* loader (see\n`package.searchers`).\n\nOnce a loader is found, `require` calls the loader with two arguments:\n`modname` and an extra value dependent on how it got the loader. (If the\nloader came from a file, this extra value is the file name.) If the loader\nreturns any non-nil value, `require` assigns the returned value to\n`package.loaded[modname]`. If the loader does not return a non-nil value and\nhas not assigned any value to `package.loaded[modname]`, then `require`\nassigns <b>true</b> to this entry. In any case, `require` returns the final\nvalue of `package.loaded[modname]`.\n\nIf there is any error loading or running the module, or if it cannot find\nany loader for the module, then `require` raises an error.
-reset _G.reset()\nResets the Lua state by reloading all initialization scripts.\nLanguage-specific modules for opened files are NOT reloaded. Re-opening the\nfiles that use them will reload those modules instead.\nThis function is useful for modifying user scripts (such as\n*~/.textadept/init.lua* and *~/.textadept/modules/textadept/keys.lua*) on\nthe fly without having to restart Textadept. `_G.RESETTING` is set to `true`\nwhen re-initing the Lua State. Any scripts that need to differentiate between\nstartup and reset can utilize this variable.\n@see RESETTING
+reset _G.reset()\nResets the Lua state by reloading all initialization scripts.\nLanguage-specific modules for opened files are NOT reloaded. Re-opening the\nfiles that use them will reload those modules instead.\nThis function is useful for modifying user scripts (such as\n*~/.textadept/init.lua* and *~/.textadept/modules/textadept/keys.lua*) on\nthe fly without having to restart Textadept. `arg` is set to `nil` when\nreinitializing the Lua State. Any scripts that need to differentiate between\nstartup and reset can test `arg`.
resume coroutine.resume(co [, val1, ···])\nStarts or continues the execution of coroutine `co`. The first time\nyou resume a coroutine, it starts running its body. The values `val1`,\n... are passed as the arguments to the body function. If the coroutine\nhas yielded, `resume` restarts it; the values `val1`, ... are passed\nas the results from the yield.\n\nIf the coroutine runs without any errors, `resume` returns true plus any\nvalues passed to `yield` (if the coroutine yields) or any values returned\nby the body function (if the coroutine terminates). If there is any error,\n`resume` returns false plus the error message.
reverse string.reverse(s)\nReturns a string that is the string `s` reversed.
rgba_image_height buffer.rgba_image_height (number)\nThe height for an RGBA image to be defined using\n`buffer:marker_define_rgba_image()`.
@@ -1536,7 +1531,7 @@ set_sel_fore buffer.set_sel_fore(buffer, use_setting, color)\nOverrides the defa
set_selection buffer.set_selection(buffer, caret, anchor)\nSelects the range of text from *anchor* to *caret* in the buffer, removing\nall other selections.\n@param buffer The global buffer.\n@param caret The caret position of the range of text to select in *buffer*.\n@param anchor The anchor position of the range of text to select in *buffer*.
set_styling buffer.set_styling(buffer, length, style)\nSets the style of the next *length* characters, from the current styling\nposition, to style number *style*, in the range from `0` to `255`, and\nincrements the styling position by *length*.\n@param buffer The global buffer.\n@param length The number of characters to style.\n@param style The style number to set.
set_text buffer.set_text(buffer, text)\nReplaces all of the text in the buffer with string *text*.\n@param buffer The global buffer.\n@param text The text to set.
-set_theme gui.set_theme(name)\nSets the editor theme name to *name* or prompts the user to select one from a\nlist of themes found in the *`_USERHOME`/themes/* and *`_HOME`/themes/*\ndirectories.\nUser themes override Textadept's default themes when they have the same name.\nIf *name* contains slashes, it is assumed to be an absolute path to a theme\ninstead of a theme name.\n@param name Optional name or absolute path of a theme to set. If `nil`, the\n user is prompted for one.
+set_theme gui.set_theme(name, ...)\nSets the editor theme name to *name* and optionally sets key-value pair\nargument properties.\nUser themes override Textadept's default themes when they have the same name.\nIf *name* contains slashes, it is assumed to be an absolute path to a theme\ninstead of a theme name.\n@param name The name or absolute path of a theme to set.\n@param ... Optional key-value argument pairs for theme properties to set.\n These override the theme's defaults.\n@usage gui.set_theme('light', 'font', 'Monospace', 'fontsize', 12)
set_visible_policy buffer.set_visible_policy(buffer, visible_policy, visible_slop)\nSets the visible policy bit-mask *visible_policy* for displaying lines using\n`buffer:ensure_visible_enforce_policy()` to *visible_slop* number of lines\nfrom the bottom of the view.\nIt is similar in operation to `buffer:set_y_caret_policy()`.\n@param buffer The global buffer.\n@param visible_policy The combination of `_SCINTILLA.constants.VISIBLE_SLOP`\n (0x01) and `_SCINTILLA.constants.VISIBLE_STRICT` (0x04) policy flags to set.\n@param visible_slop The slop value to use.
set_whitespace_back buffer.set_whitespace_back(buffer, use_setting, color)\nOverrides the background color of whitespace with *color*, in "0xBBGGRR"\nformat, if *use_setting* is `true`.\n@param buffer The global buffer.\n@param use_setting Whether or not to use *color*.\n@param color The color in "0xBBGGRR" format.
set_whitespace_fore buffer.set_whitespace_fore(buffer, use_setting, color)\nOverrides the foreground color of whitespace with *color*, in "0xBBGGRR"\nformat, if *use_setting* is `true`.\n@param use_setting Whether or not to use *color*.\n@param color The color in "0xBBGGRR" format.
diff --git a/modules/lua/tags b/modules/lua/tags
index 98a88f0b..f74c08ab 100644
--- a/modules/lua/tags
+++ b/modules/lua/tags
@@ -52,7 +52,7 @@ ERROR _ 0;" F class:events
ERROR _ 0;" F class:lexer
ERROR_COLOR _ 0;" F class:_M.textadept.run
FIELD _ 0;" F class:_M.textadept.adeptsense
-FIELDS _ 0;" F class:_M.textadept.adeptsense
+FIELD_IMAGE _ 0;" F class:_M.textadept.adeptsense
FILE_AFTER_SAVE _ 0;" F class:events
FILE_BEFORE_SAVE _ 0;" F class:events
FILE_OPENED _ 0;" F class:events
@@ -66,7 +66,7 @@ FOLD_BLANK _ 0;" F class:lexer
FOLD_HEADER _ 0;" F class:lexer
FUNCTION _ 0;" F class:_M.textadept.adeptsense
FUNCTION _ 0;" F class:lexer
-FUNCTIONS _ 0;" F class:_M.textadept.adeptsense
+FUNCTION_IMAGE _ 0;" F class:_M.textadept.adeptsense
HIGHLIGHT_BRACES _ 0;" F class:_M.textadept.editing
HIGHLIGHT_COLOR _ 0;" F class:_M.textadept.editing
HOTSPOT_CLICK _ 0;" F class:events
@@ -119,7 +119,6 @@ R _ 0;" f class:lpeg
REGEX _ 0;" F class:lexer
REPLACE _ 0;" F class:events
REPLACE_ALL _ 0;" F class:events
-RESETTING _ 0;" F
RESET_AFTER _ 0;" F class:events
RESET_BEFORE _ 0;" F class:events
RUN_OUTPUT _ 0;" F class:events
@@ -753,7 +752,7 @@ SC_WRAP_NONE _ 0;" F class:_SCINTILLA.constants
SC_WRAP_WORD _ 0;" F class:_SCINTILLA.constants
SNAPOPEN_MAX _ 0;" F class:io
STRING _ 0;" F class:lexer
-STRIP_WHITESPACE_ON_SAVE _ 0;" F class:_M.textadept.editing
+STRIP_TRAILING_SPACES _ 0;" F class:_M.textadept.editing
STYLE_BRACEBAD _ 0;" F class:_SCINTILLA.constants
STYLE_BRACEBAD _ 0;" F class:lexer
STYLE_BRACELIGHT _ 0;" F class:_SCINTILLA.constants
@@ -805,14 +804,12 @@ WHITESPACE _ 0;" F class:lexer
WIN32 _ 0;" F
_BUFFERS _ 0;" t
_CHARSET _ 0;" F
-_EXISTS _ 0;" f class:_L
_G _ 0;" F
_G _ 0;" m
_HOME _ 0;" F
_L _ 0;" m
_L _ 0;" t
_LEXBYLINE _ 0;" F class:lexer.lexer
-_LEXERPATH _ 0;" F
_M _ 0;" m
_M _ 0;" t
_M.cpp _ 0;" m
@@ -1173,7 +1170,6 @@ getregistry _ 0;" f class:debug
getupvalue _ 0;" f class:debug
getuservalue _ 0;" f class:debug
gmatch _ 0;" f class:string
-goto_bookmark _ 0;" f class:_M.textadept.bookmarks
goto_buffer _ 0;" f class:view
goto_ctag _ 0;" f class:_M.textadept.adeptsense
goto_error _ 0;" f class:_M.textadept.run
@@ -1181,9 +1177,8 @@ goto_file _ 0;" f class:gui
goto_file_found _ 0;" f class:gui.find
goto_line _ 0;" f class:_M.textadept.editing
goto_line _ 0;" f class:buffer
-goto_next _ 0;" f class:_M.textadept.bookmarks
+goto_mark _ 0;" f class:_M.textadept.bookmarks
goto_pos _ 0;" f class:buffer
-goto_prev _ 0;" f class:_M.textadept.bookmarks
goto_view _ 0;" f class:gui
grab_focus _ 0;" f class:buffer
graph _ 0;" F class:lexer