]> git.pld-linux.org Git - packages/vim.git/blame - 6.2.044
- use new bonobo patch (20040115)
[packages/vim.git] / 6.2.044
CommitLineData
d8621708 1To: vim-dev@vim.org
2Subject: Patch 6.2.044
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 6.2.044
11Problem: ":au filetypedetect" gives an error for a non-existing event name,
12 but it's actually a non-existing group name. (Antoine Mechelynck)
13Solution: Make the error message clearer.
14Files: src/fileio.c
15
16
17*** ../vim-6.2.043/src/fileio.c Thu Jul 24 21:45:33 2003
18--- src/fileio.c Tue Jun 24 15:34:24 2003
19***************
20*** 6149,6155 ****
21 static int au_find_group __ARGS((char_u *name));
22 static EVENT_T event_name2nr __ARGS((char_u *start, char_u **end));
23 static char_u *event_nr2name __ARGS((EVENT_T event));
24! static char_u *find_end_event __ARGS((char_u *arg));
25 static int event_ignored __ARGS((EVENT_T event));
26 static int au_get_grouparg __ARGS((char_u **argp));
27 static int do_autocmd_event __ARGS((EVENT_T event, char_u *pat, int nested, char_u *cmd, int forceit, int group));
28--- 6149,6155 ----
29 static int au_find_group __ARGS((char_u *name));
30 static EVENT_T event_name2nr __ARGS((char_u *start, char_u **end));
31 static char_u *event_nr2name __ARGS((EVENT_T event));
32! static char_u *find_end_event __ARGS((char_u *arg, int have_group));
33 static int event_ignored __ARGS((EVENT_T event));
34 static int au_get_grouparg __ARGS((char_u **argp));
35 static int do_autocmd_event __ARGS((EVENT_T event, char_u *pat, int nested, char_u *cmd, int forceit, int group));
36***************
37*** 6484,6491 ****
38 * Scan over the events. "*" stands for all events.
39 */
40 static char_u *
41! find_end_event(arg)
42 char_u *arg;
43 {
44 char_u *pat;
45 char_u *p;
46--- 6484,6492 ----
47 * Scan over the events. "*" stands for all events.
48 */
49 static char_u *
50! find_end_event(arg, have_group)
51 char_u *arg;
52+ int have_group; /* TRUE when group name was found */
53 {
54 char_u *pat;
55 char_u *p;
56***************
57*** 6505,6511 ****
58 {
59 if ((int)event_name2nr(pat, &p) >= (int)NUM_EVENTS)
60 {
61! EMSG2(_("E216: No such event: %s"), pat);
62 return NULL;
63 }
64 }
65--- 6506,6515 ----
66 {
67 if ((int)event_name2nr(pat, &p) >= (int)NUM_EVENTS)
68 {
69! if (have_group)
70! EMSG2(_("E216: No such event: %s"), pat);
71! else
72! EMSG2(_("E216: No such group or event: %s"), pat);
73 return NULL;
74 }
75 }
76***************
77*** 6604,6610 ****
78 * Scan over the events.
79 * If we find an illegal name, return here, don't do anything.
80 */
81! pat = find_end_event(arg);
82 if (pat == NULL)
83 return;
84
85--- 6608,6614 ----
86 * Scan over the events.
87 * If we find an illegal name, return here, don't do anything.
88 */
89! pat = find_end_event(arg, group != AUGROUP_ALL);
90 if (pat == NULL)
91 return;
92
93***************
94*** 6933,6939 ****
95 * Scan over the events.
96 * If we find an illegal name, return here, don't do anything.
97 */
98! fname = find_end_event(arg);
99 if (fname == NULL)
100 return FAIL;
101
102--- 6937,6943 ----
103 * Scan over the events.
104 * If we find an illegal name, return here, don't do anything.
105 */
106! fname = find_end_event(arg, group != AUGROUP_ALL);
107 if (fname == NULL)
108 return FAIL;
109
110*** ../vim-6.2.043/src/version.c Sun Jul 27 14:16:53 2003
111--- src/version.c Sun Jul 27 14:18:08 2003
112***************
113*** 632,633 ****
114--- 632,635 ----
115 { /* Add new patch number below this line */
116+ /**/
117+ 44,
118 /**/
119
120--
121BLACK KNIGHT: The Black Knight always triumphs. Have at you!
122 ARTHUR takes his last leg off. The BLACK KNIGHT's body lands upright.
123BLACK KNIGHT: All right, we'll call it a draw.
124 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
125
126 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
127/// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
128\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
129 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///
This page took 0.041653 seconds and 4 git commands to generate.