Re: [PATCH] Add :function defaults: resets some options that are likely to cause problems when function is run

2013-01-12 Fir de Conversatie ZyX
суббота, 12 января 2013 г., 20:29:58 UTC+4 пользователь Bram Moolenaar написал: > I like the idea. But doing this specifically for functions may not be > the best solution. Why? autocommands, mappings and commands almost always call functions that do the action for almost any plugin that is more

Re: [PATCH] Add :function defaults: resets some options that are likely to cause problems when function is run

2013-01-12 Fir de Conversatie Bram Moolenaar
ZyX wrote: > Note about #ifdef FEAT_EVAL in src/option.c: this is for making it > possible to use :map in the future (when I find a way to do > so): resetting options to default values when mapping is run. > > # HG changeset patch > # User ZyX > # Date 1357992946 -14400 > # Node ID 76ecff419a8

[PATCH] Add :function defaults: resets some options that are likely to cause problems when function is run

2013-01-12 Fir de Conversatie ZyX
Note about #ifdef FEAT_EVAL in src/option.c: this is for making it possible to use :map in the future (when I find a way to do so): resetting options to default values when mapping is run. # HG changeset patch # User ZyX # Date 1357992946 -14400 # Node ID 76ecff419a841f9cb4110274028627d0bd4449