152 N_(
"Run a Lua expression or call a Lua function"),
153 N_(
"lua <lua-command>"),
154 "optionalfeatures.html#lua" },
156 N_(
"Execute a Lua script file"),
157 N_(
"lua-source <filename>"),
158 "optionalfeatures.html#lua" },
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
void buf_reset(struct Buffer *buf)
Reset an existing Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
#define CF_NO_FLAGS
No flags are set.
@ CMD_LUA_SOURCE
:lua-source
CommandResult
Error codes for command_t parse functions.
@ MUTT_CMD_SUCCESS
Success: Command worked.
@ MUTT_CMD_ERROR
Error: Can't help the user.
@ MUTT_CMD_WARNING
Warning: Help given to the user.
Convenience wrapper for the core headers.
enum CommandResult parse_lua_source(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'lua-source' command - Implements Command::parse() -.
enum CommandResult parse_lua(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'lua' command - Implements Command::parse() -.
#define mutt_debug(LEVEL,...)
@ LL_DEBUG2
Log at debug level 2.
bool lua_init_state(lua_State **l)
Initialise a Lua State.
lua_State * LuaState
Global Lua State.
void lua_cleanup(void)
Clean up Lua.
const struct Command LuaCommands[]
List of NeoMutt commands to register.
Integrated Lua scripting.
Convenience wrapper for the library headers.
void expand_path(struct Buffer *buf, bool regex)
Create the canonical path.
Some miscellaneous functions.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
String manipulation buffer.
char * dptr
Current read/write position.
const char * name
Name of the Command.
Context for config parsing (history/backtrace)
Detailed error information from config parsing.
struct Buffer * message
Error message.