147 N_(
"Run a Lua expression or call a Lua function"),
148 N_(
"lua '<lua-commands>'"),
149 "optionalfeatures.html#lua-commands" },
151 N_(
"Execute a Lua script file"),
152 N_(
"lua-source <file>"),
153 "optionalfeatures.html#lua-commands" },
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.
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.
bool commands_register(struct CommandArray *ca, const struct Command *cmds)
Add commands to Commands array.
Convenience wrapper for the core headers.
enum CommandResult parse_lua_source(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'lua-source' command - Implements Command::parse() -.
enum CommandResult parse_lua(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
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.
void lua_init(void)
Setup feature commands.
lua_State * LuaState
Global Lua State.
void lua_cleanup(void)
Clean up Lua.
static const struct Command LuaCommands[]
List of NeoMutt commands to register.
Integrated Lua scripting.
Convenience wrapper for the library headers.
void buf_expand_path(struct Buffer *buf)
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.
Container for Accounts, Notifications.
struct CommandArray commands
NeoMutt commands.