From: Richard Russon Date: Tue, 20 Aug 2019 17:26:59 +0000 (+0100) Subject: rename MENU_POST to MENU_POSTPONE X-Git-Tag: 2019-10-25~91^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31b65bd2319c5bab601ab8048dd08978a864fc6f;p=neomutt rename MENU_POST to MENU_POSTPONE 'POST' implies sending an email, but the menu deals with postponed emails. --- diff --git a/keymap.c b/keymap.c index 9c9c513b5..b88b9b62a 100644 --- a/keymap.c +++ b/keymap.c @@ -65,7 +65,7 @@ const struct Mapping Menus[] = { { "editor", MENU_EDITOR }, { "index", MENU_MAIN }, { "pager", MENU_PAGER }, - { "postpone", MENU_POST }, + { "postpone", MENU_POSTPONE }, { "pgp", MENU_PGP }, { "smime", MENU_SMIME }, #ifdef CRYPT_BACKEND_GPGME @@ -929,7 +929,7 @@ void km_init(void) create_bindings(OpCompose, MENU_COMPOSE); create_bindings(OpMain, MENU_MAIN); create_bindings(OpPager, MENU_PAGER); - create_bindings(OpPost, MENU_POST); + create_bindings(OpPost, MENU_POSTPONE); create_bindings(OpQuery, MENU_QUERY); create_bindings(OpAlias, MENU_ALIAS); @@ -1251,7 +1251,7 @@ const struct Binding *km_get_table(int menu) return OpPager; case MENU_PGP: return (WithCrypto & APPLICATION_PGP) ? OpPgp : NULL; - case MENU_POST: + case MENU_POSTPONE: return OpPost; case MENU_QUERY: return OpQuery; diff --git a/keymap.h b/keymap.h index 8d3fc2031..9e06cb2e7 100644 --- a/keymap.h +++ b/keymap.h @@ -76,7 +76,7 @@ enum MenuType MENU_GENERIC, ///< Generic selection list MENU_MAIN, ///< Index panel (list of emails) MENU_PAGER, ///< Pager pager (email viewer) - MENU_POST, ///< Select a postponed email + MENU_POSTPONE, ///< Select a postponed email MENU_QUERY, ///< Select from results of external query MENU_PGP, ///< PGP encryption menu MENU_SMIME, ///< SMIME encryption menu diff --git a/postpone.c b/postpone.c index 0bc703479..25901f41d 100644 --- a/postpone.c +++ b/postpone.c @@ -218,12 +218,12 @@ static struct Email *select_msg(struct Context *ctx) bool done = false; char helpstr[1024]; - struct Menu *menu = mutt_menu_new(MENU_POST); + struct Menu *menu = mutt_menu_new(MENU_POSTPONE); menu->menu_make_entry = post_make_entry; menu->max = ctx->mailbox->msg_count; menu->title = _("Postponed Messages"); menu->data = ctx; - menu->help = mutt_compile_help(helpstr, sizeof(helpstr), MENU_POST, PostponeHelp); + menu->help = mutt_compile_help(helpstr, sizeof(helpstr), MENU_POSTPONE, PostponeHelp); mutt_menu_push_current(menu); /* The postponed mailbox is setup to have sorting disabled, but the global