Axel Forsman wrote:

> The functions prop_remove() and prop_find() allow one to specify which
> properties
> to remove/search for by providing the id and/or type.
> However as a property matches if either the id or type matches,
> this means that if you want to add several new properties of a particular type
> and then remove a *single* one of those,
> all id:s have to be unique.
> This, of course, is impossible in the presence of multiple plugins
> creating props.
> 
> Furthermore, I fail to see when the current behavior would actually be
> wanted.  Am I missing something, or could this perhaps be fixed in
> some way or another?

It's possible that two plugins happen to use the same id or type in the
same line.  For the type you can use a prefix to avoid most collisions.

A simple solution would be to add a "both" argument, then both the id
and the type needs to match.  Does that solve your problem?

-- 
        Very funny, Scotty.  Now beam down my clothes.

 /// 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/202003042051.024KpN6U001420%40masaka.moolenaar.net.

Raspunde prin e-mail lui