> If we are at it: The signs feature is broken by design, because its the > user setting "sign ids" - so multiple scripts don't know where to start. > > What about adding a next_sign_id() function returning a new unused id ? > A simple counter should be enough. The perfect fix would be dropping the > old api, only allowing a new one place_sign() returning an id - but that > would break scripts.
Python is not VimL: proposed API is not good for python; and I have already written > .place(line, name, id=None) > Place given sign on the given line. Returns id which is equal to id > argument ***if it was given or is a new unique id***. * there is a typo here: should read “or a new unique id”, without “is”. Corrected, fix pushed. . There is not something like this for sign names though. Also note that simple counter could not be enough, unless you can make sure that no plugin will use sign id which will be returned by this counter. Proposed “unique id”: concatenate buffer and line numbers and find the first gap in the vicinity of this id if it was already taken. -- -- 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/groups/opt_out.
