3 May 2005 19:30
Pathnames and cl-fad
John Q Splittist <splittist <at> yahoo.com>
2005-05-03 17:30:43 GMT
2005-05-03 17:30:43 GMT
Wondering why the Find File completion was funky on my openmcl+clx climacs, and after a delightful tour through the mcclim completion code, I realised that it's because (directory ...) on openmcl requires :directories t to list directories. I made a start on adding this to gui.lisp, but I've ended up just replicating a portion of cl-fad (http://www.weitz.de/cl-fad/). I should really have gone further and conditionalized wildcard as well, and then further back... Is there any benefit to adding cl-fad as a dependency, or just adding cl-fad to the climacs distribution? (Or does it really live at the McClim level?) Anywho, a diff is attached. Not tested on all the lisps listed. JQS --- gui.lisp.~1.128.~ Sat Mar 19 22:08:31 2005 +++ gui.lisp Tue May 3 18:13:47 2005 <at> <at> -621,9 +623,17 <at> <at> (full-so-far (concatenate 'string directory-prefix so-far)) (pathnames (loop with length = (length full-so-far) - for path in (directory (concatenate 'string - (remove-trail so-far) - "*.*")) + and wildcard = (concatenate 'string (remove-trail so-far) "*.*") + for path in + #+(or :sbcl :cmu :lispworks) (directory wildcard) + #+:openmcl (directory wildcard :directories t) + #+:allegro (directory wildcard :directories-are-files nil)(Continue reading)


RSS Feed