|
From: | Kevin Rodgers |
Subject: | Re: hooking jode to emacs |
Date: | Tue, 23 Dec 2003 10:59:52 -0700 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Kai Grossjohann wrote:
kgold@watson.ibm.com (kgold) writes:For classes in a package, passing the file name without the directory is wrong. Rather, one must discard only from the current working directory up toward the root, and then create a relative path by replacing the Unix "/" directory separator with the Java separator ".".Sounds as if the argument should be a fully qualified class name; but then you don't know how many elements to include in the name. Hm.
The package-qualified class name corresponds to a directory-qualified file name, but that is relative to some project root directory, right? So Ken should be able to do something like (subst-char-in-string ?. ?/ (file-relative-name buffer-file-name project-directory)) -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |