Thursday, September 24, 2015

Re: Questions for the OptionSet event

Hi Rick!

On Do, 24 Sep 2015, Rick Howe wrote:

> Hi,
>
> The OptionSet event has been introduced in 7.4.786, which looks useful.
> I am trying to understand the behavior and I have found 2 questions now.
>
> #1
> For example,
> set number
> let &number = 1
> generates the event, but
> call setwinvar(0, '&number', 1)
> does not. Why?

That is a bug. switch_win() blocks autocommands. I'll post a patch
later.

>
> #2
> diffthis and diffoff
> generate the event only for scrollopt option.
> How about other options like diff, scrollbind, cursorbind, wrap, foldmethod, and foldcolumn?

My guess is, those functions set the values directly, not using the
set_bool_option function calls.


Best,
Christian
--
Geduld verlieren heißt Würde verlieren.
-- Indisches Sprichwort

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment