On Monday 01 December 2008 15:25, Meikel Brandmeyer wrote:
> Dear vimming Clojurians,
>
> I stitched together a quick'n'dirty Clojure tags program.
> ...

Trying to make me look bad, eh? Well, it's not really a challenge, you 
know...


> ...
>
> Currently it assumes the following file structure:
>
> /some/name/space.clj
> /some/name/space/file_loaded_from_space_clj.clj
>
> Unfortunately Clojure doesn't store the filename relative
> to the namespace directory. So it is impossible to
> reconstruct the correct name.

I discovered this, too.

I also noticed that there are some defined names with no source file 
('cause they're not defined by Clojure code.) Those must be suppressed 
from the generated tags index.


> This means in particular, that cljtags doesn't work
> with the Clojure sources themselves...

My code, doubtlessly more naive and immature than your own, requires the 
invocation to specify a tags-file name and a source directory in 
addition to a collection of namespace names to index. It then 
constructs absolute path names to use in the tags file. That still 
doesn't not accommodate any attempt to index a set of namespaces that 
do not all reside in the same directory, which, e.g., characterizes 
Clojure Contrib.

I think it's probably desirable to, in general, include multiple 
namespaces in a single tags file.

And don't forget that the tags file must be sorted in simple 
lexicographic order, which does not seem to be what you get if you just 
dump symbol names into a sorted set or map. (So far, I've just been 
sorting the files afterward from the command line using the Gnu "sort" 
utility with the environment variable LC_ALL set to "C".)


> However this is only a pre-alpha version. I will
> try to address these issues.
>
> Sincerely
> Meikel


Randall Schulz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to