4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Emacs tags file lines can be too long, resulting in an error
13 Solution: Ignore lines with errors if they are too long.
17 *** ../vim-7.2.067/src/tag.c Fri Jul 18 11:26:12 2008
18 --- src/tag.c Sat Dec 6 13:54:33 2008
23 p_7f = vim_strchr(lbuf, 0x7f);
27 + if (vim_strchr(lbuf, '\n') == NULL)
29 + /* Truncated line. Ignore it. */
33 + MSG(_("Ignoring long line in tags file"));
36 + tagp->command = lbuf;
37 + tagp->tagname = lbuf;
38 + tagp->tagname_end = lbuf;
44 /* Find ^A. If not found the line number is after the 0x7f */
45 p = vim_strchr(p_7f, Ctrl_A);
50 if (!VIM_ISDIGIT(*p)) /* check for start of line number */
58 if (!VIM_ISDIGIT(*p)) /* check for start of line number */
65 /* find end of tagname */
66 for (p = p_7f - 1; !vim_iswordc(*p); --p)
69 tagp->tagname_end = p + 1;
70 while (p >= lbuf && vim_iswordc(*p))
73 /* find end of tagname */
74 for (p = p_7f - 1; !vim_iswordc(*p); --p)
77 tagp->tagname_end = p + 1;
78 while (p >= lbuf && vim_iswordc(*p))
80 *** ../vim-7.2.067/src/version.c Tue Dec 9 11:17:23 2008
81 --- src/version.c Tue Dec 9 12:05:41 2008
85 { /* Add new patch number below this line */
91 Q: What do you call a fish without an eye?
93 Q: What do you call a deer with no eyes?
95 Q: What do you call a deer with no eyes and no legs?
98 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
99 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
100 \\\ download, build and distribute -- http://www.A-A-P.org ///
101 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///