On 05/02/09 21:10, _sc_ wrote:
> markus--
>
> today svn bumped my source up to v101 from v93, and i find i
> can no longer politely build vim -- make breaks with:
>
> normal.c: In function 'nv_g_cmd':
> normal.c:7843: error: expected expression before '<<' token
> make[1]: *** [objects/normal.o] Error 1
> make[1]: Leaving directory `/home/scott/.build/vim/vim7.2/src'
> make: *** [first] Error 2
>
> that was with a normal.c which svn had tried to merge with
> our patched normal.c
>
> i removed normal.c, asked svn to get me a fresh one,
> extracted the normal.c portion of the relative number patch,
> and attempted to apply it -- this failed with:
>
> ~/.build/vim/vim7.2 $ patch -p0< normal.patch 2>&1 | tee normal.log
> patching file src/normal.c
> Hunk #1 FAILED at 7783.
> 1 out of 1 hunk FAILED -- saving rejects to file src/normal.c.rej
>
> and normal.c.rej contains:
>
> ~/.build/vim/vim7.2 $ cat src/normal.c.rej
> ***************
> *** 7783,7790 ****
> }
> else
> i = curwin->w_leftcol;
> ! /* Go to the middle of the screen line. When 'number' is on and lines
> ! * are wrapping the middle can be more to the left.*/
> if (cap->nchar == 'm')
> i += (W_WIDTH(curwin) - curwin_col_off()
> + ((curwin->w_p_wrap&& i> 0)
> --- 7783,7791 ----
> }
> else
> i = curwin->w_leftcol;
> ! /* Go to the middle of the screen line. When 'number' or
> ! * 'relativenumber' is on and lines are wrapping the middle can be
> more
> ! * to the left.*/
> if (cap->nchar == 'm')
> i += (W_WIDTH(curwin) - curwin_col_off()
> + ((curwin->w_p_wrap&& i> 0)
>
>
> now i really love the relnum patch and i hope i won't fall
> too far behind if i wait for a new patch instead of building
> v101 without it
>
> sc
That patch only changes a comment, so omitting it ought to change
nothing to the functionality.
This said, IIUC it would apply almost cleanly but with an offset at line
7840 of my normal.c version 7.2.102 where lines 7840-7847 are as follows:
> }
> else
> i = curwin->w_leftcol;
> /* Go to the middle of the screen line. When 'number' is on and lines
> * are wrapping the middle can be more to the left. */
> if (cap->nchar == 'm')
> i += (W_WIDTH(curwin) - curwin_col_off()
> + ((curwin->w_p_wrap && i > 0)
The fact that the comment seems to have been shifted horizontally by one
character is actually due to buggy quoting in my version of SeaMonkey.
OTOH there is an inserted space just before the closing */ mark.
Best regards,
Tony.
--
You can't underestimate the power of fear.
-- Tricia Nixon
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---