4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When starting the GUI fails there is no way to adjust settings or
13 Solution: Add the GUIFailed autocommand event.
14 Files: src/fileio.c, src/gui.c, src/vim.h
17 *** ../vim-7.0.071/src/fileio.c Wed Aug 16 19:34:59 2006
18 --- src/fileio.c Tue Aug 29 10:11:35 2006
22 {"FocusLost", EVENT_FOCUSLOST},
23 {"FuncUndefined", EVENT_FUNCUNDEFINED},
24 {"GUIEnter", EVENT_GUIENTER},
25 + {"GUIFailed", EVENT_GUIFAILED},
26 {"InsertChange", EVENT_INSERTCHANGE},
27 {"InsertEnter", EVENT_INSERTENTER},
28 {"InsertLeave", EVENT_INSERTLEAVE},
29 *** ../vim-7.0.071/src/gui.c Tue Jun 20 20:39:32 2006
30 --- src/gui.c Tue Aug 29 10:12:32 2006
36 ! /* If the GUI started successfully, trigger the GUIEnter event */
38 ! apply_autocmds(EVENT_GUIENTER, NULL, NULL, FALSE, curbuf);
46 ! /* If the GUI started successfully, trigger the GUIEnter event, otherwise
47 ! * the GUIFailed event. */
48 ! apply_autocmds(gui.in_use ? EVENT_GUIENTER : EVENT_GUIFAILED,
49 ! NULL, NULL, FALSE, curbuf);
53 *** ../vim-7.0.071/src/vim.h Fri Jun 23 16:33:41 2006
54 --- src/vim.h Tue Aug 29 10:12:47 2006
58 EVENT_FOCUSGAINED, /* got the focus */
59 EVENT_FOCUSLOST, /* lost the focus to another app */
60 EVENT_GUIENTER, /* after starting the GUI */
61 + EVENT_GUIFAILED, /* after starting the GUI failed */
62 EVENT_INSERTCHANGE, /* when changing Insert/Replace mode */
63 EVENT_INSERTENTER, /* when entering Insert mode */
64 EVENT_INSERTLEAVE, /* when leaving Insert mode */
65 *** ../vim-7.0.071/src/version.c Tue Aug 29 18:01:39 2006
66 --- src/version.c Tue Aug 29 18:15:13 2006
70 { /* Add new patch number below this line */
76 hundred-and-one symptoms of being an internet addict:
77 269. You receive an e-mail from the wife of a deceased president, offering
78 to send you twenty million dollar, and you are not even surprised.
80 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
81 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
82 \\\ download, build and distribute -- http://www.A-A-P.org ///
83 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///