On Saturday, August 23, 2014 1:06:17 AM UTC+4, Bram Moolenaar wrote:
> Patch 7.4.414
>
> Problem: Cannot define a command only when it's used.
>
> Solution: Add the CmdUndefined autocommand event. (partly by Yasuhiro
>
Hello! This patch causes compilation error
ex_docmd.c: In function ‘do_one_cmd’:
ex_docmd.c:2159:23: error: ‘EVENT_CMDUNDEFINED’ undeclared (first use in this
function)
ret = apply_autocmds(EVENT_CMDUNDEFINED, p, p, TRUE, NULL);
^
I guess, EVENT_CMDUNDEFINED is missing from vim.h. Attached patch fixes an
issue, though I'm not sure about comment.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff -r c21bd8e7346c src/vim.h
--- a/src/vim.h Fri Aug 22 23:05:54 2014 +0200
+++ b/src/vim.h Sat Aug 23 01:37:12 2014 +0400
@@ -1265,6 +1265,7 @@
EVENT_BUFWRITECMD, /* write buffer using command */
EVENT_CMDWINENTER, /* after entering the cmdline window */
EVENT_CMDWINLEAVE, /* before leaving the cmdline window */
+ EVENT_CMDUNDEFINED, /* on unexistent command */
EVENT_COLORSCHEME, /* after loading a colorscheme */
EVENT_COMPLETEDONE, /* after finishing insert complete */
EVENT_FILEAPPENDPOST, /* after appending to a file */