53 const char *fn_name = NULL;
68 for (
int i = 0; i < km->
len; i++)
95 for (
int i = 0; i < km->
len; i++)
112 if (brief && (i > 2))
145 if (brief && (count++ > 2))
157 if (km->
op == OP_MACRO)
177 struct SubMenuId smi = { ARRAY_FOREACH_IDX_sm,
sm };
#define ARRAY_FIRST(head)
Convenience method to get the first element.
#define ARRAY_ADD(head, elem)
Add an element at the end of the array.
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_FREE(head)
Release all memory.
#define ARRAY_HEAD(name, T)
Define a named struct for arrays of elements of a certain type.
#define ARRAY_HEAD_INITIALIZER
Static initializer for arrays.
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
int buf_add_printf(struct Buffer *buf, const char *fmt,...)
Format a string appending 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".
size_t escape_string(struct Buffer *buf, const char *src)
Write a string to a buffer, escaping special characters.
Convenience wrapper for the config headers.
void dump_menus(struct SubMenuIdArray *smia)
Dump all menus.
void dump_submenus(bool brief, struct SubMenuIdArray *smia)
Dump all submenus.
void log_macro(const char *keystr, struct Keymap *km)
Dumps all the macros maps of a menu into a buffer.
void dump_menu_binds(bool brief)
Dump all menu bindings.
void dump_menu_funcs(bool brief)
Dump all menu functions.
void dump_submenu_bindings(const struct MenuDefinition *md, const struct SubMenu *sm, bool brief)
Dump submenu bindings.
void log_bind(const struct MenuDefinition *md, const char *keystr, struct Keymap *km)
Log a key binding.
void dump_submenu_functions(const struct SubMenu *sm, bool brief)
Dump submenu functions.
Convenience wrapper for the debug headers.
const char * name_menu_type(enum MenuType mt)
Get the name of a menu type.
#define mutt_debug(LEVEL,...)
Convenience wrapper for the gui headers.
struct MenuDefinitionArray MenuDefs
All the registered Menus.
struct SubMenuArray SubMenus
All the registered SubMenus.
const char * help_lookup_function(const struct MenuDefinition *md, int op)
Find a keybinding for an operation.
bool keymap_expand_key(struct Keymap *km, struct Buffer *buf)
Get the key string bound to a Keymap.
@ LL_DEBUG1
Log at debug level 1.
Convenience wrapper for the library headers.
const char * opcodes_get_name(int op)
Get the name of an opcode.
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.
#define STAILQ_FOREACH(var, head, field)
#define STAILQ_EMPTY(head)
String manipulation buffer.
keycode_t * keys
Key sequence.
char * macro
Macro expansion (op == OP_MACRO)
short eq
Number of leading keys equal to next entry.
char * desc
Description of a macro for the help menu.
short len
Length of key sequence (unit: sizeof (keycode_t))
short op
Operation to perform.