Tony wrote:

> On Fri, May 22, 2020 at 1:11 PM Bram Moolenaar <[email protected]> wrote:
> >
> >
> > Patch 8.2.0807
> > Problem:    Cannot easily restore a mapping.
> > Solution:   Add mapset().
> > Files:      runtime/doc/eval.txt, src/map.c, src/proto/map.pro, 
> > src/evalfunc.c
> >             src/testdir/test_maparg.vim
> 
> Missing #ifdef ? I get a fatal error in Small and Tiny, as follows:
> 
> linux-2iyu:~/.build/vim/vim-hg/src/shadow-tiny # (make || echo 'exit
> status' $? ; date) 2>&1 |tee -a make.log
> gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce -Wall
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/evalfunc.o
> evalfunc.c
> gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce -Wall
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/map.o map.c
> map.c: In function ‘do_map’:
> map.c:842:58: error: ‘expr’ undeclared (first use in this function);
> did you mean ‘ex_z’?
>   if (map_add(map_table, abbr_table, keys, rhs, orig_rhs, expr,
>                                                           ^~~~
>                                                           ex_z

Ah, "expr" also depends on FEAT_EVAL, I'll fix that.

Note that it's not easy to restore a mapping exactly how it was done
before.  Watch out for anything that's not restored properly.

-- 
hundred-and-one symptoms of being an internet addict:
158. You get a tuner card so you can watch TV while surfing.

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202005221140.04MBe1jE022915%40masaka.moolenaar.net.

Raspunde prin e-mail lui