Information commands. More...
#include "config.h"
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "mutt.h"
#include "icommands.h"
#include "menu/lib.h"
#include "pager/lib.h"
#include "functions.h"
#include "init.h"
#include "keymap.h"
#include "muttlib.h"
#include "opcodes.h"
#include "version.h"
Go to the source code of this file.
Functions | |
static enum CommandResult | icmd_bind (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse 'bind' and 'macro' commands - Implements ICommand::parse() More... | |
static enum CommandResult | icmd_set (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse 'set' command to display config - Implements ICommand::parse() More... | |
static enum CommandResult | icmd_version (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse 'version' command - Implements ICommand::parse() More... | |
enum CommandResult | mutt_parse_icommand (const char *line, struct Buffer *err) |
Parse an informational command. More... | |
static void | dump_bind (struct Buffer *buf, struct Mapping *menu, struct Keymap *map) |
Dump a bind map to a buffer. More... | |
static void | dump_macro (struct Buffer *buf, struct Mapping *menu, struct Keymap *map) |
Dump a macro map to a buffer. More... | |
static bool | dump_menu (struct Buffer *buf, struct Mapping *menu, bool bind) |
Dumps all the binds or macros maps of a menu into a buffer. More... | |
static void | dump_all_menus (struct Buffer *buf, bool bind) |
Dumps all the binds or macros inside every menu. More... | |
Variables | |
static const struct ICommand | ICommandList [] |
All available informational commands. More... | |
Information commands.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file icommands.c.
|
static |
Parse 'bind' and 'macro' commands - Implements ICommand::parse()
Definition at line 244 of file icommands.c.
|
static |
Parse 'set' command to display config - Implements ICommand::parse()
Definition at line 508 of file icommands.c.
|
static |
Parse 'version' command - Implements ICommand::parse()
Definition at line 552 of file icommands.c.
enum CommandResult mutt_parse_icommand | ( | const char * | line, |
struct Buffer * | err | ||
) |
Parse an informational command.
MUTT_CMD_SUCCESS | Success |
MUTT_CMD_WARNING | Warning with message: command failed |
MUTT_CMD_ERROR |
|
Definition at line 91 of file icommands.c.
Dump a bind map to a buffer.
buf | Output buffer |
menu | Map menu |
map | Bind keymap |
Definition at line 131 of file icommands.c.
Dump a macro map to a buffer.
buf | Output buffer |
menu | Map menu |
map | Macro keymap |
Definition at line 170 of file icommands.c.
Dumps all the binds or macros maps of a menu into a buffer.
buf | Output buffer |
menu | Menu to dump |
bind | If true it's :bind, else :macro |
Definition at line 199 of file icommands.c.
|
static |
Dumps all the binds or macros inside every menu.
buf | Output buffer |
bind | If true it's :bind, else :macro |
Definition at line 226 of file icommands.c.
|
static |
All available informational commands.
Definition at line 68 of file icommands.c.