{-- Sat, 14 Jul 2012 20:33:29 +0200: Matthias <mtr...@web.de> wrote: --}

  >> Nice.  Maintaining completion while supporting search directories
  >> invalidates my original solution for completion and implementing it
  >> is definitely a jump in complexity.

  Matthias> But its very convenient. Simply saying "#include
  Matthias> marker.<TAB>" and to get it without having trouble to find
  Matthias> the right directory is really cool.

Certainly!  It's definitely worth the jump in complexity.  The code just
has to be a bit messier to handle it.

  >> I think another limitation is that the use of the #cd directive to
  >> change directories won't work in files any longer.

  Matthias> I dont think that this is a showstopper for the fully
  Matthias> recursive file lookup. You dont need to do a change dir if
  Matthias> all files are directly available. The list of the base
  Matthias> directories could be expanded at runtime, maybe.

I agree that it isn't a show-stopper but it is still useful if you have
some directories with code that you don't normally need and so keep off
the search path but still want to access conveniently.

  >> os.path.normpath(os.path.join(os.path.join(wd, filename))

  Matthias> python's path magic is only for the brave.

Hmmm.... I suspect that was a typing mistake, especially since there
aren't enough closing brackets.  Probably there was only supposed to be
one of those os.path.join calls...  ;-)

  >> This will essentially return the union of the glob matches for the
  >> supplied completion text in all possible search directories if the
  >> completion text is not already an absolute filename.  It might get
  >> slow if you have a lot of large directories on your search path,
  >> but I suspect it will be fine.  I also expect I didn't get it
  >> really right but I think it should be close enough that you could
  >> get it working if you started with this.

  Matthias> I'll give it a try. Thanks.

I'd love to try it out myself but I haven't had time to get my
microcontrollers unpacked and setup again after we moved recently.  Let
me know how it goes.

       --- Keith

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to