From 2b01c3a8a87a8d8ba26bc95b95441835634a2948 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 11 Dec 2018 23:51:29 +0100 Subject: ex_cmds: Remove various "not implemented" commands Commands related to Netbeans, Sun Workshop, and GUI shims, were intentionally removed and will not be implemented. --- src/nvim/ex_cmds.lua | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'src') diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index d9212aa4e3..79ca5363e0 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -1706,24 +1706,6 @@ return { addr_type=ADDR_LINES, func='ex_next', }, - { - command='nbkey', - flags=bit.bor(EXTRA, NOTADR, NEEDARG), - addr_type=ADDR_LINES, - func='ex_ni', - }, - { - command='nbclose', - flags=bit.bor(TRLBAR, CMDWIN), - addr_type=ADDR_LINES, - func='ex_ni', - }, - { - command='nbstart', - flags=bit.bor(WORD1, TRLBAR, CMDWIN), - addr_type=ADDR_LINES, - func='ex_ni', - }, { command='new', flags=bit.bor(BANG, FILE1, RANGE, NOTADR, EDITCMD, ARGOPT, TRLBAR), @@ -1958,18 +1940,6 @@ return { addr_type=ADDR_LINES, func='ex_previous', }, - { - command='promptfind', - flags=bit.bor(EXTRA, NOTRLCOM, CMDWIN), - addr_type=ADDR_LINES, - func='ex_ni', - }, - { - command='promptrepl', - flags=bit.bor(EXTRA, NOTRLCOM, CMDWIN), - addr_type=ADDR_LINES, - func='ex_ni', - }, { command='profile', flags=bit.bor(BANG, EXTRA, TRLBAR, CMDWIN), @@ -3116,12 +3086,6 @@ return { addr_type=ADDR_LINES, func='do_wqall', }, - { - command='wsverb', - flags=bit.bor(EXTRA, NOTADR, NEEDARG), - addr_type=ADDR_LINES, - func='ex_ni', - }, { command='wshada', flags=bit.bor(BANG, FILE1, TRLBAR, CMDWIN), -- cgit From 61d0dfee32ce9a9fb2497b02558df02eabb61d1b Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 12 Dec 2018 00:17:27 +0100 Subject: provider: repurpose E319 In Vim (and some vestigial parts of Nvim) E319 was a placeholder for ex_ni commands, i.e. commands that are only available in certain builds of Vim. That is obviously counter to Nvim's goals: all Nvim commands are available on all platforms and build types (the remaining ex_ni commands are actually just missing providers). We need an error id for "missing provider", so it makes sense to use E319 for that purpose. ref #9344 ref #3577 --- src/nvim/ex_cmds2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index d03bfd2488..c9b6d19aaa 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -3830,7 +3830,8 @@ static void script_host_execute(char *name, exarg_T *eap) tv_list_append_number(args, (int)eap->line2); if (!eval_has_provider(name)) { - emsgf("No \"%s\" provider found. Run \":checkhealth provider\"", name); + emsgf("E319: No \"%s\" provider found. Run \":checkhealth provider\"", + name); } else { (void)eval_call_provider(name, "execute", args); } -- cgit