Skip to content

Commit

Permalink
malabar-qualify-class-name-in-buffer: prefer local class to calling G…
Browse files Browse the repository at this point in the history
…roovy
  • Loading branch information
espenhw committed Mar 19, 2009
1 parent d5582c4 commit 1662824
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/lisp/malabar-reflection.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@
(t
(let* ((buffer (or buffer (current-buffer)))
(package (malabar-get-package-name buffer))
(imported-class (malabar-find-imported-class class buffer)))
(or imported-class
(class-tag (malabar-class-defined-in-buffer-p class buffer)))
(if class-tag
(if package
(concat package "." class)
class))))))
class)
(malabar-find-imported-class class buffer))))))

(define-cached-function malabar-get-class-info (classname &optional buffer)
(malabar-groovy-eval-and-lispeval
Expand Down

0 comments on commit 1662824

Please sign in to comment.