From ea38eb17f565445ae79e0a2208384ad213fbb5ef Mon Sep 17 00:00:00 2001 From: Reis Radomil Date: Sun, 1 Apr 2018 13:31:16 +0000 Subject: [PATCH] Rename to Rename the function to as well as its symbolic constant OP_SHOW_MESSAGES to OP_SHOW_LOG_MESSAGES. Background is that 'messages' (in the context of neomutt) refers usually to emails instead of log messages. --- curs_main.c | 2 +- functions.h | 2 +- opcodes.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/curs_main.c b/curs_main.c index c8e571164..4f1af9d09 100644 --- a/curs_main.c +++ b/curs_main.c @@ -1408,7 +1408,7 @@ int mutt_index_menu(void) break; #endif /* USE_POP */ - case OP_SHOW_MESSAGES: + case OP_SHOW_LOG_MESSAGES: { char tempfile[PATH_MAX]; mutt_mktemp(tempfile, sizeof(tempfile)); diff --git a/functions.h b/functions.h index dccf235cb..2a91c4ba7 100644 --- a/functions.h +++ b/functions.h @@ -202,7 +202,7 @@ const struct Binding OpMain[] = { /* map: index */ { "save-message", OP_SAVE, "s" }, { "set-flag", OP_MAIN_SET_FLAG, "w" }, { "show-limit", OP_MAIN_SHOW_LIMIT, "\033l" }, - { "show-messages", OP_SHOW_MESSAGES, "M" }, + { "show-log-messages", OP_SHOW_LOG_MESSAGES, "M" }, { "show-version", OP_VERSION, "V" }, #ifdef USE_SIDEBAR { "sidebar-next", OP_SIDEBAR_NEXT, NULL }, diff --git a/opcodes.h b/opcodes.h index 8ab1c519d..3240a0ca9 100644 --- a/opcodes.h +++ b/opcodes.h @@ -218,7 +218,7 @@ _fmt(OP_SEARCH_REVERSE, N_("search backwards for a regular expression")) \ _fmt(OP_SEARCH_TOGGLE, N_("toggle search pattern coloring")) \ _fmt(OP_SHELL_ESCAPE, N_("invoke a command in a subshell")) \ - _fmt(OP_SHOW_MESSAGES, N_("show log (and debug) messages")) \ + _fmt(OP_SHOW_LOG_MESSAGES, N_("show log (and debug) messages")) \ _fmt(OP_SORT, N_("sort messages")) \ _fmt(OP_SORT_REVERSE, N_("sort messages in reverse order")) \ _fmt(OP_SUBSCRIBE_PATTERN, N_("subscribe to newsgroups matching a pattern")) \ -- 2.40.0