public inbox for
 help / color / mirror / Atom feed
* Quick Emacs hack
@ 2000-04-01  0:00 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2000-04-01  0:00 UTC (permalink / raw)
  To: Java Discuss List

Anthony suggested I send this to the list.  I use this bit of Emacs
code to pull up the JDK docs corresponding to whatever class I happen
to be working on at the moment.

(defun tjt-java-class-help ()
  "Get help on the current Java class."
  (string-match "libjava/\\(.*\\)\\.java$" buffer-file-name)
  (funcall browse-url-browser-function
	    " "
	    (substring buffer-file-name (match-beginning 1) (match-end 1))

It would be possible to go directly to the appropriate function, if
java-mode had a way to find the current function's name.  I don't
think it does (or else add-change-log-entry would work).


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-04-01  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-01  0:00 Quick Emacs hack Tom Tromey

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).