unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: hooking jode to emacs
Date: Tue, 23 Dec 2003 10:59:52 -0700	[thread overview]
Message-ID: <3FE88298.4080604@yahoo.com> (raw)
In-Reply-To: 87isk8eeo1.fsf@emptyhost.emptydomain.de

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

  reply	other threads:[~2003-12-23 17:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-19 21:49 hooking jode to emacs kgold
2003-12-19 23:38 ` Kevin Rodgers
2003-12-22 14:47   ` kgold
2003-12-22 16:13     ` Kai Grossjohann
2003-12-22 19:40       ` kgold
2003-12-22 21:16         ` Kai Grossjohann
2003-12-23 17:59           ` Kevin Rodgers [this message]
2003-12-23 20:22             ` Kevin Rodgers
2003-12-25 16:28             ` Kai Grossjohann
2003-12-29 21:38               ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FE88298.4080604@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).