+2014-06-04 Benno Schulenberg <bensberg@justemail.net>
+ * src/global.c (shortcut_init), src/files.c (do_insertfile): Rename
+ 'ext_cmd_void' to 'flip_execute_void' to better match what it does.
+ * src/global.c (strtosc), doc/man/nanorc.5, doc/texinfo/nano.texi:
+ Add function name 'flipexecute' to enable rebinding ^X in the menus
+ Read File and Execute Command.
+
2014-06-04 David Lawrence Ramsey <pooka109@gmail.com>
* src/*.c: Adjustments of whitespace and comments.
* doc/nanorc.sample.in: Interpunction tweaks.
void no_replace_void(void)
{
}
-void ext_cmd_void(void)
+void flip_execute_void(void)
{
}
/* If we're using restricted mode, file insertion is disabled, and
* thus command execution and the multibuffer toggle have no place. */
if (!ISSET(RESTRICTED)) {
- add_to_funcs(ext_cmd_void, MINSERTFILE,
+ add_to_funcs(flip_execute_void, MINSERTFILE,
N_("Execute Command"), IFSCHELP(nano_execute_msg), FALSE, NOVIEW);
- add_to_funcs(ext_cmd_void, MEXTCMD,
+ add_to_funcs(flip_execute_void, MEXTCMD,
read_file_tag, IFSCHELP(nano_insert_msg), FALSE, NOVIEW);
#ifndef DISABLE_MULTIBUFFER
#ifndef DISABLE_BROWSER
add_to_sclist(MWRITEFILE|MINSERTFILE, "^T", to_files_void, 0, FALSE);
#endif
- add_to_sclist(MINSERTFILE|MEXTCMD, "^X", ext_cmd_void, 0, FALSE);
+ add_to_sclist(MINSERTFILE|MEXTCMD, "^X", flip_execute_void, 0, FALSE);
add_to_sclist(MINSERTFILE|MEXTCMD, "M-F", new_buffer_void, 0, FALSE);
add_to_sclist(MHELP|MBROWSER, "^C", do_exit, 0, TRUE);
#ifndef DISABLE_HELP
} else if (!strcasecmp(input, "backup")) {
s->scfunc = backup_file_void;
s->execute = FALSE;
+#ifndef ENABLE_TINY
+ } else if (!strcasecmp(input, "flipexecute")) {
+ s->scfunc = flip_execute_void;
+ s->execute = FALSE;
+#endif
#ifndef DISABLE_MULTIBUFFER
} else if (!strcasecmp(input, "newbuffer")) {
s->scfunc = new_buffer_void;