Patch to add functions to get and set tab variables

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Patch to add functions to get and set tab variables

Yegappan Lakshmanan
Hi all,

The attached patch (against Vim 7.2.433) implements the settabvar()
and gettabvar()
functions to set and get a tab variable. This is similar to the
setwinvar(), getwinvar(),
setbufvar() and getbufvar() functions. This patch is in the todo list
for the past three
years or so. I hope this will be included in Vim 7.3.

- Yegappan

--
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

tabvar_051410.diff (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Patch to add functions to get and set tab variables

Bram Moolenaar

Yegappan Lakshmanan wrote:

> The attached patch (against Vim 7.2.433) implements the settabvar()
> and gettabvar()
> functions to set and get a tab variable. This is similar to the
> setwinvar(), getwinvar(),
> setbufvar() and getbufvar() functions. This patch is in the todo list
> for the past three
> years or so. I hope this will be included in Vim 7.3.

The patch looks good, I have included it now.

One thing is missing: tests!  Can you please add a new test, or add a
few lines to an existing test for tab pages?

Vim is getting more and more complex, we really need more tests to catch
mistakes early.

--
From "know your smileys":
 ~#:-( I just washed my hair, and I can't do nuthin' with it.

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.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