Bert Wesarg wrote:

> ...
> So, I ended up with this:
> 
> list_{tags,tips}([file ][, stub [, mode]])

You're right, list_tags() and list_tips() is better than the mode
option.  What searching is concerned, I thought it is better to search
in a macro string.  Suppose we have a thousand tags and we're
interested in those tags that match a certain pattern, which would be
roughly a dozen tags.  Searching like implemented in the original
patch, this would mean one search per tag.  Searching in a macro
string, ie, a newline separated list of all tags, this would mean just
a dozen searches.  Moreover, I thought the most common pattern would
be for completions, in which case one can get the desired tags
directly without doing searches.  This explains the whole thing.  I
didn't consider the naming of the function or why to have an mode
option or having two functions.  There were no rationale about these
things.

Jörg
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to