summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.3.538
blob: 947fa65bcb60e8a7a6da9535c3186d8d4ac44494 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
To: vim_dev@googlegroups.com
Subject: Patch 7.3.538
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.538
Problem:    'efm' does not handle Tabs in pointer lines.
Solution:   Add Tab support. Improve tests. (Lech Lorens)
Files:	    src/quickfix.c, src/testdir/test10.in, src/testdir/test10.ok


*** ../vim-7.3.537/src/quickfix.c	2012-04-25 18:57:17.000000000 +0200
--- src/quickfix.c	2012-06-01 18:24:07.000000000 +0200
***************
*** 247,253 ****
  			{'t', "."},
  			{'m', ".\\+"},
  			{'r', ".*"},
! 			{'p', "[- .]*"},
  			{'v', "\\d\\+"},
  			{'s', ".\\+"}
  		    };
--- 247,253 ----
  			{'t', "."},
  			{'m', ".\\+"},
  			{'r', ".*"},
! 			{'p', "[- 	.]*"},
  			{'v', "\\d\\+"},
  			{'s', ".\\+"}
  		    };
***************
*** 677,687 ****
  		}
  		if ((i = (int)fmt_ptr->addr[7]) > 0)		/* %p */
  		{
  		    if (regmatch.startp[i] == NULL || regmatch.endp[i] == NULL)
  			continue;
! 		    col = (int)(regmatch.endp[i] - regmatch.startp[i] + 1);
! 		    if (*((char_u *)regmatch.startp[i]) != TAB)
! 			use_viscol = TRUE;
  		}
  		if ((i = (int)fmt_ptr->addr[8]) > 0)		/* %v */
  		{
--- 677,699 ----
  		}
  		if ((i = (int)fmt_ptr->addr[7]) > 0)		/* %p */
  		{
+ 		    char_u	*match_ptr;
+ 
  		    if (regmatch.startp[i] == NULL || regmatch.endp[i] == NULL)
  			continue;
! 		    col = 0;
! 		    for (match_ptr = regmatch.startp[i];
! 				   match_ptr != regmatch.endp[i]; ++match_ptr)
! 		    {
! 			++col;
! 			if (*match_ptr == TAB)
! 			{
! 			    col += 7;
! 			    col -= col % 8;
! 			}
! 		    }
! 		    ++col;
! 		    use_viscol = TRUE;
  		}
  		if ((i = (int)fmt_ptr->addr[8]) > 0)		/* %v */
  		{
*** ../vim-7.3.537/src/testdir/test10.in	2011-08-10 18:36:49.000000000 +0200
--- src/testdir/test10.in	2012-06-01 18:22:40.000000000 +0200
***************
*** 8,48 ****
  :7/start of errorfile/,/end of errorfile/w! Xerrorfile1
  :7/start of errorfile/,/end of errorfile/-1w! Xerrorfile2
  :/start of testfile/,/end of testfile/w! Xtestfile
  :cf Xerrorfile2
  :clast
  :copen
  :let a=w:quickfix_title
  :wincmd p
! gR=a

  :cf Xerrorfile1
! rA
  :cn
! rB
  :cn
! rC
  :cn
! rD
  :cn
! rE
  :cn
  :wincmd w
  :let a=w:quickfix_title
  :wincmd p
! gR=a

  :w! test.out             " Write contents of this file
  :qa!
  ENDTEST
  
  start of errorfile
  "Xtestfile", line 4.12: 1506-045 (S) Undeclared identifier fd_set.
! "Xtestfile", line 7 col 19; this is an error
  gcc -c -DHAVE_CONFIsing-prototypes -I/usr/X11R6/include  version.c
! Xtestfile:13: parse error before `asd'
  make: *** [vim] Error 1
! in file "Xtestfile" linenr 16: there is an error
  
  2 returned
! "Xtestfile", linenr 19: yet another problem
  
  Does anyone know what is the problem and how to correction it?
  "Xtestfile", line 21 col 9: What is the title of the quickfix window?
--- 8,88 ----
  :7/start of errorfile/,/end of errorfile/w! Xerrorfile1
  :7/start of errorfile/,/end of errorfile/-1w! Xerrorfile2
  :/start of testfile/,/end of testfile/w! Xtestfile
+ :set efm+==%f=\\,\ line\ %l%*\\D%v%*[^\ ]\ %m
+ :set efm^=%AError\ in\ \"%f\"\ at\ line\ %l:,%Z%p^,%C%m
  :cf Xerrorfile2
  :clast
  :copen
  :let a=w:quickfix_title
  :wincmd p
! lgR=a

  :cf Xerrorfile1
! grA
  :cn
! gRLINE 6, COL 19
  :cn
! gRNO COLUMN SPECIFIED
  :cn
! gRAGAIN NO COLUMN
  :cn
! gRCOL 1
  :cn
+ gRCOL 2
+ :cn
+ gRCOL 10
+ :cn
+ gRVCOL 10
+ :cn
+ grI
+ :cn
+ gR. SPACE POINTER
+ :cn
+ gR. DOT POINTER
+ :cn
+ gR. DASH POINTER
+ :cn
+ gR. TAB-SPACE POINTER
+ :clast
+ :cprev
+ :cprev
  :wincmd w
  :let a=w:quickfix_title
  :wincmd p
! lgR=a

  :w! test.out             " Write contents of this file
  :qa!
  ENDTEST
  
  start of errorfile
  "Xtestfile", line 4.12: 1506-045 (S) Undeclared identifier fd_set.
! "Xtestfile", line 6 col 19; this is an error
  gcc -c -DHAVE_CONFIsing-prototypes -I/usr/X11R6/include  version.c
! Xtestfile:9: parse error before `asd'
  make: *** [vim] Error 1
! in file "Xtestfile" linenr 10: there is an error
  
  2 returned
! "Xtestfile", line 11 col 1; this is an error
! "Xtestfile", line 12 col 2; this is another error
! "Xtestfile", line 14:10; this is an error in column 10
! =Xtestfile=, line 15:10; this is another error, but in vcol 10 this time
! "Xtestfile", linenr 16: yet another problem
! Error in "Xtestfile" at line 17:
! x should be a dot
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 17
!             ^
! Error in "Xtestfile" at line 18:
! x should be a dot
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 18
! .............^
! Error in "Xtestfile" at line 19:
! x should be a dot
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 19
! --------------^
! Error in "Xtestfile" at line 20:
! x should be a dot
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 20
! 	       ^
  
  Does anyone know what is the problem and how to correction it?
  "Xtestfile", line 21 col 9: What is the title of the quickfix window?
***************
*** 50,74 ****
  end of errorfile
  
  start of testfile
! line 2  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 3  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 4  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 5  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 6  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 7  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 8  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 9  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 10 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 11 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 12 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 13 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 14 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 15 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 16 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 17 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  end of testfile
--- 90,114 ----
  end of errorfile
  
  start of testfile
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  2
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  3
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  4
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  5
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  6
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  7
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  8
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  9
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 10
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 11
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 12
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 13
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 14
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 15
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 16
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 17
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 18
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 19
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 20
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 21
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 22
  end of testfile
*** ../vim-7.3.537/src/testdir/test10.ok	2011-08-10 18:36:49.000000000 +0200
--- src/testdir/test10.ok	2012-06-01 18:22:40.000000000 +0200
***************
*** 1,23 ****
  start of testfile
! line 2  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 3  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 4  xxxAxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 5  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 6  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 7  xxxxxxxxxxBxxxxxxxxxxxxxxxxxxx
! line 8  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 9  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 10 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 11 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 12 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! Cine 13 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 14 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 15 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! Dine 16 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 17 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! Eine 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
! line 21 :cf Xerrorfile1xxxxxxxxxxxxxxx
! line 22 :cf Xerrorfile2xxxxxxxxxxxxxxx
  end of testfile
--- 1,23 ----
  start of testfile
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  2
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  3
! 	xxxxxxxxxxAxxxxxxxxxxxxxxxxxxx    line  4
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  5
! 	xxxxxxxxxxxxxxxxxLINE 6, COL 19   line  6
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  7
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line  8
! 	NO COLUMN SPECIFIEDxxxxxxxxxxx    line  9
! 	AGAIN NO COLUMNxxxxxxxxxxxxxxx    line 10
! COL 1	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 11
! 	COL 2xxxxxxxxxxxxxxxxxxxxxxxxx    line 12
! 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 13
! 	xxxxxxxxCOL 10xxxxxxxxxxxxxxxx    line 14
! 	xVCOL 10xxxxxxxxxxxxxxxxxxxxxx    line 15
! 	Ixxxxxxxxxxxxxxxxxxxxxxxxxxxxx    line 16
! 	xxxx. SPACE POINTERxxxxxxxxxxx    line 17
! 	xxxxx. DOT POINTERxxxxxxxxxxxx    line 18
! 	xxxxxx. DASH POINTERxxxxxxxxxx    line 19
! 	xxxxxxx. TAB-SPACE POINTERxxxx    line 20
! 	xxxxxxxx:cf Xerrorfile1xxxxxxx    line 21
! 	xxxxxxxx:cf Xerrorfile2xxxxxxx    line 22
  end of testfile
*** ../vim-7.3.537/src/version.c	2012-06-01 17:49:51.000000000 +0200
--- src/version.c	2012-06-01 18:22:27.000000000 +0200
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     538,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
18. Your wife drapes a blond wig over your monitor to remind you of what she
    looks like.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///