On Wed, Mar 16, 2016 at 03:43:06PM +0100, Bram Moolenaar wrote:
>
> Kent Sibilev wrote:
>
> > On Tuesday, March 15, 2016 at 2:33:55 PM UTC-4, Bram Moolenaar wrote:
> > > Patch 7.4.1577
> > > Problem: Cannot pass "dict.Myfunc" around as a partial.
> > > Solution: Create a partial when expected.
> > > Files: src/eval.c, src/testdir/test_partial.vim
> > >
> >
> > This change doesn't allow functions like this:
> >
> > function! s:cache_clear(...) dict
> >
> > function! rails#cache_clear(...)
> >
> > to be defined at the same time. Any particular reason for this, cause
> > this change breaks vim-rails plugin.
>
> The patch should not change anything about what functions you can
> define.
>
> What is the error? Can you make a small example that fails?
I get these:
处理 function <SNR>30_import[11]..<SNR>30__import[20]..<SNR>30__build_module
时发生错误:
第 14 行:
E924: can't have both a "self" dict and a partial: <SNR>30_load
Mark: Invalid value type for g:mwPalettes[maximum]
At least two plugins are broken.
One of them is the mark.vim plugin, which does this:
elseif type(g:mwPalettes[g:mwDefaultHighlightingPalette]) ==
type(function('tr'))
The left side evaluates to a function ref. The result is 10, not 2.
The other is from an old version of neocomplete, autoload/vital/_b6a796b.vim.
You can view it here:
https://github.com/lilydjwg/dotvim/blob/master/autoload/vital/_b6a796b.vim#L144
There are a lot of similar error messages from neocomplete too (both the
version I'm using and the latest version on GitHub).
--
Best regards,
lilydjwg
Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
--
A: Because it obfuscates the reading.
Q: Why is top posting so bad?
--
--
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].
For more options, visit https://groups.google.com/d/optout.