On Wed, Feb 27, 2008 at 11:45 AM, Joerg Fischer <[EMAIL PROTECTED]> wrote:
> Bert Wesarg wrote:
>
>  > This was the answer for my question: A macro interface to the
>  > tags/tips database, ie loaded files, tags/tips loaded from these
>  > files, tips text, tags location (file, line or search pattern, ...),
>  > ...
>  >
>  > with this generic macro interface to this db, you can easily build
>  > your completion. And your find_completion() function should also made
>  > generic, ie given a list/array of strings and a prefix and return all
>  > prefix-matches.
>
>  Well, yes, I have such an interface in the sense that the built-in
>  variables $loaded_tags/tips_files are part of the mocume patch.
Ok. I hadn't time to test this patch, but I'm looking forward to do it.

>
>  The find_completion() function is a generic built-in macro function,
Hmm, in my sense 'generic' means 'without a special purpose' but your
function name doesn't fit to this: its sounds very special to
completion. If you would call the find_completions() function like
get_tags/tips_from_file() (or get_definitions_from_file(mode)), and
this functions do only that, and a separate function which returns
'completions' from a arbitrary string list, that would I call generic
and would be more useful for others, not only completion.

>  although I didn't submit a patch for this one, yet.  It's
>  documentation is
>
>   find_completions( mode, filename [, stub] )
>   Returns a string containing a newline separated list of either tag
>   or tip names from the loaded tags or tips file given by filename
>   (the full name including the path) that are completions of the
>   optional string stub, where mode is either "tags" or "tips",
>   respectively.  If stub is not given or empty, all the tag or tip
>   names in the file are returned.  If no completions are found (or
>   filename isn't in $loaded_tags_files or $loaded_tips_files), an
>   empty string is returned.
>
>  So, all the information you request, except for the tips text which
>  isn't loaded to the hash table but looked up from the respective file
>  each time, is there.
Yes, its all there, but only with completion in mind, and I ask for a
more generic way to access tags/tips informations from nedit

Thanks

Bert

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

Reply via email to