]>
Commit | Line | Data |
---|---|---|
dbf7c229 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.0.072 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.0.072 | |
11 | Problem: When starting the GUI fails there is no way to adjust settings or | |
12 | do something else. | |
13 | Solution: Add the GUIFailed autocommand event. | |
14 | Files: src/fileio.c, src/gui.c, src/vim.h | |
15 | ||
16 | ||
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 | |
19 | *************** | |
20 | *** 6980,6985 **** | |
21 | --- 6980,6986 ---- | |
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 | |
31 | *************** | |
32 | *** 187,195 **** | |
33 | #endif | |
34 | ||
35 | #ifdef FEAT_AUTOCMD | |
36 | ! /* If the GUI started successfully, trigger the GUIEnter event */ | |
37 | ! if (gui.in_use) | |
38 | ! apply_autocmds(EVENT_GUIENTER, NULL, NULL, FALSE, curbuf); | |
39 | #endif | |
40 | ||
41 | --recursive; | |
42 | --- 187,196 ---- | |
43 | #endif | |
44 | ||
45 | #ifdef FEAT_AUTOCMD | |
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); | |
50 | #endif | |
51 | ||
52 | --recursive; | |
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 | |
55 | *************** | |
56 | *** 1120,1125 **** | |
57 | --- 1120,1126 ---- | |
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 | |
67 | *************** | |
68 | *** 668,669 **** | |
69 | --- 668,671 ---- | |
70 | { /* Add new patch number below this line */ | |
71 | + /**/ | |
72 | + 72, | |
73 | /**/ | |
74 | ||
75 | -- | |
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. | |
79 | ||
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 /// |